Stories
Slash Boxes
Comments

News for nerds, stuff that matters

A Security Bug In Mozilla - The Human Perspective

Posted by timothy on Wed Oct 06, 2004 01:35 PM
from the danger-of-success dept.
xslf writes "Alex Vincent, the reporter of the data-loss security bug 259708, writes about the behind the scene process of reporting it, casting light on the problems of dealing with security related bugs reported by the community, which isn't always aware of the security implications of the bugs reported. The issues with the FLOSS process shown in this bug might get worse, once more and more people use FLOSS and add to the process, without being full fledged coders, and rely on binary releases of software." (Note, you'll have to copy and paste that link to view the bug report, or click through from the linked story.)
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • What are you trying to do? Shut down the Mozilla project?!? If you absolutely NEED to see the bug, go to MirrorDot [mirrordot.org] and look it up there.
  • by thewldisntenuff (778302) on Wednesday October 06 2004, @01:41PM (#10452946)
    (http://homerengineeringcorp.net/)
    "Well, some smarty-pants decided to repost my entire blog entry about bug 259708 as a comment on one of my entries, with an e-mail address of "fulldisclosure@netsys.com". Word for word, no changes, and no commentary either.
    This annoyed the hell out of me. On the one side, I could see this anonymous poster's point: the bug was already in the public domain when it disappeared very suddenly."

    What are you complaining about? Isn't this your fault for taking the entry down to begin with?

    I'm going to troll a bit here, but doesn't this essay/blog entry just bitch about how he feels things weren't handled in a manner to his liking? And shouldn't he be faulted for how he initially handled the bug? (Noted below-)

    "Losing data is horrendous, yes, but not as bad as losing it to someone else. That just wasn't happening here. So I decided not to ask for a security group review. That was my first mistake.

    Lesson Number One: The very instant you start to wonder if a bug might cause a security concern, stop wondering and ask the security group to review. Don't try to do the security group's job by trying to decide if it really is one or not."

    I think the bigger concern here was whether or not the bug got fixed, and once it was properly classified, it was indeed fixed. There probably could have been a faster fix for this bug, but I think most of what happened in this case can be directly faulted to him.....

    -thewldisntenuff
    • Um, that seemed to be the whole point. Again and again throughout the article he does a mea culpa. At the same time, I believe his general frustration with not knowing how to proceed comes through. We in FOSS need a more concrete process on how to handle bug through the system. And even very successful projects, like Mozilla/FireFox, can do a better job at communicating the way to handle these types of situations.
      [ Parent ]
    • Yes, you are... (Score:5, Insightful)

      by Roadkills-R-Us (122219) on Wednesday October 06 2004, @02:09PM (#10453161)
      (http://www.rru.com/~meo/)
      Hmmm. That's a rather difficult conclusion to reach if you really read the article and think about it. Alex accepted the blame where he messed up, and noted other places he wasn't sure about.

      The fact is,the other person should not have reposted someone else's blog entry without permisison.

      The article was quite insightful. Hopefully it will lead to a better process.
      [ Parent ]
    • by Tor (2685) on Wednesday October 06 2004, @02:14PM (#10453202)
      (http://slett.net/)
      As he tried to convey in the article, the issue is not whether he can be faulted or not (and indeed, he can; then again, you can expect that many/most bug submitters would make "mistakes" like these).

      The quote, however, deals with someone who submitted for his weblog a word-for-word copy of his original bug report, without any comments, return address, or source. That goes a bit beyond useless and unhelpful, IMHO; that borders on disrespectful. At the very least, as he is saying, if that person indeed wanted full disclosure, he should point to where he found the copy of the text, so that the Mozilla security team could be made aware of it.

      Overall a well written article, certainly a lot more thoughtful than your comment.

      -tor
      [ Parent ]
    • Re:Looking for blame in all the wrong places by BillX (Score:2) Wednesday October 06 2004, @07:48PM
    • 3 replies beneath your current threshold.
  • by Jeffrey Baker (6191) on Wednesday October 06 2004, @01:44PM (#10452959)
    Speaking of existing security bugs in Firefox & Mozilla, here's a security bug that's been open for 3.5 years and really needs some hero to come in and fix it. (The bug is assigned to me but I'm not qualified and don't have the time to come up with a real solution).

    Bug 69070 [mozilla.org]

    The bug was on bugtraq in 2001! It allows remote pages to open and use files on the local machine, and is also a denial of service on Linux, since Mozilla stupidly allows the opening of paths which are not regular files (/dev/tty).

    My experience with 69070 has been educational. I've learned if there's a security bug you care about, you had better fix it yourself. Unfortunately I can't but maybe someone in the audience has the spare time to step up.

  • by Tei (520358) on Wednesday October 06 2004, @01:44PM (#10452961)
    (Last Journal: Thursday August 21 2003, @11:52AM)
    Opps.. where are ALL my precious precious downloaded files?
  • Don't tease us like that (Score:2, Funny)

    by ShatteredDream (636520) on Wednesday October 06 2004, @01:50PM (#10453005)
    (http://www.blindmindseye.com/)
    You know we can't access bugzilla from slashdot links. It's just everytime I go to the clubs with a beanie, I get turned away. Why are we doings this to each other, HUH?!
  • by h00pla (532294) on Wednesday October 06 2004, @01:56PM (#10453048)
    (http://lexicali.com/)
    I really hate that acronym. FLOSS reminds me of brushing and FLOSSing (ie - picking the crap out from between your teeth). Is it really too much to ask to write out Free and Open Source software or how about Free/Open Source software? I can just see what's next - we'll be referrring to some development process as ENEMA.

    Acronym loving developer: I advocate the use of FLOSS and if it's with ENEMA, all the better.
    CIO: You're fired.

  • by reporter (666905) on Wednesday October 06 2004, @02:01PM (#10453092)
    The lesson here is that security problems are not restricted to commercial software products: e.g. Microsoft's Internet Explorer. Open-source software without the backing of a stable commercial company (i.e. IBM backing Linux) runs the serious risk that a security flaw will not be addressed promptly or effectively since we are relying on the goodwill of programmers. How do we ensure "goodwill"?

    On the other hand, open-source software backed by a stable company does not face the same problem. Consider Linux. If the open-source community did not address the security flaw expeditiously, then you can be sure that IBM will step into the picture and fix the problem promptly. IBM will never fail its customers. Hence, Linux exploded in popularity among commercial companies after IBM committed $1 billion to Linux.

  • What is FLOSS ? (Score:2, Insightful)

    What the heck is FLOSS ?

    There was a 2002 paper [linuxdevices.com] published by the Mitre Corporation [egovos.org] that used the term "FOSS", meaning "free and open-source software". As far as I know, this was the first use of the term, but it may go back a bit farther than this.

    I don't, however, have any idea what "FLOSS" is supposed to mean. Assuming that it isn't related to dental hygiene, what is it supposed to stand for ? "Free {Linux, liberty, low-cost} open-source software" ? Just a nonsense corruption of "FOSS" ?

    The closest explanation I can find is this blog entry by David Wheeler [dwheeler.com]: "Free-Libre / Open Source Software". Is this really what people are trying to say ?

  • by Anonymous Coward on Wednesday October 06 2004, @02:11PM (#10453173)
    This guy made the #1 mistake you can make when it comes to bug advocacy. He assumed his bug was more important than all the others. It had to be fixed now! Now! Now! Now!

    Which can be entirely correct, but you don't get anywhere by running around like chicken little trying to make everybody look at your bug. They heard you the first time. If you don't have any new substantive information to give them, sit back and relax. People never respond to selfish requests well. It can even discourage them from taking a look at it.
  • smart defaults (Score:5, Insightful)

    by osssmkatz (734824) on Wednesday October 06 2004, @02:19PM (#10453243)
    (Last Journal: Monday December 22 2003, @02:49PM)
    This bug was a security bug in part because Firefox 1.0 changed the default download directory so that downloadable files were saved directly to the desktop.
    Microsoft is always criticized for having bad defaults. In this case, having the default download directory be the desktop was a bad default. I would argue that you wouldn't neccessarily do bad to create a folder for each downloadable file. No one would be annoyed by that, and it would provide protection in the file system for any future holes.

    You could also have a "recently downloaded files" directory on the desktop. Even a shortcut to "Location of downloaded files". Mozilla has been known for its innovation. Using the desktop is not innovative--the desktop should never be a permenant storage location. Everything Microsoft puts there is a shortcut.

    I also question whether it was wise to change or set defaults in a "1.0" milestone release.
  • by jd (1658) <imipakNO@SPAMyahoo.com> on Wednesday October 06 2004, @02:21PM (#10453256)
    (http://slashdot.org/ | Last Journal: Saturday November 03, @04:58AM)
    I've honestly not heard too many good things about Mozilla. Oh, the team is certainly bright, and they have produced an excellent browser, but the politics are hairy and some of the coding quality isn't what I'd expect.


    First off, if someone reports a bug, it should be ASSUMED that there is a potential security issue there, until proven otherwise. Why? Because there are generally side-effects. Even if the bug doesn't directly do anything nasty, it may very well cause something unintended which, in turn, causes something else unintended, and so on. Programmers generally talk of such effects "cascading" or "snowballing", because the effects usually do build up over time. Sooner or later, this will result in a corruption of data, a program crash or an exploit due to insufficient value checking.


    There are two classes of bugs in a computer program. Those that cause the program to crash, and those that don't. The second type are much harder to track down (because you've no real indication of where the problem started), but they are generally much worse and much more prevelent.


    The "correct" way to handle bugs is to assume that (almost) any problem puts the software at risk of a non-fatal bug that could (eventually) destabilize the program or open an exploit. Spelling errors in text messages are probably OK, but even there, if you're placing them in fixed-length buffers, it is saner to check and be sure that the risks are low than to ignore apparently trivial "appearance" stuff that could be catastrophic. I've seen programmers give themselves buffer overflows, I've even seen programmers rely on certain OS quirks when an overflow occurs. The code may not be portable, and it sure as hell isn't safe, but it does work.


    (I've actually seen some code that won't run, unless the debug flag is present. The code will actually segfault if the extra padding the debug data creates is not there. Not from the Mozilla team, this was in a prior place of employment, but it does demonstrate that coding is not just about making something "work" it's about making it work for the right reasons.)


    Now, the Mozilla team is probably simply too small to regard every bug entered in their database as a potentially critical show-stopping security hazard. This, however, reflects more on the userbase than on the Mozilla folks. Open Source works if, and only if, the "lots of eyes" out there looking for problems also translate into "lots of hands" for fixing problems.


    Sure, not everybody is going to be a coder. So? If a mere 1 in every 100 users took the time to chase down not only the bug as seen, but at least some of the prior bugs that that bug depended upon to do anything at all... Mozilla would be in a lot better shape.


    Politics in projects don't help. GCC and Glibc suffer badly from a management style that can be diplomatically summed up as "Old-Style IBM without the money - or the justification". There's a lot of "Not Invented Here", "Somebody Else's Problem" and "It Works For Us", although the GCC team is apparently a lot better than it used to be.


    The moment any project suffers from any of those three things is the moment that it is under a self-imposed sentance of death, to be carried out the moment a better alternative arrives, where the only possible hope of a reprieve is to tackle those attitudes and eliminate them.


    9 out of every 10 security bugs are caused by a fault in attitues, at the time of coding or later, and not by any fundamental nature of computing.


    BTW, this is off-topic, but biologists and geneticists are mourning the passing of one of the three scientists who discovered the structure of DNA. The BBC [bbc.co.uk] is reporting the death of Professor Maurice Wilkins, aged 87. He died in hospital, no cause was given.

  • by joey (315) <joey@kitenet.net> on Wednesday October 06 2004, @02:28PM (#10453331)
    (http://kitenet.net/)
    I'm flabbergasted that the mozilla security people seem to think that "hiding" a previously public bug after it's noticed that it has security ramifications is an effective way to keep black hats from noticing it.

    I think it's safe to assume that black hats interested in finding 0-day security holes in mozilla have already, or soon will create a mirror of the bugzilla archive, with history. Then they can look for bugs that are suddenly removed from the public bugzilla archive, and have some very good candidates for fresh security holes.

    And there's no way the mozilla security people can effectively combat this. At best they get into a technology arms race with the black hats, trying to figure out what techniques they're using to spider and mirror the archive.

    Once a bug is posted to a public bug tracking system, even if it's only been there for an hour, you might as well give up and assume it's widely publically known.

    Oh and in my personal experience, the best way to get a security bug fixed once you discover it is to immediatly write an exploit, clearly flag the bug as a security hole, and post it to a public forum with a sifficuently broad readership that someone in a position to fix the bug will, be that the project's BTS or bugtraq.
  • by pe1chl (90186) on Wednesday October 06 2004, @02:29PM (#10453338)
    It is not a bug in Mozilla. It is a bug in Firefox.
    Please don't confuse Mozilla users with security bugs that are not in their browser.
  • Give us CHROOT! (Score:5, Interesting)

    by freelunch (258011) on Wednesday October 06 2004, @02:31PM (#10453355)
    Running Mozilla or Firefox in a chroot environment would greatly enhance security.

    I recently tried to get this working but didn't have much luck (haven't given up yet). There isn't much info on the web.

    I currently run Firefox under a separate user ID, which is better than the default.

    Any suggestions to get chroot working with Firefox?
  • Unconfirmed bugs (Score:1)

    by asciono (220392) on Wednesday October 06 2004, @02:35PM (#10453385)
    The article author writes:
    By "regular contributor," I mean someone who files good bug reports and typically doesn't file UNCONFIRMED bugs.

    This is more of a question. How do you file a "CONFIRMED" bug? If I personally file a bug, I've always thought that someone else steps up and tests the bug. If he/she can reproduce the bug he changes it to "NEW".

    Have I done it wrong all the time? :(
  • OSS Is Not A Magic Bullet (Score:4, Insightful)

    by EXTomar (78739) on Wednesday October 06 2004, @02:43PM (