Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Snort-Signatures
[Top] [All Lists]

[Snort-sigs] Flase +ves for SID 2590 SMTP MAIL FROM overflow attempt

Subject: [Snort-sigs] Flase +ves for SID 2590 SMTP MAIL FROM overflow attempt
Date: Thu, 25 Nov 2004 23:55:09 -0700
"Russell Fulton" <r.fulton@auckland.ac.nz> wrote:
I am seeing lots of false +ves like this one for this rule where snort
finds "mail from" in the body of the email.  Is there some way that the
detect could be restricted to the headers?

Not easily but this particular false positive is caused by a bug in 
the rule: The "isdataat" clause should be "relative". Yet better could 
be to replace "isdataat" and the subsequent negative "content" with 
"pcre", such as:

    /^\s*MAIL FROM\:[^\n]{256}/mi

Unless I am missing something the primary content clause could also 
include a colon so the full rule could be:

alert tcp $EXTERNAL_NET any -> $SMTP_SERVERS 25 
(msg:"SMTP MAIL FROM overflow attempt"; flow:to_server,established; 
content:"MAIL FROM\:"; nocase; pcre:"/^\s*MAIL FROM\:[^\n]{256}/mi"; 
reference:bugtraq,10290; reference:cve,2004-0399; 
reference:url,www.guninski.com/exim1.html; 
classtype:attempted-admin; sid:2590; rev:3;)

One unrelated issue is that most MTAs are more lenient with spaces 
than RFC 821 allows (although I cannot comment on exim). This rule 
could be theoretically evaded by replacing the space with a tab 
or two spaces. A more robust (but also more expensive) variant would 
be to reduce the primary content clause to a single word, such as:

alert tcp $EXTERNAL_NET any -> $SMTP_SERVERS 25 
(msg:"SMTP MAIL FROM overflow attempt"; flow:to_server,established; 
content:"FROM\:"; nocase; pcre:"/^\s*MAIL\s+FROM\:[^\n]{256}/mi"; 
reference:bugtraq,10290; reference:cve,2004-0399; 
reference:url,www.guninski.com/exim1.html; 
classtype:attempted-admin; sid:2590; rev:3;)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Snort-sigs mailing list
Snort-sigs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snort-sigs

<Prev in Thread] Current Thread [Next in Thread>