phishing detection bug

Julian Field MailScanner at ecs.soton.ac.uk
Fri Feb 18 16:36:42 GMT 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Patch for Message.pm:

-----SNIP-----
--- Message.pm.old 2005-02-18 14:10:24.000000000 +0000
+++ Message.pm  2005-02-18 16:27:35.000000000 +0000
@@ -4330,6 +4330,7 @@
   $linkurl =~ s/(\<\/?(br|p|ul)\>)*$//ig; # Remove trailing br, p, ul tags
   $linkurl = "" if $linkurl =~ /^file:/i; # Ignore file: URLs completely
   $linkurl = "" if $linkurl =~ /^#/; # Ignore internal links completely
+  $linkurl = "" unless $linkurl =~ /\./; # Ignore if it is not a
website at all
   $linkurl =~ s/\/$//; # LinkURL is trimmed -- note
   #print STDERR "Produced $linkurl\n";
   $linkurl;
-----SNIP-----

Julian Field wrote:

> Okay, a simple trap for this one would be that the real URL must contain
> at least one "." character. How about that?
>
> John French wrote:
>
>> The problem definitely seems to be when the href= doesn't contain a url,
>> but the text between the > and </a> does.  Here's another example:
>>
>> before:
>> <body bgcolor="#ffffff" text="#000000">
>> test&nbsp;<a href="thisisnotaurl">http://thisisaurl.com</a> test<br>
>> </body>
>>
>> after:
>> <body bgcolor="#ffffff" text="#000000">
>> test&nbsp;<a href="thisisnotaurl"></b></font><font
>> color="red"><b>MailScanner has detected a possible fraud attempt
>> from "thisisnotaurl" claiming to be</b></font> <font
>> color="red"><b>MailScanner has detected a possible fraud attempt
>> from "thisisnotaurl" claiming to be http://thisisaurl.com</a> test<br>
>> </body>
>>
>> ------------------------ MailScanner list ------------------------
>> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
>> 'leave mailscanner' in the body of the email.
>> Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
>> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>>
>> Support MailScanner development - buy the book off the website!
>>
>>
>>
>
> --
> Julian Field
> www.MailScanner.info
> Buy the MailScanner book at www.MailScanner.info/store
>
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
> Support MailScanner development - buy the book off the website!
>

--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list