Weekly Edition Return to the Security page |
Firefox buffer overflow and full disclosure
Tom Ferris announced
a potentially exploitable buffer overflow in Firefox this week and the
discussion surrounding the flaw has focused on the nature of the
announcement more than the bug itself. Advocates of full disclosure
and those opposed to it have clashed on various internet sites.
The bug is in the handling of international domain names (IDN) and the proof of concept released by Ferris is a specially crafted URL that will cause Firefox 1.0.6 and earlier to crash. Unlike other similar bugs, the user does not need to actually follow the link, just parsing the URL in the page will cause Firefox to crash. It is not yet known whether a malicious person can exploit this to execute arbitrary code on the host but Ferris claims that it can be done in his bug report. A workaround that disables IDN parsing was quickly released by the Mozilla team, and both Red Hat and Fedora released updates to fix the buffer overflow. Complaints have been heard about the amount of time Ferris gave to the Mozilla team to fix the problem before he announced the flaw on the full-disclosure mailing list. His report states that he reported the problem on September 4, but the entry in bugzilla was made on September 6. He disclosed the problem on September 8 before a fix was available and many people find that to be irresponsible. Full disclosure is a contentious issue and many people argue that security flaws should be reported to the author of the software, and that they should be given a 'reasonable' amount of time to investigate and fix the problem before it is announced to the world. The presumption is that the delay reduces or eliminates the possibility of an exploit being crafted while the program is vulnerable. The proponents of disclosure point out that it is quite possible that other people, possibly having bad intentions, know about the flaw already and are working on exploits or have already deployed them. Even if there is no known exploit 'in the wild', security conscious users may wish to stop using the affected program until it can be fixed, and without disclosure they do not have the information necessary to take that step. An additional complication arises because Firefox has been touted as a more secure alternative to Internet Explorer and many less than technically savvy people have installed it. These users do not tend to frequent LWN or other sites that report on security issues and, unfortunately, are likely to ignore the problem even if they do find out about it. This problem is not unique to Firefox, of course, nor to free software in general, but as free software extends its reach, it is a problem that needs to be addressed. A widespread exploit in a free software package, even if the vulnerability has already been fixed, will provide the competition with ample opportunities to suggest that all free software is insecure. (Log in to post comments)
Firefox buffer overflow and full disclosure Posted Sep 15, 2005 9:14 UTC (Thu) by MathFox (subscriber, #6104) [Link] When people start claiming that "you can just as well use IE, because Firefox has bugs too", point them to David Wheeler's Internet Explorer: So insecure, it's only safe 7 days a year. Yes, Firefox could do better than 310 "safe" days, but it shows the order of difference.
Firefox buffer overflow and full disclosure Posted Sep 15, 2005 15:43 UTC (Thu) by RobSeace (subscriber, #4435) [Link] What people that complain about "irresponsible" full-disclosure seem toforget is that these people who find security bugs are doing the developers a favor merely by finding the bug and letting them know about it (either directly, or indirectly by publicizing it so everyone knows about it)... They're essentially working as unpaid QA testers or security analysts... They are under absolutely NO obligation to treat the developers with any level of deference, or to cut them any slack in getting a patch together before going public, or even to notify them personally ahead of time at all! And, it's utterly moronic to berate them for performing a task which directly results in a more secure and stable product, simply because you don't like HOW they chose to help you... Just be thankful they're the ones finding and publicizing such bugs, rather than someone who is a bit less scrupulous, and might instead keep such knowledge to themselves and use it to quietly exploit your software instead... It's not full disclosure that puts users at risk; it's lack of disclosure... And, this modern trend toward "responsible" disclosure, and labelling anyone who doesn't give the developers months of quiet time to secretly work on a patch as bad guys barely a step above script-kiddies, really makes me gag... All that quiet time is time that users of your software remain vulnerable to a security hole which you are fully aware of... Who is "irresponsible" now?? I'd much rather KNOW about the hole myself, so I can either patch it my damn self, or stop using the app, or do something else to mitigate my own risks, thank you very much... Not all of us want to rely on being protected by the all-knowing software-gods, who obviously know better what is good for us than we ourselves do... ;-/
(And, FTR, I'm a software developer myself... I've been writing Unix/C
Firefox buffer overflowand full disclosure Posted Sep 15, 2005 19:49 UTC (Thu) by Duncan (guest, #6647) [Link] Very well stated.If I find a security issue, that info is mine. If I'm a blackhat, I can exploit it myself, or sell it to someone else to exploit. It would only be due to my /not/ being a blackhat, only due to my sense of ethics, that I have any reason at all to make the information known, either publicly or to the author directly, rather than by a zero-day in-the-wild exploit. In such a situation, the author and users should be /thanking/ the discoverer for making such problems known, /however/ they chose to do so, rather than taking illicit gain from the problem, making it known only with a reverse engineering of the already deployed exploit. We (the authors and users) are already in their debt, that they considered our welfare above the possible illicit gains. Additionally, as is commonly pointed out, there's nothing saying someone else isn't already taking illicit advantage of the same security flaw. Thus, it makes no sense for us to be condemning them for /how/ they made the problem public, when we really /ought/ to be /thanking/ them for the disclosure in the first place. As you stated, it's not full disclosure that's the problem, but rather, the lack thereof. Sure, I probably would have given the devs a bit more notice, say, a week or two, before going public. I'd have likely stated the date I intended to go public on the original bug filing: "I will be making this public a week from today." or the like. That's just the way I am. However, what I'd do in no way obligates others to do likewise, and it's just as true that the discoverer is doing the author and the public a favor by turning it in rather than putting it to illicit use, regardless of /how/ long he gives the authors to fix it, even if that's /zero/ time. The timing is entirely up to the discoverer and nothing can change the fact that by going public with the discovery, he's doing the public a BIG favor. Duncan
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 15:22 UTC (Fri) by gerv (subscriber, #3376) [Link] They are under absolutely NO obligation to treat the developers with any level of deference, or to cut them any slack in getting a patch together before going public, or even to notify them personally ahead of time at all!Perhaps not; but they are under a moral obligation to the users of the product not to expose them to unnecessary risk. And that means responsible disclosure.
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 16:46 UTC (Fri) by RobSeace (subscriber, #4435) [Link] No, they most certainly are NOT under any obligation to the users of thesoftware, any more than to the developers of it... Moral, or otherwise...
Besides which, publically releasing the details of the flaw they discovered
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 21:20 UTC (Fri) by gerv (subscriber, #3376) [Link] publically releasing the details of the flaw they discovered is benefiting and protecting the users, NOT exposing them to any kind of risk...That's clearly not true. The more black hats know about the flaw, the more at risk users are. Claiming that releasing details while there's no patch available does not expose users to any extra risk at all is a ridiculous position, not even generally held by advocates of immediate disclosure (who normally say: "Yes, there's an extra risk, but it's worth it to kick the vendor into action"). In a few types of flaw, users can take action to protect themselves, but normally they are at the mercy of the vendor to provide a patch. So revealing the information to the user does not benefit them at all, because they are in exactly the same position as previously - waiting for their vendor. Except now there are more people who know how to attack them. You seem to be laboring under the delusion that the security hole doesn't exist until it has been publically disclosed...I don't think my comments say that at all. I am merely making the point that the risk associated with a hole is equal to the severity of the problem multiplied by the number of people with evil intent who know about it. There are probably 100 holes in [pick-a-product-name] right now which are zero risk, because 0 people know about them - they haven't been discovered by anyone yet. Again, in a limited number of cases, a hole has to be revealed when there's no patch because either the vendor is uncooperative or has made it clear they aren't going to produce a fix. But neither of those things was true in this case.
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 22:05 UTC (Fri) by RobSeace (subscriber, #4435) [Link] > The more black hats know about the flaw, the more at risk users are.
Only if the users remain ignorant of it, as well... Using analogies for
> In a few types of flaw, users can take action to protect themselves, but
That's just not true... Users can ALWAYS take some action to protect
To use another unworkable analogy: if Consumer Reports learned of a flaw
> There are probably 100 holes in [pick-a-product-name] right now which are
Yeah, sure, if literally NO ONE has discovered them, then yes there is zero
Not to mention the fact that you never KNOW whether or not anyone else
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 22:29 UTC (Fri) by gerv (subscriber, #3376) [Link] To use another unworkable analogy: if Consumer Reports learned of a flaw in all Ford cars, whereby someone could easily unlock the doors by tapping them in just the right spot (or something similar), would you rather they quietly just tell Ford about it and wait for them to take months/years to do anything about it, or would you rather know about it yourself, so you can replace the locks on your Ford your own damn self??I'd tell Ford: "You have two weeks to make sure all of your dealerships around the world have a decent stock of replacement locks. Then I'm going public." Which is the exact equivalent of responsible disclosure.
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 22:49 UTC (Fri) by RobSeace (subscriber, #4435) [Link] But, why is that more "responsible" than immediately going public? (Which,I believe, is what Consumer Reports usually actually does...) And, why two weeks? Who made up that number, and deemed it to be the "responsible" time-frame? What if the vendor really can't possibly get a fix out in less than 6 months? Is it "responsible" to inform the public 5.5 months early? If so, then why exactly wasn't it to do so 2 weeks earlier than that?? (It's clearly NOT "responsible" to cave to the vendor, and sit on the issue for 6 months... But, what I'm curious about is what is it that distinguishes the 2 weeks from the 6 months for you?? In this day and age, can't 2 weeks of being vulnerable to a known security hole be just as dangerous as 6 months? So, why not simply inform the users right from the start, so they can protect themselves until the vendor takes however long it needs to to fix the issue?)
Firefox buffer overflow and full disclosure Posted Sep 17, 2005 0:38 UTC (Sat) by giraffedata (subscriber, #1954) [Link] I'd be interested to know what Consumer Reports' policy on this is. I'm not sure it has ever faced the situation. I know Consumer Reports doesn't give any advance warning to manufacturers of defects and other weaknesses in their products that CR intends to publicize, but that's a statement about CR not owing the manufacturer anything. Are these ever defects where some consumers would be hurt just by the publication? Like the Ford lock analogy?I read all the time about journalists withholding information for the public good, and I suspect Consumer Reports really would withhold that Ford lock story until Ford had plenty of time to mitigate the problem.
Firefox buffer overflow and full disclosure Posted Sep 17, 2005 15:35 UTC (Sat) by RobSeace (subscriber, #4435) [Link] > Are these ever defects where some consumers would be hurt just by the> publication?
Once again, I don't buy that the "publication" would be responsible for
Firefox buffer overflow and full disclosure Posted Sep 17, 2005 22:29 UTC (Sat) by giraffedata (subscriber, #1954) [Link] I don't buy that the "publication" would be responsible for anyone getting "hurt" I assume "responsible" is the key word here. I think it's obvious that many people would have their cars broken into if the flaw became common knowledge early who would not have their cars broken into if Ford had time to prepare before it became common knowledge. It's equally clear that there are many people in the opposite situation -- they would avoid the breakin by having the flaw become common knowledge earlier. So I assume you're just saying that spreading the word isn't responsible for any breakins, even though it is obviously a contributing cause. Like the idea that if you leave a pair of glasses on the floor and someone steps on them, the stepper is not responsible for the damage. There are plenty of people who would argue either side of the responsibility question. I still believe in the Consumer Reports analogy, CR would assume responsibility and not publish immediately. It seems to be the prevalent view in journalism, and especially among social good organizations like Consumer's Union (publisher of CR).
Firefox buffer overflow and full disclosure Posted Sep 18, 2005 15:40 UTC (Sun) by RobSeace (subscriber, #4435) [Link] > So I assume you're just saying that spreading the word isn't responsible> for any breakins, even though it is obviously a contributing cause. Like > the idea that if you leave a pair of glasses on the floor and someone steps > on them, the stepper is not responsible for the damage.
Well, more in the way that someone who informs you the building is on
> CR would assume responsibility and not publish immediately.
I'm not so sure that's correct... I don't really know for sure, but I
But, regardless of what they would really do, I certainly don't think it
Firefox buffer overflow and full disclosure Posted Oct 10, 2005 1:47 UTC (Mon) by turpie (guest, #5219) [Link] That's a very poor analogy. Such a fire hazard could result in legitimate users accidently creating a life threatening disaster. Hardly similar to a security bug in a web browser.
Most users would be unable to create their own patches to fix a security hole, and unlikely to want to go to the hassle of swapping to another program if their preferred choice of program is likely to be fixed in a couple of days. I believe developers should be notified of the bug and told that they would have no more than 14 days to fix the problem before it is made public. The developers would then have time to fix or workaround the bug, test and release an update before the blackhats were informed. If the developers didn't respond in time then that fact should be a part the security disclosure so the users may be better informed and can then change their software preferences.
Relation between disclosure and risk Posted Sep 17, 2005 3:08 UTC (Sat) by vonbrand (subscriber, #4458) [Link] It is not so simple... The risk is a growing function of how many black hats know about the problem. So, the disclosure increases risk, as black hats as a whole are rather secretive about their exploits. On the other hand, knowing about the risk helps taking countermeasures, so decreases risk. It simply isn't clear which of the two tendencies wins out. I'd wager that most users just rely on the "automatic upgrade" of their software, so public disclosure (somewhat) synchronized with the patch release schedule of the vendors should minimize risk.
Relation between disclosure and risk Posted Sep 17, 2005 15:39 UTC (Sat) by RobSeace (subscriber, #4435) [Link] Sure, most users are lazy/ignorant, and may not do anything to protectthemselves even when informed... But, does that mean those of us who are NOT lazy and ignorant, and who are willing to take whatever measures necessary to protect ourselves should be kept in the dark, and put at increased risk, simply to protect the lazy and ignorant users?? I'm sorry, but I don't accept that... I think everyone should be given the chance to protect themselves, and if they fail to take it, well that's their own choice...
Firefox buffer overflow and full disclosure Posted Sep 15, 2005 16:38 UTC (Thu) by cventers (subscriber, #31465) [Link] I like Daniel Bernstein's attitude - publish the bug to punish the lazyprogrammer. Sure, we all make mistakes, but if they really bite us in the ass, we might just learn to be more careful with memory management. It's possible to write secure software... indeed, the $500 Qmail security guarantee is still unclaimed...
Firefox buffer overflow and full disclosure Posted Sep 15, 2005 17:24 UTC (Thu) by rfunk (subscriber, #4054) [Link] An unclaimed $500 bounty is no security guarantee.http://www-dt.e-technik.uni-dortmund.de/~ma/qmail-bugs.html
Firefox buffer overflow and full disclosure Posted Sep 15, 2005 23:47 UTC (Thu) by cventers (subscriber, #31465) [Link] The page you linked points out a memory exhaustion condition and aso-called "bounce flood". The memory exhaustion attack is addressed here: http://cr.yp.to/qmail/venema.html As for the bounce flood, I don't see how you can consider this a security problem because the size of the input is 1:1 the size of the output... ie, send a 5 mb message, get 5 mb back. Qmail is a huge target because of DJB's attitude and security guarantee, plus its reputation. So far the only "security problems" anyone can point out are total grabbing-at-the-straws attempts where you don't set ulimits (the procedure is described all over his site, and all the other Qmail sites as well), etc. I'd say that Qmail is the most secure daemon that there ever was, period. It's in huge and widespread use and despite an entire community of hackers that hate Dan, no one has actually managed to execute arbitrary code - or certainly, obtain root privileges. That's beside the point anyway. My point is that buffer overflows and other "escalated privileges" bugs are not at all a fact of life... they're a result of lazy programming and/or cluelessness. Sure, we all make mistakes... but I think Dan's qmail demonstrates that good design and careful programming can produce software that doesn't break. Firefox is certainly way on the other end of the spectrum, second to only Internet Explorer in its number of exploits.
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 11:48 UTC (Fri) by RobSeace (subscriber, #4435) [Link] > Firefox is certainly way on the other end of the spectrum, second to only> Internet Explorer in its number of exploits.
Ok, most of your comments were reasonable, but this is just a horrible
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 15:06 UTC (Fri) by cventers (subscriber, #31465) [Link] Look... I don't dislike Firefox, and I hate Internet Explorer. I'drecommend Firefox over Internet Explorer to anyone and everyone. (Personally, I use Konqueror, because I have that option available on my platform). But there has been a large number of exploitable bugs that have been reported on Firefox since it became popular. When the floodgates first opened, I was like a lot of other Firefox users - I patched and said to myself, "well, it's still more secure than Internet Explorer". Then there was another volley, and another volley. Is Firefox more secure than Internet Explorer? Almost certainly. I'm just objecting to many people's practice of pretending that it's a really secure browser. Better than the competition? Yes. Really secure? The track record makes me question that.
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 16:49 UTC (Fri) by RobSeace (subscriber, #4435) [Link] > Better than the competition? Yes. Really secure? The track record makes me> question that.
Ok, that's a perfectly reasonable stance... But, that's a far cry from
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 22:44 UTC (Fri) by cventers (subscriber, #31465) [Link] Actually, there is a vast ocean of difference. And I was wrong. This ison /. today: 'From March 2005 to September 2005 10 vulnerabilities were published for Microsoft Internet Explorer, 40 for Mozilla Firefox. In April-September timespan there were 6 exploits for MSIE, 11 for Firefox. From March 2005 to September 2005 10 vulnerabilities were published for Microsoft Internet Explorer, 40 for Mozilla Firefox. In April-September timespan there were 6 exploits for MSIE, 11 for Firefox. ' I rest my case.
Firefox buffer overflow and full disclosure Posted Sep 17, 2005 15:47 UTC (Sat) by RobSeace (subscriber, #4435) [Link] Oh, please... I do hope you're joking, and aren't actually buying intothat ZDNet FUD... Comparing raw numbers of adviseries is never a good tactic, to start with... Product X may have a higher number of discovered bugs than product Y, but that says absolutely nothing about the relative security of the two... If all of product X's bugs are trivial and cause no serious problems, while all of product Y's are extremely serious and lead to easy exploitation and take-over of the system, then which would you rather be running?? If all of product X's bugs were fixed within a couple days, while all of product Y's remain unfixed to this day, which would you rather be running??
Firefox buffer overflow and full disclosure Posted Sep 17, 2005 19:34 UTC (Sat) by cventers (subscriber, #31465) [Link] Ok, then, how exactly do you quantify the difference in security betweenInternet Explorer and Firefox? So far all you've said is that Firefox is much more secure than Internet Explorer. Do you have any way at all to back up this claim? I got tired of being a Firefox apologist... perhaps you should too.
Firefox buffer overflow and full disclosure Posted Sep 17, 2005 20:11 UTC (Sat) by RobSeace (subscriber, #4435) [Link] How about number of machines/users infected/exploited because of each? Or, how about the idea proposed in the link from the first comment on this story: number of safe/unsafe days? Or, if you want to go with simple counts, how about separating the actual critical/important bugs from the minor/trivial ones, and compare apples to apples and oranges to oranges, at least? Or, how about you actually follow the links in that ZDNet story to Secunia, and read what THEY actually have to say on the matter, rather than some ZDNet mouthpiece with an axe to grind? ("Mozilla Firefox 1.x ... 22 total advisories ... 0% extremely critical, 23% highly critical, 36% moderately critical, 32% less critical, 9% not critical ... leads to system access: 18% ... remains unpatched: 14%" versus "Microsoft Internet Explorer 6.x ... 85 total advisories ... 14% extremely critical, 29% highly critical, 20% moderately critical, 14% less critical, 22% not critical ... leads to system access: 31% ... remains unpatched: 28%"... Does Firefox look great? No, certainly not... But, it's not even on the same universe of insecurity as IE is...)
Firefox buffer overflow and full disclosure Posted Sep 17, 2005 20:18 UTC (Sat) by cventers (subscriber, #31465) [Link] I see no point in continuing to push this debate along - neither one ofus is going to have an impact in either the number of Firefox/IE users or the number of Firefox/IE vulnerabilities. You're probably right on all regards about establishing the security difference (who knows, I don't feel like arguing about it). The bottom line? I guess your definition of universe differs from mine. Firefox looks incredibly insecure to me. So does Internet Explorer. If you could define some magic security number and rank all of the Internet Browsers, Internet Explorer would probably be the worst, followed by Firefox, followed by the rest of the browsers. I made this basic claim a number of posts back, and you felt determined to point out this universe of difference between the two. Frankly, the gap doesn't seem *that* wide to me. At the end of the day, though, what have we won? I've wasted a cumulative half an hour arguing over it, and so have you.
Firefox buffer overflow and full disclosure Posted Sep 17, 2005 21:29 UTC (Sat) by RobSeace (subscriber, #4435) [Link] Arguing online never accomplishes much... But, it's sometimes fun... ;-)
As for other browsers besides IE and FF, I don't know... But, so few people
Now, maybe you could argue that other browsers are more deserving of the
But, anyway... Like you say, I think we've pretty much said as much as we
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 14:55 UTC (Fri) by KaiRo (subscriber, #1987) [Link] > Firefox is certainly way on the other end of the spectrum, second to only> Internet Explorer in its number of exploits.
From what I know, the Linux kernel has about as many security flaws getting reported than the whole Mozilla source repository (of which Firefox is only a part, even though it uses a vast majority of it, as the Core code is used by all of Mozilla suite, SeaMonkey, Firefox, Thunderbird etc.) or maybe the kernel has even more.
That doesn't mean the kernel is very insecure, nor does it mean that for the Mozilla codebase. It's just that both a really huge piles of code doing an incredibly large amount of stuff - and yes, even rendering web pages as well as Gecko does is a very large and complex task to do.
It's much easier to create a project that does a fairly simple (even if important) job, such as an SMTP server or, say, a shell, without known security flaws than a system kernel or a sophisticated, modern web browser. Why? Just look at the amount of code involved and the dirty tricks you sometimes need to go thorugh to e.g. work with hardware and userspace (in the case of the kernel) or plugins and scripting (in the browser case).
That said, it's good that there are tools out there that have no really known security issues (yet), believing they'll never have is more dangerous than knowing you have to apply some patches now and then.
Firefox buffer overflow and full disclosure Posted Sep 16, 2005 15:08 UTC (Fri) by cventers (subscriber, #31465) [Link] You're right about the number of vulns in the kernel. It's upsetting.Thankfully, though, the kernel vulnerabilities tend to apply only in a very specific situation, and very rarely allow someone without an account to do anything dangerous. So perhaps comparing the kernel (an operating system) to Firefox (an Internet browser) is unfair. But I didn't bring up apples to oranges - the comparison was Firefox and Internet Explorer, and both have had a very embarrasing security history lately.
$500 bounty Posted Sep 15, 2005 19:43 UTC (Thu) by rfunk (subscriber, #4054) [Link] To expand a bit... $500 is cheap for someone with the required knowledgeto spend the required time to audit qmail. Generally those people make that amount in a morning, which is much much less than it would take to audit the program.
Firefox buffer overflow and full disclosure Posted Sep 15, 2005 22:51 UTC (Thu) by RobSeace (subscriber, #4435) [Link] But, it's really NOT "punishment" of any sort... That's the point I wastrying to make above... It's HELPING the programmer (and, the users), whether they actually REALIZE that at the time, or not...
|
Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.