|
RE: False positive alert: sid:2570: msg#00182security.ids.snort.sigs
Here is the rule: alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"WEB-MISC Invalid HTTP Version String"; flow:to_server,established; content:"HTTP/"; isdataat:6,relative; content:!"|0A|"; within:5; reference:bugtraq,9809; reference:nessus,11593; classtype:non-standard-protocol; sid:2570; rev:6;) Here is da breakdown (for those that are interested, l33t can ignore): This rule finds the string "HTTP/" and then verifies that there are 6 bytes after the string "HTTP/". Then the rule sees that within 5 bytes of the string, that there is no new line charater: content:!"|0A|"; Standard HTTP versions would have "HTTP/1.0.." where .. represents a carriage return and a line feed "0D 0A". However, this rule will trigger if the string "HTTP/" is anywhere in the packet: 040 : 48 54 54 50 2F 53 20 43 6F 6D 70 6F 6E 65 6E 74 HTTP/S Component I was thinking about maybe adding depth to check the initial HTTP version but the GET request could be of any length. I am seeing if I can make a rule to check the initial header and ignore all other HTTP/ strings. (nnposter might have an idea :-) This may be a case where you have to create a pass rule ahead of this rule to pass that traffic.(of course someone on the list please jump in with a better solution). Shirkdog From: Michael Schwartzkopff <misch@xxxxxxxxxxx> _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | False positive alert: sid:2570: 00182, Michael Schwartzkopff |
|---|---|
| Next by Date: | Re: False positive alert: sid:2570: 00182, Brian |
| Previous by Thread: | False positive alert: sid:2570i: 00182, Michael Schwartzkopff |
| Next by Thread: | Re: False positive alert: sid:2570: 00182, Brian |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |