Slashdot Log In
CERT Warns Of Multiple Vulnerabilities In Libpng
Posted by
simoniker
on Thu Aug 05, 2004 03:34 AM
from the puh-nug-guh dept.
from the puh-nug-guh dept.
jefftp writes "CERT announced today that there are several vulnerabilities in libpng, one is a buffer overflow which could potentially cause a PNG image file to execute arbitrary code. Libpng release 1.2.6rc1 addresses the problems covered by this CERT announcement, and can be obtained from the libpng Sourceforge project. A fully tested version is to be released in the next few weeks."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
Firefox (Score:2, Interesting)
Re:Firefox (Score:5, Informative)
Parent
Where's the outcry? (Score:3, Insightful)
Just the obligatory "perspective" post.
Re:Firefox (Score:4, Informative)
New builds of Mozilla / Firefox / Thunderbird have been released to patch four potential security vulnerabilities including the libpng issue [mozilla.org]
Parent
Mozilla (Score:3, Interesting)
Re:Mozilla (Score:4, Informative)
Parent
Re:Mozilla (Score:2)
Re:Mozilla (Score:5, Funny)
Parent
Re:Mozilla (Score:5, Informative)
Another way of killing the problem is using the NX (I hope I got that correct) instruction/bit in newer CPUs and simply separate code and data, and not allow execution in a data segment. Win SP2 does this, I am sure Linux does/will soon, one of the BSDs have done stuff like this for a while, etc.
So yes, you would prevent it. But then again, calling a javalib from C...
Parent
Re:Mozilla (Score:3, Informative)
Yep, Fedora Core 2 has done this since one of the early kernel revisions (I think it was when they went from 2.6.5 to 2.6.6)
Bugs in Compilers... (Score:3, Interesting)
Canary (Score:4, Informative)
You can protect against this to. The technique is put a ``canary'' on the stack frame and make sure it is still there before you return.
There are at least two patches to gcc that do this. One is called ProPolice. The name of the second is escaping me right now. OpenBSD includes ProPolice by default.
Google on stack-smashing protectors for more info.
Parent
Diagram (Score:2, Funny)
Old news (Score:2, Interesting)
Re:Old news (Score:5, Funny)
Taco: "Wooah! this Doom 3 is excellent!!!!"
Michael: "Anyone else gettin 503s?"
Simoniker: "Is anybody doing ANY work?"
Tim: "Simon - yer, just gettin submissions - omg, another 400"
Taco: "Die scum die!!"
Michael: "I give up, anyone wanna 7up?"
Taco [Looking up from game for a minute] "Yer go on then!"
Taco: "Tim, Throw another story onto the site, the natives are gettin restless."
Tim: "eeny, meeny miny mo...."
Parent
Re:How old is it REALLY? (Score:3, Informative)
Umm... the point-and-drool update utility in my SuSE box automatically installed the patch last night. No programming or advanced sysadmining was required on my part.
Ah-ha! (Score:5, Funny)
Re:Ah-ha! (Score:5, Informative)
Parent
The latest SP2 fixes it. (Score:5, Informative)
Its reassuring that for once MS has already taken care of some security issue (for XP SP2 at least).
Parent
Re:The latest SP2 fixes it. (Score:4, Informative)
I got it from the bugzilla entry about the libpng issues.
Actully, that image and the one above produce 2 diffrent effects in IE now that ive tested both, maybe its a diffrent issue that got mixed in the same bugzilla entry.
Parent
BOEM. (Score:3, Informative)
bla bba
[x] restart mirosoft internet explorer
[b]WOW[/b], it is a portable bug!
can anybody tell us if this is exploitable?
Re:Ah-ha! (Score:3, Interesting)
well (Score:3, Funny)
Updates (Score:4, Informative)
Re:Updates (Score:2)
http://www.mandrakesoft.com/security/advisories?n
Bug? it's a feature! (Score:5, Funny)
This is not a bug it's a feature; the libpng team are obviously trying to get a piece of the ActiveX control market...
Around the world.... (Score:2)
Gentoo (Score:3, Interesting)
Re:Gentoo (Score:5, Informative)
Parent
Re:Gentoo (Score:2)
wtf is this newbie vs zealot crap?
i chose gentoo because i like portage, and i find the way things are laid out to be more similar to the solaris and bsd boxes i'm paid to admin. there's nothing wrong with fedora or mandrake (which you dont use), but if Linux is about anything, it's about choice, and my choice is to use a distro that i feel comfortable with.
Re:Gentoo (Score:4, Insightful)
gentoo is good for me, i don't think it's good for everyone - but i'm not everyone, i'm me.
my wife and my mother both use win2k and thats whats good for them, i help them out with patches and suchlike but neither of them really want to care about having gcc or whatever installed.
like i said, it's all about choice.
Parent
Buffer overflow *again*? (Score:2, Interesting)
Official Language-based security thread! (Score:3, Insightful)
Indeed this flamewar has been repeated many times. Safe languages do indeed provide protection from these kinds of attacks and typically at a fairly small speed penalty [debian.org] (depending on the language; the number-two language on that list is safe and places above C++!).
See the earlier slashdot discussion [slashdot.org] for loads of argument. ( here [spacebar.org] for my perspective--note, I am a tower-in-the-sky PhD student in programming languages, but I do write lots of
PNG security threat (Score:2, Funny)
Combine this... (Score:5, Informative)
Re:Combine this... (Score:3, Informative)
As far as I can tell, that only lets you read memory, which doesn't let you root anything. In fact, I tried the test and though it claimed to have worked, all I got was /proc/mtrr followed 64MB of zeros, which seems odd since my machine's been up long enough that all my physical memory should have been stomped on at some point.
So yes, these are both serious problems, but they still don't boost Linux up into that vaunted "rootable group". (:
Arbitrary Code...? (Score:2, Funny)
Debian (Score:4, Interesting)
Fixed
I love this!
Thanks Guys!
Attribution? (Score:3, Interesting)
I think it is time we started attributing vulnerabilities to the authors (just as we do with companies).
Re:Attribution? (Score:3, Insightful)
Re:Attribution? (Score:3, Insightful)
Terrible idea. I can tell you right now, if I knew I'd be held personally responsible for bugs in open source software I contributed to, I would not contribute. If you want me to take responsibility for my bugs, give me money.
If you don't like buggy free software, don't use it. What you're describing sounds almost like an inverse meritocracy, where people get branded if they don't write code that's
Another exploit in libpng (Score:5, Interesting)
anyone opens it... *BAM* it expands into 2gb of ram.
Re:Another exploit in libpng (Score:5, Interesting)
Parent
Mitigation... (Score:3)
Updating a server to use the patched version of libpng is an obvious first step. You don't want the buffer overflow compromising security as you deliver a
The tricky part is what to do with the
It seems to me that there's a need for some kind of scanning tool that checks for bogus
Does such a tool exist?
-ch
Re:Didn't this happen with BMP? (Score:5, Informative)
function calls, and if you manage to overwrite the return address on the stack, you can make it jump anywhere, like the code you injected.
Hopefully it's just the stack you can overflow, most of us should run with a no executable stack theses days, no harm done(well, it probably crashes.. )
Parent
Re:Didn't this happen with BMP? (Score:3, Interesting)
Ah, you mean the vast majority of people are now running Athlon64's? (tip: Plain IA32 CPUs don't support the NX bit).
Re:Didn't this happen with BMP? (Score:4, Informative)
http://people.redhat.com/mingo/exec-shield
Parent
Re:php ! (Score:5, Funny)
Parent
Re:php ! (Score:3, Insightful)
Of course, but this means that free PHP hosting services are at risk, as some malicious users will try to exploit this flaw on the server side.
It's a decoder problem (Score:5, Informative)
like a longshot to try to inject something to such scripts."
Did you read the article? You don't seem to understand the point here.
The bug affects only loading of PNG images. One can make a specially crafted PNG image which has some invalid fields causing problems in the decoder. The invalid handling of these special error cases may cause an application crash or potential execution of arbitary code in the application which uses libpng.
It is not possible to introduce malicious RAW image data to the encoder. And even if it was possible, you should be able to pump data directly in the encoder, which is not a usual case with dynamically generated images. So, your PHP site is safe.
However, libpng is the most commonly used PNG implementation due to it's free licence. These bugs affect to very many applications (graphics applications, Office applications, user interface managers, browsers, etc.) which happen to use PNG.
A similiar case like this was zlib bugs some time ago.
Parent