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. |

| Subject: | [Snort-sigs] encoded Javascript not being detected |
|---|---|
| Date: | Tue, 10 Aug 2004 16:19:43 -0700 (PDT) |
Hi,
I ran some tests and here are my conclusions:
Problem: Some encoding might be used to hide
Javascript code from being detected
The following examples are all identical but encoded
differently:
<IMG src="javascript:alert(123);">
<IMG
src="javascript:%61%6C%65%72%74%28%31%32%33%29%3B">
<IMG
src="javascript:alert(123);">
<IMG
src="javascript:alert(123);">
This rule should detect alert(123) for demonstrative
purposes only:
alert tcp any any -> any any (msg:"alert(123) found";
content:"alert(123)"; nocase; classtype:misc-activity;
sid:99999; rev:1;)
The rule works fine for alert(123) and
%61%6C%65%72%74%28%31%32%33%29%3B
However, it won't detect the others.
I can have a rule to detect the third case like this:
alert tcp any any -> any any (msg:"alert(123)####
found";
content:"a\;l\;e\;r\;t\;(\;1\;2\;3\;)\;;\;";
nocase; classtype:misc-activity; sid:99999; rev:1;)
But, in order to detect a mix of the four different
encodings, each rule would need PCRE with plenty of
|'s and it would be necessary to change existing rules
too. That is not the best solution. Which preprocessor
does this change?
Peace,
Joseph Gama
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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> |
|---|---|---|
| ||
| Previous by Date: | [Snort-sigs] Another idea for the preprocessor, Joseph Gama |
|---|---|
| Next by Date: | Re: [Snort-sigs] Quickie rule to catch the new price.zip virus going around, Matthew Jonkman |
| Previous by Thread: | [Snort-sigs] Another idea for the preprocessor, Joseph Gama |
| Next by Thread: | [Snort-sigs] False positive in sid:1448, Federico Petronio |
| Indexes: | [Date] [Thread] [Top] [All Lists] |