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]

Re: [Snort-sigs] PNG vulnerabilities and more

Subject: Re: [Snort-sigs] PNG vulnerabilities and more
Date: Thu, 19 Aug 2004 17:28:12 -0400
On Thursday 19 August 2004 4:10 pm, Joseph Gama wrote:
I can see that you based your rule on the source code
with the else if vulnerability. I based mine on the
code and comments from the exploit which is why you
look for PLTE while I look for the 0x03 because:

* to 0x03, byte 10 of the IHDR data. that signfies
that a PALLETE chunk should
 * be present. but we dont have one, and that is how
the len check is bypassed.

I tested my rule and it detects pngtest_bad.png, plus
I browsed through hundreds of PNG's and got no false
positives. I haven't tested yours, I didn't see it
before.

Based on that it sounds like yours will false-positive on many 
transparent PNGs, since you're checking to see if the PLTE is required, 
but not checking to see if it is actually missing. Attached is a normal 
transparent PNG that gives a false positive on your sig in my tests.

-Joe

-- 
Joe Stewart, GCIH 
Senior Security Researcher
LURHQ http://www.lurhq.com/

Attachment: test-transparent.png
Description: PNG image

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