Snort mailing list archives

Re: Enquiry on PCRE


From: Alex Kirk <akirk () sourcefire com>
Date: Wed, 20 Jun 2012 07:12:14 -0400

It's anything except a ":" or a "?", 11 or more times, followed by ":/".
Note that the whole thing is anchored to the start of the URL by the
leading "^".

On Tue, Jun 19, 2012 at 11:08 PM, yew chuan Ong <yewchuan_23 () yahoo com>wrote:

Hi Guys,

I am kind of confuse with the pcre in this rule:
pcre:"/^[^\x3a\x3f]{11,}\x3a\x2f/Usmi"

alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"WEB-MISC
Checkpoint Firewall-1 HTTP parsing format string vulnerability attempt";
flow:to_server,established; content:"|3A|/"; offset:11; http_uri;
pcre:"/^[^\x3a\x3f]{11,}\x3a\x2f/Usmi"; reference:bugtraq,9581;
reference:cve,2004-0039; reference:nessus,12084; classtype:attempted-admin;
sid:2381; rev:15;)

Does it mean that the payload should have ":?" appeared for at least 11
times and following with ":/"?
Thanks!


Regards
YC


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Snort-sigs mailing list
Snort-sigs () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-sigs
http://www.snort.org


Please visit http://blog.snort.org for the latest news about Snort!




-- 
Alex Kirk
AEGIS Program Lead
Sourcefire Vulnerability Research Team
+1-410-423-1937
alex.kirk () sourcefire com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Snort-sigs mailing list
Snort-sigs () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-sigs
http://www.snort.org


Please visit http://blog.snort.org for the latest news about Snort!

Current thread: