Slashdot Mirror


US DHS Testing FOSS Security

Stony Stevenson alerts us to a US Department of Homeland Security program in which subcontractors have been examining FOSS source code for security vulnerabilities. InformationWeek.com takes a glass-half-empty approach to reporting the story, saying that for FOSS code on average 1 line in 1000 contains a security bug. From the article: 'A total of 7,826 open source project defects have been fixed through the Homeland Security review, or one every two hours since it was launched in 2006 ...' ZDNet Australia prefers to emphasize those FOSS projects that fixed every reported bug, thus achieving a clean bill of health according to DHS. These include PHP, Perl, Python, Postfix, and Samba.

203 comments

  1. What about MS? by Anonymous Coward · · Score: 5, Funny

    Now if they would do the same to Microsoft. Oh yeah...

    1. Re:What about MS? by Anonymous Coward · · Score: 1

      Silly question. It simply means DHS and other Federal agencies will have more reason than ever to dump MS and switch to FOSS.

    2. Re:What about MS? by filbranden · · Score: 4, Interesting

      Actually, it would be really nice if it was possible to do it with Microsoft. Microsoft (or most other companies that produce proprietary software) certainly can't do better than what the open source projects do, and certainly their code contains at least as much issues as the ones found in open source projects.

      The ability to do code audits has always been one great advantage of open source software, but until now, it was mostly in theory. Now we start to see big code audit projects such as this one, showing that the advantage is real and that the results of the audit are good, since some of the projects have alread patched all of the issues, and certainly most of others will finish patching them soon. This shows that open source is here to stay, is going mainstream, and will not be stopped by any company's interests.

      All issues that currently exist on Microsoft's code, on the other hand, will be unpatched. Unless they hire some consultant company (why not the same?) to do the audit on their code (certainly under NDA). But you can be sure that, if they do, for one, they won't publish the results of how many issues were found. No transparency there. And also, probably many issues won't be fixed as promptly as all of them were fixed in many of the audited open source projects. This is not a speculation, if you only look at how long it takes for them to fix issues for which there are security vulnerability reports issued, then you realise that the ones only they know about will certainly take much longer.

    3. Re:What about MS? by Shados · · Score: 2, Informative

      Well, technically, they don't need to -hire- some consultant companies to do it... While it WILL be under extreme DNA, it is not uncommon for Microsoft's customers to be allowed to get access to the source, if they're big enough.

      Now, I realise it doesn't change your point at all, but its not like MS is the only entity with access to their own code: they have dedicated programs to share even their most closed pieces of code with their customers (if they're important enough).

    4. Re:What about MS? by DerekLyons · · Score: 1, Insightful

      This shows that open source is here to stay, is going mainstream, and will not be stopped by any company's interests.

      It also shows that open source has failed to use a common tool to self audit - it took a third party to do so.
    5. Re:What about MS? by splutty · · Score: 4, Insightful

      I see nothing wrong with a 3rd party specialized in this sort of auditing to actually do it, instead of a whole bunch of programmers & others who probably don't have that specialization, and are most often busy with actually being 'productive' and thus have no time to audit themselves (impossible) or others (not always efficient)

      --
      Coz eternity my friend, is a long *ing time.
    6. Re:What about MS? by cp.tar · · Score: 4, Insightful

      This shows that open source is here to stay, is going mainstream, and will not be stopped by any company's interests.

      It also shows that open source has failed to use a common tool to self audit - it took a third party to do so.

      Since an audit is usually an independent review, I see it as only logical for it to have been done by a third party.

      The point is, it is open. Anyone may perform an audit at any time they wish to do so.
      And everyone apart from the developers themslves and the users of the software is third party, by definition.

      --
      Ignore this signature. By order.
    7. Re:What about MS? by budgenator · · Score: 2, Insightful

      Feel free to pay to have any OSS project audited you would like to see made better.

      --
      Apocalypse Cancelled, Sorry, No Ticket Refunds
    8. Re:What about MS? by rtb61 · · Score: 3, Insightful
      WTF? Your statement makes abso-fucking-lutely no sense at all. In open source there is no such thing as a third party or second party, anyone and I mean absolutely anyone, be they part of the government, employed by a corporation company or private individual that contributes to open source software is a first rate party.

      That is what open source is all about, anybody can contribute their worth while efforts to it. Contribution to open source not only includes code, it also includes, auditing as well as actual innovation and even those other activities like distribution, documentation, promotion and support.

      So your illogical claim of failure is in reality open source success. I will never understand why closed source proprietary zealots just don't get it, I suppose it just goes to prove greed and stupidity really do go hand in hand ;).

      --
      Chaos - everything, everywhere, everywhen
    9. Re:What about MS? by INT_QRK · · Score: 1

      Although the headline is terribly misleading, when you actually RTFA, FOSS security implications are *very, very* positive, especially in contrast with the title's tone. Notworthy security implications include an enhanced ability to detect defects (compared with proprietary), relatively low defect rates found in most of the big projects mentioned, and their demonstrated responsiveness in fixing defects once identified. Jeez. One other observation -- all defects are not equal, and missing in the article is any perspective on the nature or severity of any defects found. Lacking this perspective, there is not much a reader can conclude, except FOSS security doesn't look too bad...

    10. Re:What about MS? by macurmudgeon · · Score: 2, Insightful

      WTF? Your statement makes abso-fucking-lutely no sense at all. In open source there is no such thing as a third party or second party, anyone and I mean absolutely anyone, be they part of the government, employed by a corporation company or private individual that contributes to open source software is a first rate party.

      I beg to differ. In the never never land of theory you may be right. However, there is a huge practical consideration. Projects, especially the ones mentioned in the article all have a core development group that determines the project's direction. Others may be free to offer changes but if the core group or guiding individual doesn't want to use the changes, then the project doesn't incorporate it. Then you have the choice of simply doing your own modifications that don't get generally accepted or creating a fork.

      Evaluating the security of a complex open source projects require an independent group with the resources to perform the audit, one that is influential enough to not be ignored and one that is not part of the the group culture of the project. For all practical purposes, that is a third party.

    11. Re:What about MS? by rtb61 · · Score: 1
      Every contributing entity to an open source project is an independent group, preferring open source is in itself a strong indication of independent thought. A core group initiates a project but should the majority of contributors not like the direction they are going they will create a new core group take the software in a new direction and the majority of contributors will transfer across, all with out much fuss or bother.

      Just look at the transitions from one leading Linux distribution to another. Redhat to SuSe to Ubuntu/Kubuntu all without much bother or fuss at all, not theory but actual practice. As for security the NSA has contributed as I am sure will the GRU (Glavnoje Razvedyvatel'noje Upravlenije) or even GAB (Guojia Anquan Bu). Of course they will be doing it to provide for their own security but the end result is we all still benefit. Simultaneous to that, oddly enough, those same organisations will also be working on ways to crack windows and hack other countries computers, this they will of course not share, proprietary code in action.

      --
      Chaos - everything, everywhere, everywhen
  2. "The" PHP? by sticks_us · · Score: 1, Funny

    I stopped reading after they called it "The PHP."

    --
    "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth
    1. Re:"The" PHP? by JorDan+Clock · · Score: 3, Informative

      ..the PHP, Perl, and Tcl dynamic languages...
      "The" in this sentence refers to the list, not just PHP.
    2. Re:"The" PHP? by grcumb · · Score: 5, Funny

      ..the PHP, Perl, and Tcl dynamic languages...
      "The" in this sentence refers to the list, not just PHP.

      How could he possibly know that? He said already that he stopped reading after 'the PHP'.

      /me ducks and runs...

      --
      Crumb's Corollary: Never bring a knife to a bun fight.
    3. Re:"The" PHP? by sticks_us · · Score: 1

      This language needs parenthesis, or some better documentation on precedence. I parsed each item in the clause as:

      (Samba) (the PHP) (Perl) (Tcl dynamic languages) (Amanda) ...when I guess the intent was

      (Samba) the (PHP, Perl, Tcl dynamic languages) (Amanda)

      --
      "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth
    4. Re:"The" PHP? by Anonymous Coward · · Score: 0

      Job.Good = True

    5. Re:"The" PHP? by Anonymous Coward · · Score: 1, Funny

      So close. Lets turn those into a proper Tcl list, shall we...

      set thislist {Samba} {the PHP} {Perl} {Tcl dynamic languages} {Amanda}
    6. Re:"The" PHP? by Unoti · · Score: 1

      Languages like And Such, and the PHP.

    7. Re:"The" PHP? by Anonymous Coward · · Score: 1, Insightful

      PHP essentially stands for "Hypertext Preprocessor", if you ignore the "recursive initialism".

      "The Hypertext Preprocessor" sounds as reasonable to me as "The Windows Operating System".

    8. Re:"The" PHP? by grcumb · · Score: 2, Funny

      So close. Lets turn those into a proper Tcl list, shall we...

      set thislist {Samba} {the PHP} {Perl} {Tcl dynamic languages} {Amanda}

      No, I think he's deliberately speaking with a LISP.... 8^)

      --
      Crumb's Corollary: Never bring a knife to a bun fight.
    9. Re:"The" PHP? by Nullav · · Score: 1

      "The Windows is broken"?

      --
      I just read Slashdot for the articles.
    10. Re:"The" PHP? by Anonymous Coward · · Score: 2, Funny

      Learn grammar: "The Windows ARE broken", since all of them are.

    11. Re:"The" PHP? by bladesjester · · Score: 2, Funny

      Languages like And Such, and the PHP.

      Security and computer science as explained by a valley girl?

      Like totally!

      --
      Everything I need to know I learned by killing smart people and eating their brains.
    12. Re:"The" PHP? by Seumas · · Score: 1

      That's what happen when someone doesn't know how to write very well.

      All the writer had to do was preface "the" with "and"; the entire thing would have made logical and readable sense.

    13. Re:"The" PHP? by ESqVIP · · Score: 1
      Actually, I believe it would be better as

      (Samba, the (PHP, Perl, Tcl) dynamic languages, Amanda)
    14. Re:"The" PHP? by gwking · · Score: 1

      lol that's why i love slashdot, the comments are way better than the stories

    15. Re:"The" PHP? by Anonymous Coward · · Score: 0

      Yea, but what if he'd said "Oh noes! Teh windows are broken!"...?

    16. Re:"The" PHP? by Anonymous Coward · · Score: 0

      Sorry! I'm over-educated. I meant "Teh windows is broken".

    17. Re:"The" PHP? by Pope · · Score: 1

      So in this context, "the PHP" is like how old people refer to "the cancer."

      --
      It doesn't mean much now, it's built for the future.
  3. Fixed? by sjbe · · Score: 5, Funny

    A total of 7,826 open source project defects have been fixed through the Homeland Security review


    Do they mean fixed or fixed?
    1. Re:Fixed? by Anonymous Coward · · Score: 0

      A total of 7,826 open source project defects have been fixed through the Homeland Security review Do they mean fixed or fixed? Well since repairing them results in them no longer being vulnerable from that vector, I'd say both.
    2. Re:Fixed? by simonv · · Score: 1

      Or do they mean fixed?

  4. Looking good, too bad the press didn't understand by Bruce+Perens · · Score: 5, Insightful
    The important point here is that proprietary software manufacturers aren't telling you how many security flaws they had. I bet it's more than 1 per 1000 lines, that is an incredibly excellent figure for the first time a scanner like coverity is run. I doubt proprietary work comes close.

    You can't ever say that proprietary software is secure, because there's no way to prove it. With Open Source, you can come a lot closer to proving that it is secure, because you can employ every security test that exists.

    The fact that a coverity scanner bug is reported doesn't mean it's an exploitable security flaw.

    Bruce

  5. What an amazing victory for OSS! by Anonymous Coward · · Score: 0

    A third party came in, identified bugs, and they're being fixed...

    Meanwhile, any third party can't peruse the code of the non-open software alternatives and can't find the bugs...

    Congrats OSS!

    (PS-- anyone know- do they count the same bug appearing multiple times as one bug or many?)

  6. AN opportunity to modify the GPL.. by bigattichouse · · Score: 0

    Just thought of this: Make it stipulation of GPL that if you publically report bugs or bug counts in GPL software, that you must also produce a detailed account of how to reproduce the bug, and you must provide that report to the maintainer of the current source (who you got it from, or the root source as listed in the code). Possibly a two-week window between notification (and acknowledgement) and publication. In a way, firms are profiting from the GPL software, but I can guess they aren't reporting all these issues. Sure you could fix stuff in private - but to publically announce it, you should have to allow everyone the oppotunity to fix it.

    --
    meh
    1. Re:AN opportunity to modify the GPL.. by Anonymous Coward · · Score: 1, Insightful

      We really need a +1 Stupid option

    2. Re:AN opportunity to modify the GPL.. by Lehk228 · · Score: 1

      I would like to consider you an hero of the open source movement

      please become an hero.

      --
      Snowden and Manning are heroes.
    3. Re:AN opportunity to modify the GPL.. by Anonymous Coward · · Score: 0

      That is a stupid idea. Even if it was an issue, what difference does it make as long as it get fixed?

    4. Re:AN opportunity to modify the GPL.. by WK2 · · Score: 2, Insightful

      There are two problems with your suggestion:

      a) it is too restrictive, and would disqualify the GPL as free software. Remember, that the GPL is a distribution license, not a list of restrictions. You should be able to talk to other people (even publicly) about software without contacting the maintainer first. The behavior you describe is responsible, and generally recommended, but should not be forced.

      b) as you have it worded, if the restrictions were followed, it would enable a maintainer to prevent anyone from disclosing any security bugs. You say that reporters have to wait for an acknowledgment. What if one is never received? What if there is no maintainer? The solution for this problem is obvious (don't require an acknowledgment), but I should point it out, nonetheless.

      c) It is not enforceable in most jurisdictions. In the US, and I assume most of the "free world", you can't prevent someone from talking about your products publicly. You can have them sign an NDA, but that doesn't work for publicly available software. McAfee tried something like this some time ago, stipulating in the EULA that you can't benchmark their software. It got shot down in court.

      --
      Write your own Choose Your Own Adventure. http://www.freegameengines.org/gamebook-engine/
    5. Re:AN opportunity to modify the GPL.. by Guy+Harris · · Score: 2, Insightful

      Just thought of this: Make it stipulation of GPL that if you publically report bugs or bug counts in GPL software, that you must also produce a detailed account of how to reproduce the bug, and you must provide that report to the maintainer of the current source (who you got it from, or the root source as listed in the code). Possibly a two-week window between notification (and acknowledgement) and publication.

      Not all bugs are easily reproducible - and not all bugs are found by tripping over them. Consider, for example, bugs found by various of the warnings enabled by GCC's -W options. I.e., you get reports saying "this code path has these problems", not reports saying "this code path blew up when I did XXX".

      I just looked at an old report from Coverity on one of the free-software projects with which I'm involved - one of the problems it found was in a chunk of code

      if (cfg->in)use) {
      report an error;
      return;
      }
      if (cfg != NULL) {
      process what it points to;
      } else {
      report an error and clean up;
      return;
      }

      where it quite appropriately pointed out that we were checking whether cfg was null after dereferencing it rather than before dereferencing it. We subsequently fixed that problem.

      It might be possible to construct a scenario where the application would crash due to that bug - or it might not; that bug is in "framework" code, and if the code using that framework code doesn't happen to pass an argument that would cause cfg to be null, there won't be a crash, but some code in the future might pass such an argument (which might be an argument that comes from user input, so it's not as if passing such an argument is a bug - perhaps the code using the framework code is expecting that code to tell the user of the error).

      Even if it's possible to construct such a scenario, the software that found the problem doesn't have a deep enough understanding of the code to say "hey, if you open up the app on a file like with this in it and select this menu item and type this into the dialog box that pops up and then click 'OK', it'll crash", so it's not as if the software that's reporting this problem (non-publicly - to see the reports on an app, you have to be a "member" of the project whose code is being scanned, and sign up for an account) can give "a detailed account of how to reproduce the bug".

    6. Re:AN opportunity to modify the GPL.. by Anonymous Coward · · Score: 0

      We really need a +1 Stupid option Not really. All the followup posts calling the parent a dipshit more than accomplishes that visibility requirement.
    7. Re:AN opportunity to modify the GPL.. by meringuoid · · Score: 1
      Make it stipulation of GPL that if you publically report bugs or bug counts in GPL software, that you must also produce a detailed account of how to reproduce the bug, and you must provide that report to the maintainer of the current source (who you got it from, or the root source as listed in the code).

      Can't be done. The only reason anybody has to accept any licensing terms for software is if they intend to copy the software, because otherwise that would be forbidden by copyright law. Any use of the software that does not involve copying it does not require a licence, because that falls outside the scope of copyright law. Thus you can freely use the disks as frisbees or coasters, or, if the software comes with a full source listing, you can read through it and count bugs, and at no point do you have to agree to anybody's licence.

      --
      Real Daleks don't climb stairs - they level the building.
  7. goverment helping FOSS by shadylookin · · Score: 1

    I guess this benefits open source software since any bug fix is a good thing, but why on earth would the department of homeland security be studying software. shouldn't they be worrying about things like preventing biological attacks or improving how they handle natural disasters?

    1. Re:goverment helping FOSS by KillerCow · · Score: 2, Insightful

      Computer terrorism. They don't want a send-mail bug to allow a beachhead for compromising more sensitive systems.

    2. Re:goverment helping FOSS by QuantumG · · Score: 1

      Didn't you watch Die Hard 4? DHS obviously did.

      --
      How we know is more important than what we know.
    3. Re:goverment helping FOSS by ianare · · Score: 1

      In the 21st century, you do have to worry about cyberattacks. The DHS uses some of these tools, and it is a Good Thing (tm) they are making them more secure. They help propriatary software vendors too, the difference is that with OSS everyone benefits.

    4. Re:goverment helping FOSS by WK2 · · Score: 1

      shouldn't they be worrying about things like preventing biological attacks or improving how they handle natural disasters?

      Good point. It's too bad they can't do both.

      --
      Write your own Choose Your Own Adventure. http://www.freegameengines.org/gamebook-engine/
    5. Re:goverment helping FOSS by Anonymous Coward · · Score: 0

      I guess this benefits open source software since any bug fix is a good thing, but why on earth would the department of homeland security be studying software. shouldn't they be worrying about things like preventing biological attacks or improving how they handle natural disasters? Because in a rare moment of sanity one of the senior government officials realized that the DHS could do things other than crush civil liberties, profile minorities, or make our lives hellish going through airports or border crossings. That official will be quickly replaced.
    6. Re:goverment helping FOSS by dbIII · · Score: 1

      It's the Uber deptment of everything from Rubik's cube copyright enforcement to financially punishing airlines for carrying musicians that have converted to Islam. If they want to study software they can - there is no leadership or supervision in place to limit them. Theoretically the President or Cheney could do something to influence them but in practice they are uncontrolled.

    7. Re:goverment helping FOSS by unlametheweak · · Score: 1

      I guess this benefits open source software since any bug fix is a good thing, but why on earth would the department of homeland security be studying software. shouldn't they be worrying about things like preventing biological attacks or improving how they handle natural disasters? Software is used in important areas that are vital to a country's basic infrastructure and operation, such as power plants (nuclear or otherwise), radio and television stations, cellular phones, the Internet, banking, etc. I think the Internet would be one of the most important as it is a major source of commerce and communication.

      Example:

      Matthew Kovar, a senior analyst at the market research firm Yankee Group, generated some publicity when he told reporters the attacks caused USD $1.2 billion in global economic damages. - http://en.wikipedia.org/wiki/MafiaBoy

      The attack was aimed at DNS root servers. Since that time the router's software has been upgraded to prevent such wide-scale damage. I remember that incident because I was literally unable to access any Web site at the time. I had later learned that this was because this one attacked clogged up most of the Internet.
    8. Re:goverment helping FOSS by jayp00001 · · Score: 1

      Mod parent up- this is exactly right. If we have people bright enough took work on FOSS code can't we move them to the airports to replace the morons searching the handicapped and infants for security?

    9. Re:goverment helping FOSS by Anonymous Coward · · Score: 0

      And I'm sure the janitors and receptionists at your place of business are Mensa members, every one (and fully paid up on dues to boot).

    10. Re:goverment helping FOSS by wilec · · Score: 1

      Why, cyber-terrorism of course. The chance of a serious attack on our digital infrastructure in the next ten years is 100%.A successful one could be devastating to the wealth or security of the nation. The NSA has been developing for/with FOSS for years now. Ever hear of SELinux ( www.nsa.gov/selinux/ )? I think they have determined that FOSS is the at least one of the best chances we have to protect ourselves. At the very least they are being very responsible in that they are taking a good look at the software that runs the vast majority of the internets infrastructure.

      Hey look I am not the biggest fan of the department of duct tape, color coded FUD and katrinagate, but they should be looking at this issue very close. I just hope they don't manage to anal-ize some critical code themselves. Given the nature of the organization I think they would like to, but given the nature of the problem I doubt that they could pull it off. I can see a reason to get verrryyy wairyyy of binary blobs, like say video card drivers or codec paks, in the near future though.

      wabi-sabi
      matthew

  8. Ummm by renegadesx · · Score: 1

    Samba was not listed as having a clean bill of health, there were bugs that have yet to be verified.
    I think the bug rate for alot of these projects (Linux, Samba, etc) remarkable

    --
    Make SELinux enforcing again!
    1. Re:Ummm by karlto · · Score: 1

      The second article lists Samba as being certified at the top level (Rung 2)

  9. Must be run by Engineers... by ComputerSlicer23 · · Score: 4, Funny

    Uh.. from the article, the software is called "Prevent Software Quality System"... Wow, I can't think of a bigger misnomer for something that should help improve software quality. I sure don't want to prevent software quality in my own products.

  10. But...but by Anonymous Coward · · Score: 0

    I thought that the Bush Administration could do nothing good by Slashdot standards?

    1. Re:But...but by Torvaun · · Score: 1

      They usually don't. But, enlightened individuals that many Slashdot users are, we do not feel the need to rip apart good things done by bad people. We will look for motive, yes, but we will also accept the good that they do.

      --
      I see your informative link, and raise you a pithy comment.
    2. Re:But...but by Copid · · Score: 1

      I thought that the Bush Administration could do nothing good by Slashdot standards?
      I can't tell for sure, but I strongly suspect that whichever anonymous coward posted this also complains loudly when people post irrelevant anti-Bush trolls.
      --
      An interesting anagram of "BANACH TARSKI" is "BANACH TARSKI BANACH TARSKI"
  11. The Actual Scan Site by gQuigs · · Score: 2, Informative
  12. Re:Looking good, too bad the press didn't understa by QuantumG · · Score: 5, Insightful

    Although I understand what you're trying to say, it does seem a little irrelevant.

    I'm a software security engineer. I can look at source code and tell you if it has some bugs in it that I would consider relevant to security. If I can't find any, I might tell you that it is more secure than if I could... but that's doesn't mean it is secure. I'll never tell you it is secure, because testing simply can't give you that. I can do this on proprietary software or I can do this on Open Source software.. the only difference is that, with the Open Source software, I don't need permission from someone to do the testing and other people don't need permission to check my work.

    Does this mean that more people will check the Open Source software for security flaws? Not necessarily. It completely depends on whether or not someone has an interest in the security of that particular bit of software. Even assuming a similar level of interest in the security of comparable proprietary and Open Source software, there's no guarantee that those who have an interest in testing the Open Source software for security flaws will report back the findings. They may simply decide that the Open Source software is too insecure for their use and go with the proprietary solution - assuming they can have it similarly tested by a trusted third party.

    All in all, the assumption that Open Source software is more secure than proprietary software is most likely true, but there's no hard data.. because the stats on the insecurity of proprietary software are guarded secrets - and that's probably the best reason to assume that proprietary software is less secure.

    --
    How we know is more important than what we know.
  13. RTFA by Pinckney · · Score: 5, Informative

    The important point here is that proprietary software manufacturers aren't telling you how many security flaws they had. I bet it's more than 1 per 1000 lines, that is an incredibly excellent figure for the first time a scanner like coverity is run. Actually, the first line of the article reads "Open source code, much like its commercial counterpart, tends to contain one security exposure for every 1,000 lines of code, according to a program launched by the Department of Homeland Security to review and tighten up open source code's security."
    1. Re:RTFA by falconwolf · · Score: 1

      Actually, the first line of the article reads "Open source code, much like its commercial counterpart, tends to contain one security exposure for every 1,000 lines of code, according to a program launched by the Department of Homeland Security to review and tighten up open source code's security."

      The problem is is how do they know how many lines of code are in the closed commercial programs if they can't see the code?

      Falcon
    2. Re:RTFA by totally+bogus+dude · · Score: 1

      Gee good point! How could they possibly view the code if it's not open to all? I mean, it's not as if there's any possibility they could've gotten a bunch of companies to agree to let them audit their code provided they only released the results in aggregate, without any identifying information.

      Just because it's not open source doesn't mean that nobody is ever able to gain access to it.

    3. Re:RTFA by Anonymous Coward · · Score: 0

      Spoiler: DHS saw the code.

    4. Re:RTFA by palegray.net · · Score: 1

      In many cases they can see the code, albeit under pretty restrictive NDAs. Alternately, you could simply ask the vendor for a sloccount. Or perhaps taking the binary file size and using an average lines of code per KB estimate.

    5. Re:RTFA by Anonymous Coward · · Score: 0

      Actually, the first line of the article reads "Open source code, much like its commercial counterpart, tends to contain one security exposure for every 1,000 lines of code, according to a program launched by the Department of Homeland Security to review and tighten up open source code's security."

      Except, now that they've fixed one security exposure for every 1,000 lines of code, matematically speaking (i.e. 1-1=0), they should be down to zero. And in the real world, they have fewer holes now than they did before.

      Where as in the commercial software, they now have one more trade secret per 1,000 lines of code, that would get you sued immidiately if you tried to warn their customers about the holes.

    6. Re:RTFA by ajs318 · · Score: 1

      The DHS are a Government department. The Government are the ones responsible for the law that prevents ordinary citizens from seeing Source Code if companies don't want to show it -- and also for the law that permits those companies to sell their Caged binaries. Capisce?

      --
      Je fume. Tu fumes. Nous fûmes!
  14. Re:Looking good, too bad the press didn't understa by unlametheweak · · Score: 2

    According to McAfee recently (http://yro.slashdot.org/article.pl?sid=08/01/05/0215201) and Microsoft et al, having your code exposed lets the bad guys exploit it's vulnerabilities. Of course if or when a weakness is taken advantage of, it would likely be fixed vary quickly through the FOSS community, instead of on the first Tuesday of every month like as in Microsoft's business model.

  15. Wow important stuff by OzPeter · · Score: 3, Funny

    I checked out the Coverity website and saw on the list of projects the aalib ASCII art library which according to the history hasn't been updated for something like 7 years.

    Damn we better protect ourselves from Terrists hiding their WMD's in ASCI art

    --
    I am Slashdot. Are you Slashdot as well?
    1. Re:Wow important stuff by enoz · · Score: 1

      Damn we better protect ourselves from Terrists hiding their WMD's in ASCI art Damn right!
  16. Re:Looking good, too bad the press didn't understa by Ikipou · · Score: 1

    I'm not from USA, and I'm wondering if the Department of Homeland Security don't also have the code of some proprietary software? To get a certification for homeland security, you don't have to give your code to the government?

    --
    Insightful! :)
  17. I wouldn't sweat it. by rindeee · · Score: 1

    DHS is a dysfunctional mess for the most part when it comes to INFOSEC/IA. They negative for the sake of negativity approach does not surprise me in the lest. If it's any comfort, DoD takes FOSS quite seriously and makes use of many great FOSS tools and platforms. It really is a cultural difference. Those in the DoD that get the job done are prone to use 'the best tool for the job'. FOSS is a gimme in many (and an ever increasing number of) cases.

  18. False positives by clem.dickey · · Score: 2, Interesting

    The article did not seem to give any data on false positives. A story here has Coverity claiming a 10% false positive rate. But there is no independent confirmation. It would also be interesting to know how hard it is to prove a false positive vs. how hard to fix a true positive. In other words, it it worth Coverity's time to further reduce the false positive rate.

    1. Re:False positives by hyc · · Score: 2, Informative
      In the OpenLDAP source base the false positive rate was over 75%.

      Prevent 2.4.6
      Tasks (hyc)
          Help
          My Settings
          View Runs
          Diff Runs
          View Projects
          Manage Users
          Main Page
       
          Return to view-projects
       
          Logout
       
      Lifetime Report
      Analysis Summary
      Run count 406
      Lines of code 125,757,965
      File count 333,676
      Defect Summary
      Bug count 4,223
      Results count 31,134
      Checker Summary
          Count Percent of total
      DEADCODE 265 6.28%
      FORWARD_NULL 947 22.42%
      NULL_RETURNS 234 5.54%
      OVERRUN_STATIC 462 10.94%
      RESOURCE_LEAK 1,753 41.51%
      REVERSE_INULL 386 9.14%
      SIZECHECK 0 0.00%
      UNINIT 176 4.17%
      USE_AFTER_FREE 0 0.00%
      Status Summary
          Count Percent of total
      BUG 0 0.00%
      FALSE 23,874 76.68%
      IGNORE 3,037 9.75%
      PENDING 0 0.00%
      RESOLVED 4,042 12.98%
      UNINSPECTED 181 0.58%
      The summary for OpenLDAP on the Coverity web page is out of date; there are no uninspected or unresolved bugs in the code base as of their last actual run. There have been no uninspected or unresolved bugs for several months.
      --
      -- *My* journal is more interesting than *yours*...
    2. Re:False positives by ajs318 · · Score: 1

      Bear in mind also that among the three million lines that make up the Linux kernel are many that in real life, will never be compiled into actual kernels; or will only be compiled as modules which will never be loaded. A bug in a driver for a piece of hardware you haven't got might as well be considered a false positive.

      --
      Je fume. Tu fumes. Nous fûmes!
  19. Well... by Otter · · Score: 4, Insightful

    This seems like a genuinely useful activity for DHS, certainly more valuable than x-raying my shoes and confiscating my saline solution.

    1. Re:Well... by ColdWetDog · · Score: 1

      This seems like a genuinely useful activity for DHS, certainly more valuable than x-raying my shoes and confiscating my saline solution.

      Of course, you realize you are not setting the bar very high...

      --
      Faster! Faster! Faster would be better!
    2. Re:Well... by drgould · · Score: 1

      This seems like a genuinely useful activity for DHS, certainly more valuable than x-raying my shoes and confiscating my saline solution.
      Of course, you realize you are not setting the bar very high...

      Of course you realize you are talking about the DHS.

    3. Re:Well... by evilviper · · Score: 1

      confiscating my saline solution.

      Wow! That sounds painful. What do they do, hook you up to a high powered vacuum and pull it out through your pores? Might make a great 70% weight-loss program though.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  20. A slight twist.... by EmbeddedJanitor · · Score: 1

    It is somewhat sad that copyright (the legal muscle in GPL) only covers the writing of software. The testing and verification - which is often as important, if not more important has no legal protection. It is the testing, rather than the coding, that really adds the value in OSS.

    --
    Engineering is the art of compromise.
  21. Re:Looking good, too bad the press didn't understa by Pinckney · · Score: 1

    "Our commercial customers wouldn't like it too much if we aired the number of defects found in their code," said Maxwell, when asked about the results from scans on 400 product lines of the firm's private customers. So yes, they are scanning proprietary software as well, and they find roughly the same number of security vulnerabilities.
  22. Re:Looking good, too bad the press didn't understa by grcumb · · Score: 5, Informative

    The important point here is that proprietary software manufacturers aren't telling you how many security flaws they had.

    Indeed. FTFA:

    "Our commercial customers wouldn't like it too much if we aired the number of defects found in their code," said Maxwell, when asked about the results from scans on 400 product lines of the firm's private customers.

    One can only speculate about the, er, source of their discomfort.... 8^)

    I bet it's more than 1 per 1000 lines, that is an incredibly excellent figure for the first time a scanner like coverity is run.

    1 per 1000 lines is even more impressive as an average across all 180 FOSS applications tested. Most impressive of all are the highlights:

    • SAMBA: 236 defects in 450,000 lines of code. 228 already fixed.
    • Linux Kernel: 0.127 security faults per thousand lines of code. The kernel scan covered 3,639,322 lines of code.
    • Apache: 135,916 lines of code, which yielded a security defect rate of 0.14 bugs per thousand lines of code. Or 1.4 per 10,000 lines of code, if you prefer. 8^)
    • PostgreSQL: 909,148 lines of code, with a 0.041 per 1000 defect rate.
    • glibc: 83 bugs in 588,931 lines of code, all since fixed.

    Even some of those with more bugs have at least responded well:

    • KDE: 4,712,273 lines of code, fixed 1,554 defects, verified another 25 and has only 65 to go.
    • GNOME: 430,809 lines of code, fixed 357 defects, verified 5 and has 214 to go.

    And my favourite 'backslider' of all, OpenVPN, has yet to fix 100% of the bugs found during this exercise. Of course, that's only 1 bug in over 69,000 lines of code....

    These results should be viewed as excellent, by and large. This doesn't mean all this software is bug-free, just that there aren't a lot of easily preventable bugs in the code base. Most encouraging, though, is how fast they got addressed and fixed by the healthier FOSS projects.

    --
    Crumb's Corollary: Never bring a knife to a bun fight.
  23. Comment removed by account_deleted · · Score: 2, Informative

    Comment removed based on user account deletion

  24. Mod parent up! by shaitand · · Score: 1

    Most people only read the summary.

    1. Re:Mod parent up! by enoz · · Score: 1

      Some people even read the summary. Fixed that for you.

  25. L, A and P, but where's M? by ThreeGigs · · Score: 5, Interesting

    From TFA:
    The popular MySQL open source database was not included in the scans for reasons that were not immediately evident.

    Any suggestions as to why MySQL has no results? I'm stumped and wondering why one whole corner of a LAMP foundation was left unchecked.

    1. Re:L, A and P, but where's M? by The+MAZZTer · · Score: 1

      Scanners can have bugs too. Maybe feeding the MySQL source code into it caused it to error or crash for whatever reason.

      Or maybe licensing issues? Although I doubt it, IIRC MySQL is GPL or something.

    2. Re:L, A and P, but where's M? by mr_mischief · · Score: 2, Informative

      They did in 2006 and found about 0.224 defects per TLOC.

      MySQL uses Coverity and Klockwork on their certified versions on several different platforms. The certified versions are based on the major releases of community versions, and are typically just more conservative in that they only make changes for critical and security bugs.

      There's speculation that the community edition tested was actually an old report without a retest even back then, as the certified version based on that community version had zero defects reported and the bug count on the community edition was the same per TLOC as the previous report before those bugs were fixed in both versions.

    3. Re:L, A and P, but where's M? by Aladrin · · Score: 1

      Maybe the DHS doesn't use it? I suspect their focus was on software they use, or are planning to use.

      --
      "If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
    4. Re:L, A and P, but where's M? by geminidomino · · Score: 1

      Maybe feeding the MySQL source code into [the scanner] caused it to error or crash for whatever reason. Suicide?
  26. Re:Looking good, too bad the press didn't understa by cromar · · Score: 0

    Does this mean that more people will check the Open Source software for security flaws? Not necessarily.

    It sure is nice to be able to do it if/when you feel like it, though!!

  27. those scanning tools are very unreliable by Anonymous Coward · · Score: 0

    i have tested and evaluated that particular tool as well as several competitors; they all had high false positive rates.

  28. props for DHS? by Anonymous Coward · · Score: 0

    Does anyone want to say thanks to the US government for this service?

  29. publicly speaking about software by falconwolf · · Score: 1

    c) It is not enforceable in most jurisdictions. In the US, and I assume most of the "free world", you can't prevent someone from talking about your products publicly. You can have them sign an NDA, but that doesn't work for publicly available software. McAfee tried something like this some time ago, stipulating in the EULA that you can't benchmark their software. It got shot down in court.

    I haven't seen one in years but doesn't Microsoft's ULA have a clause that you can't publish a review of the software without having MS's approval? I think a year or so ago there was an article on /. about it.

    Falcon
  30. Re:Looking good, too bad the press didn't understa by Bruce+Perens · · Score: 4, Insightful
    Does this mean that more people will check the Open Source software for security flaws? Not necessarily. It completely depends on whether or not someone has an interest in the security of that particular bit of software.

    I submit that people who are only looking for security flaws don't have a motivation to develop a deep understanding of the software. People who are out to modify the software do. And thus there are not just more eyes, but better eyes with Free Software.

    There is a class of mathematically provable software languages, and you might be able to say with surety that programs in them are secure. For the languages we usually use, you can only say that you have tested them in the ways you know of. And only a person with access to the source can say that. If you want an independent asessment, Open Source software won't stop one from happening, and won't hinder what can be said with NDAs. That's why I think it's more secure.

    Bruce

  31. Homeland Security by falconwolf · · Score: 1

    I guess this benefits open source software since any bug fix is a good thing, but why on earth would the department of homeland security be studying software. shouldn't they be worrying about things like preventing biological attacks or improving how they handle natural disasters?

    Such as hurricanes?

    Falcon
    1. Re:Homeland Security by civilizedINTENSITY · · Score: 1

      Actually I seem to recall DHS paid a CIA analyst to do an impact study on global warming and climate change. Instead of looking at where temperatures are changing (which scientists are concerned about) the question posed was what will these changes mean. The result was that cities are not that robust. More than hurricanes, but I'm sure they were a part of it...

    2. Re:Homeland Security by falconwolf · · Score: 1

      Actually I seem to recall DHS paid a CIA analyst to do an impact study on global warming and climate change. Instead of looking at where temperatures are changing (which scientists are concerned about) the question posed was what will these changes mean. The result was that cities are not that robust. More than hurricanes, but I'm sure they were a part of it...

      DHS did another one of those studies? The Department of Defense did one years ago. And it didn't paint a pretty picture.

      Falcon
  32. Re:Looking good, too bad the press didn't understa by Bruce+Perens · · Score: 1
    According to McAfee recently (http://yro.slashdot.org/article.pl?sid=08/01/05/0215201) and Microsoft et al, having your code exposed lets the bad guys exploit it's vulnerabilities

    Yes they said that, but you don't really believe it, do you? If so, just look up "security by obscurity" and read about it. To give you a clue, the unavailability of source has not prevented 100,000 Windows viruses.

  33. Re:Looking good, too bad the press didn't understa by netcrusher88 · · Score: 1

    Although I understand what you're trying to say, it does seem a little irrelevant.

    I don't really see how it's irrelevant - if a "security defect" exists but cannot be exploited (i.e. if there's a buffer overflow bug but it deals with internal data or data that's already been thoroughly sanitized), it does not present the same risk as a bug that may be easily exploited, for example in the input sanitizing code. It's not really clear how many of these bugs are of each type, and I think it's significant that the phrase "security defect" was chosen instead of "security hole" or some other phrase that is more commonly used for known significant risks.

    Of course, "cannot be exploited" is relative - no matter what you do, there's always a real possibility that someone's going to come up with a creative way to get their data in the wrong place at the wrong time and break all your nice sanitizing code and layers you've erected over that heavily protected buffer overflow, so the real resolution is of course to fix it. Still, I think it's an important distinction, especially when dealing with statistics.

    --
    There's an old saying that says pretty much whatever you want it to.
  34. This seems like a genuinely useful activity for by falconwolf · · Score: 1

    DHS, certainly more valuable than x-raying my shoes and confiscating my saline solution.

    What would be more valuable would be to get rid of DHS.

    Falcon
  35. Re:Looking good, too bad the press didn't understa by samkass · · Score: 1

    Although I generally agree with the belief that FOSS probably yields better security, I think FOSS has a different characteristic of vulnerability than closed-source software. Specifically, the "ease of exploiting" a vulnerability is increased along with the ease of modification of the software. The most understanding of the system that's out there, the easier it is to take advantage of a vulnerability. I realize that "security through obscurity" is not something you want to depend on, but it is a real effect that has to be considered if you're going to compare the likelihood of actually being attacked versus simply having a vulnerability.

    For example, MacOS and Windows had a similar number of critical security patches last year. However, there were dozens of Windows viruses and hundreds of thousands of compromised machines, and zero MacOS viruses. Thus, while a certain measure of vulnerability is comparable, the likelihood of actually being attacked is infinitely higher with Windows.

    --
    E pluribus unum
  36. Re:Looking good, too bad the press didn't understa by ClosedSource · · Score: 1

    I think your logic is a bit confused. The fact that viruses can be created without reading the source code does not prove that there's no value in keeping the code secret. It's like arguing that there's no point in locking your door because 100,000 houses with locks were broken into.

  37. Re:Looking good, too bad the press didn't understa by QuantumG · · Score: 1

    No-one was debating Bruce's last point about Coverity returning many false positives.

    As for the use of terminology, excuse me for using an accurate term like "defect" instead of a more popular colloquialism like "hole".

    --
    How we know is more important than what we know.
  38. how many lines of code? by falconwolf · · Score: 1

    In many cases they can see the code, albeit under pretty restrictive NDAs.

    Which is why I consider open source more secure, anyone can find a hole and anyone, well programmers at least, can fix the hole. With closed source code a review can be restricted from informing users of said code the problems it has.

    Falcon
    1. Re:how many lines of code? by palegray.net · · Score: 1

      Agreed on the problem of finding holes but not being able to inform a userbase. I've seen it happen in practice; not pretty.

    2. Re:how many lines of code? by hairyfeet · · Score: 1

      Not to mention FOSS allows you to keep an older version in service when you need to. How many security bugs were left open in Windows 98? How many security bugs are open in Windows 2000 and Windows XP now that will end up not getting fixed when Microsoft abandons them? At least with FOSS you have the option of hiring a coder to fix the bug yourself, whereas with Microsoft if they abandon the Operating system your "must have" app depends on it's either rewrite the app for the new OS(that is if the app producer is still in business/you still have the source code) or try to sandbox the unsecure machines as best you can and hope.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    3. Re:how many lines of code? by palegray.net · · Score: 1

      You're preaching to the choir :). I occasionally cringe at the thought of supporting clients using certain proprietary software packages that happen to run on a certain proprietary server operating system, but I guess it's their choice. For my own web and database apps (and the majority of the desktop programs I use), I greatly prefer an open development environment; Debian has never "done me wrong" in this respect. It's still difficult to get some people to understand that staking their business on a completely closed platform might not be a great business move, even for customers who really would have nothing to lose by switching to truly open systems (and a lot to gain).

      At the end of the day, it's a big part of the reason I'm happy serving in the Navy now... I enjoy the ability to earn extra income from clients I choose to support, without having to deal with people who are 100% resistant to trying new things. If I decide to stop doing professional coding and network support for months on end, it's not a huge loss for me financially. It brings the fun back to I.T. work for me.

  39. Re:Looking good, too bad the press didn't understa by unlametheweak · · Score: 1

    According to McAfee recently (http://yro.slashdot.org/article.pl?sid=08/01/05/0215201) and Microsoft et al, having your code exposed lets the bad guys exploit it's vulnerabilities Yes they said that, but you don't really believe it, do you? If so, just look up "security by obscurity" and read about it. To give you a clue, the unavailability of source has not prevented 100,000 Windows viruses. No I do not believe it. I was just pointing out some (IMHO) rather lame and biased arguments. Openness and transparency (whether it be in software, business models, or just dealing with one's spouse, for example) is generally better than keeping things hidden.

    Make the licenses as restrictive as you please, but at least give people the opportunity to know what they are using. Like listing ingredients on processed food, it's good to know that I'm not consuming something that could possibly do me harm (or be beneficial).

    There is a level of comfort in dealing with openness. It seems like that's why so many politicians and business leaders are not trusted; because they hide behind PR vetted canned answers (security through obscurity if you will), rather than being articulate and just admitting outright when things aren't working the way they should.
  40. Re:Looking good, too bad the press didn't understa by RobBebop · · Score: 1

    Oh man... Bruce Perens. What a pleasure. I couldn't have said it better myself.

    (Actually, I was going to make fun of proprietary software for the general idea of having source unavailable).

    More to the point though, I received a lecture on this in a Software Architecture course a couple years ago and it struck a nerve. Even if you never need to review 99.9% of the code you run, it is nice to be able to look through the 0.1% that might be helpful for you to gain a better understanding of what is going on. And that is only possible with Open Source.

    Cheers.

    --
    Support the 30 Hour Work Week!!!
  41. Re:Looking good, too bad the press didn't understa by Anonymous Coward · · Score: 1, Informative

    Well put. I wrote about this topic in my recent security concepts ebook:

    http://www.subspacefield.org/security/security_concepts.html#tth_sEc24.5

  42. Re:Looking good, too bad the press didn't understa by Waffle+Iron · · Score: 3, Funny

    It's like arguing that there's no point in locking your door because 100,000 houses with locks were broken into.

    A more apt analogy would be: There's no point in locking your door using a limp spaghetti noodle because a limp noodle makes a completely ineffective lock.

  43. Re:Looking good, too bad the press didn't understa by Bruce+Perens · · Score: 1

    Actually, I read that as "We won't tell you how many bugs there are, our customers would not like it". They could well be inflating the reliability of proprietary software for their customers sake.

  44. Wow... FOSS looks pretty pathetic by Anonymous Coward · · Score: 0, Troll

    So in other words, this thing started in 2006. So if Big Daddy Gubment had not come by with what's essentially a bailout of FOSS, it would STILL be a buggy mess.

    Kind of hilarious, how no matter how much of an insecure, buggy, crappy mess FOSS proves to be, they still whine about Microsoft.

    Guess it's easier to point the finger than it is to get your own house in order.

    1. Re:Wow... FOSS looks pretty pathetic by mr_mischief · · Score: 5, Informative

      There are industry estimates that say average code in production contains 2 bugs per thousand lines of code. Some say that number is much higher. How many lines do you think are in Vista?

      Yes, OSS has bugs. Everything from compilers to content management systems, surely. So do proprietary programs.

      The more qualified eyes you get on a bug, the better chance you have of finding and fixing it. You can do that by having a big staff that pores over code again and again. You can do it by having lots of outside help, like in the case of popular OSS projects. One thing that helps is to have a fresh set of eyes look over something, which is much easier in OSS that in closed-source applications.

      BusinessWeek had an article from a guy at Coverity back in 2006 about this. In that article, Ben Chelf said that 4 of the top 15 programs on the quality scale measured by defects per thousand lines of code were OSS. He said that on average, the major-project OSS software they tested was indeed higher quality software than average. He said, though, that the absolute highest quality code was the cream-of-the-crop proprietary, closed source code from places that make things like fly-by-wire systems. Well, yeah. I'd want my airliner's fly-by-wire system completely bug-free, too.

      Commercial software tends to harbor anywhere from 1 to 7 bugs per 1000 lines of code according to the National Cybersecurity Partnership's Working Group on the Software Lifecycle. Voluntary testing by Coverity requested (and probably paid for) by MySQL AB revealed that project to have all of 97 flaws, one of which could be a serious security issue. All 97 were to be fixed for the next release.

      A similar study (same link) found 985 bugs in over 5,700,000 lines in the Linux kernel, or fewer than one bug per 10,000 lines of code. TFA has data on a newer version of the kernel -- 0.127 bugs per TLOC.

      In Apache, 22 bugs total, 0.14 per TLOC, and three fixed so far.

      PostgreSQL had 0.041 per TLOC, and have so far fixed 53 of the 90 bugs.

      The glibc team fixed 83 of 83 bugs found.

      OpenVPN had found one security-related bug in over 69,000 lines of code. As of later yesterday, it's officially security bug free according to the same testing people.

      The list of officially security-bug free software includes Amanda, NTP, OpenPAM, OpenVPN, Overdose, Perl, PHP, Postfix, Python, Samba, and TCL.

      So with Linux (0.127), glibc (0.000), Apache (0.140), PostgresSQL (0.041), Perl (0.024), PHP (0.000), and Python (0.000) powering a web server (numbers according to Coverity), you have 0.0474 defects per thousand lines of code across the server. I'd say that's pretty good.

    2. Re:Wow... FOSS looks pretty pathetic by mattjb0010 · · Score: 4, Informative

      So with Linux (0.127), glibc (0.000), Apache (0.140), PostgresSQL (0.041), Perl (0.024), PHP (0.000), and Python (0.000) powering a web server (numbers according to Coverity), you have 0.0474 defects per thousand lines of code across the server. I'd say that's pretty good.

      I'd say your statistic is wrong. You need to multiply each average by the number of kloc per project (being careful to count those for the project version for which the averages were given), and then divide by the total kloc across all projects.

    3. Re:Wow... FOSS looks pretty pathetic by Anonymous Coward · · Score: 0

      So with Linux (0.127), glibc (0.000), Apache (0.140), PostgresSQL (0.041), Perl (0.024), PHP (0.000), and Python (0.000) powering a web server (numbers according to Coverity), you have 0.0474 defects per thousand lines of code across the server.

      No, not unless each of those packages has the same number of lines of code.

    4. Re:Wow... FOSS looks pretty pathetic by Anonymous Coward · · Score: 0

      The more qualified eyes you get on a bug, the better chance you have of finding and fixing it. You can do that by having a big staff that pores over code again and again. You can do it by having lots of outside help, like in the case of popular OSS projects. One thing that helps is to have a fresh set of eyes look over something, which is much easier in OSS that in closed-source applications.

      The fallacy in your (and all the rabid MS-haters) assumption is that somehow by leveraging the power of teh statistical average, FOSS will magically become more secure.

      Now if you want to actually back up your B.S. with numbers, you should start by demonstrating how many users of FOSS actually know what to do with source code. In the market Microsoft products target, that number is pretty close to zero. An IT manager trying to put together an SQL server wants it up and running, he doesn't want to dig around for 20 hours and do Lunis's troubleshooting for him, and it's the height of arrogance to expect him to.

      OK, so now that you know less than 1% of FOSS's users actually know what to do with source code, you can now start looking at the quality of that 1% to see how many are actually good coders. You will likely find about 1% of that.

      So in the end, you will see the most often lament of people involved in FOSS projects, that there aren't enough quality coders to go around.

      Another issue is that a majority of FOSS projects have no, as in zero, code management. Nobody checks for errors, nobody worries about design, nobody cares about writing quality code. They are just cranking the stuff out and clunking it all together so they can go back to working on making another text editor for teh Lunix. But when you have a multi-billion dollar software company which writes the most successful operating system ever created, do you think Microsoft has code management policies in place? I'm also willing to be MS is hiring people far more qualified than some DHS hacks.

      And... as I said... this article was talking about something which happened in 2006. But you FOSSies were claiming that your code was so much more stable and secure than Microsoft's from way, way before that. And yet, the DHS hacks still went into your code and found thousands upon thousands of bugs.

      So since you guys keep saying how stable and secure your code is, and keep getting proven wrong... what makes you think FOSS has any credibility? And THAT is exactly why the majority of corporations use closed source apps. Because open source has not proven any better, and you can't trust anything it's creators say. There isn't even a guarantee that they will be writing their application tomorrow.

    5. Re:Wow... FOSS looks pretty pathetic by mr_mischief · · Score: 3, Interesting

      You're right. I forgot to weight them based on the portion of the installation they'd each represent.

      It's also unlikely that any real installation would have exactly those packages installed, BTW. Almost any installation will have packages from CPAN, PEAR, whatever Python's central repository is called, some extra stuff like syslog, logrotate, bash, and at least one text editor at the very minimum.

      Let's be a little more accurate than multiplying by defects per thousand lines to make up for my previous late-night gaffe. Let's use the actual defect numbers of verified but unfixed and unverified defects.

      Apache has 19 defects in 135,916 LOC.
      glibc has 0 defects in 588,931 LOC.
      Linux has 461 defects in 3,639,322 LOC.
      Perl has 12 defects in 496,517 LOC.
      PHP has 0 defects in 474,988 LOC.
      PostgreSQL has 37 defects in 909,148 LOC.
      Python has 0 defects in 282,444 LOC.

      That's 6,527,266 LOC and 529 defects. That's 6527.266 TLOC. I get 0.081 defects per TLOC. That's still pretty damn good.

      As I said, there's probably some other software on that server, but it starts from a pretty strong base.

    6. Re:Wow... FOSS looks pretty pathetic by Anonymous Coward · · Score: 1, Interesting
      Are you even paying attention? Did you even read the article?
      The article itself stated that
      "

      Open source code, much like its commercial counterpart, tends to contain one security exposure for every 1,000 lines of code
      " (emphasis added)...
      How does this make an argument that FOSS is a buggy mess? As others have stated, similar firms have rated the average flaws per 1000 lines higher (from 2 to 7), making 1 per 1000 equivalent to proprietary software at worst, or better depending on whose average you use.

      Further it's not DHS that did the analysis, Coverity did - and they specialize in just this sort of analysis.

      Now if you want to actually back up your B.S. with numbers, you should start by demonstrating how many users of FOSS actually know what to do with source code.

      The numbers relevant for "MS-Haters" as you seem to like to classify Linux users are in the article.
      "Linux kernel had a security bug rate of .127 per thousand lines of code."
      Just over a tenth of the average for both FOSS and closed-source software.

      OK, so now that you know less than 1% of FOSS's users actually know what to do with source code, you can now start looking at the quality of that 1% to see how many are actually good coders. You will likely find about 1% of that.

      You haven't demonstrated this, you've just asserted it blindly as if it were a well-established fact.

      Another issue is that a majority of FOSS projects have no, as in zero, code management. Nobody checks for errors, nobody worries about design, nobody cares about writing quality code. They are just cranking the stuff out and clunking it all together so they can go back to working on making another text editor for teh Lunix.

      Same here. You just make vast generalizations without the numbers you are so fond of to back them up.

      But when you have a multi-billion dollar software company which writes the most successful operating system ever created, do you think Microsoft has code management policies in place? I'm also willing to be MS is hiring people far more qualified than some DHS hacks.

      Assumptions galore. I'd be willing to accept that Microsoft does indeed have code management in place, but your assertions about the quality of MS programmers versus DHS 'hacks' is unsupported (not to mention spurious since DHS just paid for the analysis, and did not perform it).
      You are clearly either a troll, or don't know what you are talking about. You cry foul for a lack of support, but bring none of your own, and obviously either A) did not read, or B) did not understand the article in its entirety. Even as stated by Coverity, the major difference here is that we get to know the number of bugs, which we don't get for closed source apps.

      Until you can give me the Coverity reports on MS products, your comments comparing MS to FOSS based on this article are pointless. The only comparison between Closed Source and FOSS that can be drawn here is "

      Open source code, much like its commercial counterpart, tends to contain one security exposure for every 1,000 lines of code
      "
      and even that does not account for severity or exploitability of a flaw - which could come out in favor of FOSS or Closed-Source. Come back with some facts, and maybe we can have an actual discussion instead of ill-informed ranting.
    7. Re:Wow... FOSS looks pretty pathetic by Anonymous Coward · · Score: 0

      Are you even paying attention? Did you even read the article?
      The article itself stated that

      Open source code, much like its commercial counterpart, tends to contain one security exposure for every 1,000 lines of code


      Sure. But unlike you, I'm not taking the article as gospel. Where did THEY get that statistic? And what software were they testing against? Obviously not Microsoft code, since MS products are not open source, are they? And, since MS software is what we are discussing... only the rate of problems with MS's closed source code is applicable here.

      But hey, sorry to throw water on your FOSSie zealot screed. But I'm not really sorry.

      How does this make an argument that FOSS is a buggy mess? As others have stated, similar firms have rated the average flaws per 1000 lines higher (from 2 to 7), making 1 per 1000 equivalent to proprietary software at worst, or better depending on whose average you use.


      I didn't make the argument, you FOSSies did. You guys keep saying how bulletproof and secure and stable your code is. You know, the magical byproduct of "all those eyes on it". Teh c0d3 becumz teh magiklly s3cur3!!!11!!

      But hey, what's going on? You mean all that code with all that eyes ended up getting to 2006 with all those security holes in it? Looks like you guys were a few eyeballs short. Or, as my point was, it's not the number of eyes, it's the quality of the person those eyes are attached to. Which is why open/close source is (and always will be) irrelevant. If you have a good programmer, it's going to be good code. If not, it wont. It's been our collective experience that most programmers go open source in a futile attempt to get other people to fix their buggy and poorly written code (see Ruby on Rails, or Netscape, or Java)... then when it doesn't work, you guys try to throw the responsibility onto the user ("Duh... dey kan go into teh sarce kode und fix it demselfs, cuz we be teh open sarse and about teh freedumbs!!11!!")

      You haven't demonstrated this, you've just asserted it blindly as if it were a well-established fact.

      Same here. You just make vast generalizations without the numbers you are so fond of to back them up.


      If that's the case, you shouldn't have a hard time proving me wrong.

      Even as stated by Coverity, the major difference here is that we get to know the number of bugs, which we don't get for closed source apps.


      And yet you ASSume that MS is somehow less secure. You know what they say about ASSuming... and you MS haters sure make a lot of ASSumptions.

      and even that does not account for severity or exploitability of a flaw - which could come out in favor of FOSS or Closed-Source. Come back with some facts, and maybe we can have an actual discussion instead of ill-informed ranting.


      Here you go, security noob. Knock yourself out.
  45. Re:Looking good, too bad the press didn't understa by Bruce+Perens · · Score: 1
    My door is locked, but the mechanism of the lock is easily available in the hardware store for others to scrutinize. And so it should be. This is a different sort of information than the pattern of the key.

    Bruce

  46. Pessimism in article by filbranden · · Score: 5, Informative

    Not only did the article say much like its commercial counterpart, but most of the numbers it shows are actually good for open source software.

    For instance, most of the projects discussed had less than 1 bug for 1000 lines of code. For instance, the Linux kernel had .127 bugs per 1000 lines, and that on over 3 million lines of code.

    Also, the article talks about key projects, such as the glibc (which is basically used by everything on a Linux system) that already fixed all the issues.

    Even something huge and complex as Firefox has already fixed half of the issues, and is showing progress on the rest of them (by the fact that some were already verified).

    Overall, I didn't get the half glass empty tone that the summary is implying. And what I found strange is that even the comments on the site itself, and many of them on /. itself, are also taking the pessimistic view.

    I thought that this news are great for open source software. Shows that it has less security issues than average, that the issues are fixed quickly, and still that some programs are certified by a company for use in security related departments such as the DHS. What could be better than that?

  47. Re:Looking good, too bad the press didn't understa by unlametheweak · · Score: 1

    I think your logic is a bit confused. The fact that viruses can be created without reading the source code does not prove that there's no value in keeping the code secret. It's like arguing that there's no point in locking your door because 100,000 houses with locks were broken into. Fact is anybody can dis-assemble a lock. And of course people can dis-assemble code.
    Not too many people would be interested in breaking into a lock on a door (smashing a Window to get into the house is most generally used by non-government intruders).

    The greatest value in keeping code secret is making sure it cannot be easily re-produced, and thus subverting other individuals or companies from using it without authorization. It's much like music and DRM: in the end it is the licenses which are enforced in the court of law, and not so much the code itself (the "locks" if you will), that will be able to protect the intellectual property.

    Yes there may be value in keeping code secret, but I would argue that the value is minimal compared to the benefits of keeping it open.
  48. some notes on the article by ehovland · · Score: 5, Interesting

    First off, prevent is not strictly a security flaw static-analysis checker. It is a static-analysis checker that checks for all sorts of defects. Some of which are directly related to security. Second, I have used prevent extensively over the past year and have found it to be an invaluable tool. It has a pretty low false positive rate and fixing the defects it finds means your code is better. On the code I work on, I find that we have a much lower defect count. But we also have pretty mature code and we really do attempt to make it as bullet proof as possible. But we still have defects.

    My experience is with the C/C++ version of tool. We have also been evaluating the java version of the tool and it is good. But some of the free alternatives like findbugs are still better. I would use findbugs w/ prevent for java if I wanted good coverage.

  49. Re:Looking good, too bad the press didn't understa by civilizedINTENSITY · · Score: 2, Interesting

    "For example, MacOS and Windows had a similar number of critical security patches last year."

    Willing to stipulate for the purpose of this discussion.

    However, there were dozens of Windows viruses and hundreds of thousands of compromised machines, and zero MacOS viruses.

    Likewise willing to stipulate.

    Thus, while a certain measure of vulnerability is comparable, the likelihood of actually being attacked is infinitely highder with Windows.

    I would suggest this doesn't necessarily follow. It could be. It could also be that while both fixed the same number of holes, the percentage of holes fixed was different. It could be that x holes represented 85% of the mac holes, whereas the same exact number x was only 13% of the available windows holes.

    Not saying one or the other interpretation is true. Just that the facts don't necessarily lead to the conclusion posited.

  50. Physical locks and security by obscurity by Bruce+Perens · · Score: 1
    Here's a good story about examining how locks work, that shows the value of "disclosed source".

    Anyone can buy a re-key kit for Schlage locks at the Home Depot. Upon opening the cylinder of the lock with that kit, you will discover that (this is approximate, I don't have the lock in front of me) there are 5 pins, and 5 possible levels per pin, and that the minimum number of possible key patterns might thus be 5 ^ 5 or 3125. Which is enough that nobody's carrying all of the possible keys around and will have time to go through them at my front door.

    The re-key kit comes with a set of two identical new keys that do not use the same pin length twice, and thus its number of possible patterns might be 5 * 4 * 3 * 2 * 1 or only 120. Uh-oh! Better not base the keys for my house on the master from the re-key kit! And shame on them for not saying this on the box.

    See the benefit of being able to examine how they work?

    FYI, yes I know about lock-picking, there's an alarm too.Bruce

  51. Re:Looking good, too bad the press didn't understa by ClosedSource · · Score: 2, Insightful

    Analogies have their limits, so we shouldn't try to take it too far.

    Even those who historically have critized "security through obscurity" never suggested that publishing their design or secrets would lead to better security, but rather that you can't assume your that your design can't be cracked.

    Of course, the preferred approach is "security through design" which has nothing to do with correcting bugs. The latter could be called "security through maintenence". Thus while we might argue about whether closed or open source produces better design, examining source code for bugs can't compensate for a design that is insecure.

  52. Re:Looking good, too bad the press didn't understa by ClosedSource · · Score: 1

    I see you're trying to imply that Windows is insecure, but I don't see what that has to do with the issue of security through obscurity.

  53. Re:Looking good, too bad the press didn't understa by Anonymous Coward · · Score: 0

    If it's this easy to find security bugs, why aren't there tons of people doing this for every project? You mean you just set up a piece of software, let it run a scan and you've done your security testing?! SERIOUSLY?! Jesus. Seriously, why wouldn't the linux kernel maintainers, for example, run the scans on every release, then??

  54. Re:Looking good, too bad the press didn't understa by Bruce+Perens · · Score: 1
    Even those who historically have critized "security through obscurity" never suggested that publishing their design or secrets would lead to better security

    You're wrong about that. For example, NIST, a US government standards agency, is calling for proposals for a new cryptographic algorithm for government use. Their specification requires that it be publicly disclosed (and royalty free, too). This is so that they don't pick a weak algorithm. They want any known or theoretical problems to be pointed out to them. Most certainly NSA participates in building that sort of specification.

    Bruce

  55. Re:Looking good, too bad the press didn't understa by ClosedSource · · Score: 1

    "Fact is anybody can dis-assemble a lock. And of course people can dis-assemble code"

    There are probably few people who have even read every line of the Linux kernel - imagine trying to dis-assemble Vista looking for vulnerabilities.

    "The greatest value in keeping code secret is making sure it cannot be easily re-produced, and thus subverting other individuals or companies from using it without authorization."

    Perhaps, but your statement says nothing about security issues.

    "Yes there may be value in keeping code secret, but I would argue that the value is minimal compared to the benefits of keeping it open."

    Well, there are arguments for keeping code secret and for making it open. My point is that there's little evidence that keeping the code open improves the security of the code. Nobody can reasonably argue that not having the source code makes it easier to create exploits.

  56. Re:Looking good, too bad the press didn't understa by Twanfox · · Score: 1

    Just has to do with coding methodology. strcpy is insecure, strncpy is more so. strncpy(src, dst, sizeof(dst)) is more secure than strncpy(src, dst, size_of_dst). Those are easy to fix security bugs. Other security bugs are harder to find as you have to trace the myriad of states the app can be in during mem writes.

  57. Re:Looking good, too bad the press didn't understa by ClosedSource · · Score: 1

    I said historically. I've worked on military crypto systems as recently as 10 years ago and the details were classified. I wouldn't assume that every government agency takes the same approach. Even the individual branches of the military often go their own way.

    In this post-911 period I've seen a trend toward more secrecy rather than less. For example, the documents that described the military's UHF DAMA waveforms used to be freely available on the Internet, but they aren't now.

  58. Re:Looking good, too bad the press didn't understa by Waffle+Iron · · Score: 1
    I'm not talking about Windows in particular. I'm saying that *security through obscurity* is an ineffective strategy. You say it's like a lock; I say it's like a limp noodle.

    It's barely a speed bump for the evil hackers who feed garbage into programs to crash them, then poke around in a debugger to find where they broke, then write some machine code to take advantage of the bugs. Thinking that lack of access to source code is anything like a "lock" is just self delusion.

  59. Indeed by Chuck+Chunder · · Score: 1

    That's much easier to read.....

    --
    Boffoonery - downloadable Comedy Benefit for Bletchley Park
  60. Re:Looking good, too bad the press didn't understa by ClosedSource · · Score: 1

    You're reading too much into my analogy (or perhaps it was flawed). I didn't mean to suggest that STO is a like a "lock". I was just saying that the fact that Windows has been exploited doesn't prove that STO has no security value.

  61. Re:Looking good, too bad the press didn't understa by mr_mischief · · Score: 2, Informative

    There are numerous refutations to your "never suggested that publishing their design or secrets would lead to better security". Many experts have said precisely that.

    An IT Security article on full disclosure states that as early as the middle of the 19th century locksmith Alfred C. Hobbes thought full disclosure was important to clear up the rash of lock picking people were experiencing. It goes on to discuss exactly why full disclosure works so well.

    David Wagner says in an article on security: "Today, many security companies are strongly resisting this, and I think they will need to learn to accept and embrace public scrutiny as a natural and necessary part of security systems." -- David Wagner and Ian Goldberg are the ones who cracked the security of the SSL layer in Netscape 4.

    IEEE article abstract stating that full source code access can have "real benefits for security", although that's not automatic and it has to be done correctly.

    Bruce Schneier -- yes, THAT Bruce Schneier -- has an article on his blog that starts "Full disclosure -- the practice of making the details of security vulnerabilities public -- is a damned good idea. Public scrutiny is the only reliable way to improve security, while secrecy only makes us less secure."

    Is that enough or do I need to go to the second page of this Google search?

    BTW, DJB thinks that both full disclosure and isolation of trusted components are absolutely vital. He's the guy who won the right for Americans to export cryptography technology in court against the Department of Justice. He also found a timing attack against OpenSSL's AES cipher and his Unix Security Holes class of 16 students turned up 91 previously unknown holes in one semester.

    As for "Security by design", that helps. However, with many programs being written in languages which allow null pointers, stack overflow, buffer overflow, and array overflow the design can be as secure as you want and the program can still be crashed. In some cases arbitrary code can still be executed. Address randomization, NX bits, run-time bounds checking, and automatic memory management can go a long way. Sanitation of inputs, static analysis, time padding, and more still have to be considered in some cases.

    The tests Coverity is running are an example of static analysis. If there's a C routine that can be coerced into smashing the stack or overflowing a buffer in the heap, that can often be automatically caught and reported. Memory leaks often can be, too. They're probably also able to do at least rudimentary checks for sanitizing input values.

  62. Re:Looking good, too bad the press didn't understa by ClosedSource · · Score: 1

    Of course, language choice is a design decision.

  63. Well THAT IS TOTALLY COOL! by killmofasta · · Score: 2, Interesting

    Thank you DHS for the contribution to FOSS!
    We get all the bug fixes, and it will become that much more robust.
    Too bad that Windows will never get this kind of review.

    It probibly has a few less bugs per line,
    but not much hope of getting those fixed.

    On second thought, Mr Allen, I challenge you to compare!
    I am willing to bet that FOSS software,
    just because of its nature of peer review,
    and from my experence of reading ALen Cox's work on the Kernel,
    that it has less bugs than Windows.

  64. Re:Looking good, too bad the press didn't understa by unlametheweak · · Score: 1

    Nobody can reasonably argue that not having the source code makes it easier to create exploits. The point is that if there are exploits, it can be easier to fix them. Of course it doesn't guarantee they will be fixed (as in closed-source software), but the opportunity is there for global assistance and peer review (of the code and the fix) that is not available in closed-source software.

    As well, open-source software makes it easier to find built-in vulnerabilities (like the Jap proxy software was found to have a secret back door for the German police by examining it's source).
  65. Some perspective here. by DerekLyons · · Score: 0, Troll

    According to McAfee recently (http://yro.slashdot.org/article.pl?sid=08/01/05/0215201) and Microsoft et al, having your code exposed lets the bad guys exploit it's vulnerabilities.

    That should be so obvious as to not require stating, by McAfee or anyone else. How large that risk really is can be debated, but its existence is as certain as the sun rising tommorow.
     
     

    Of course if or when a weakness is taken advantage of, it would likely be fixed vary quickly through the FOSS community, instead of on the first Tuesday of every month like as in Microsoft's business model.

    Fixing it some uncertain time after it has been exploitied is fine by the [relatively] sloppy standards of the FOSS community. But neither having it fixed the first Tuesday nor some uncertain time later is of much consolation to the guy who suffers business or data loss.
  66. Re:Looking good, too bad the press didn't understa by DerekLyons · · Score: 1

    Most encouraging, though, is how fast they got addressed and fixed by the healthier FOSS projects.

    Less encouraging is that they existed in the first place - doubly so since all the software you list is more-or-less 'mature'.
  67. Re:Looking good, too bad the press didn't understa by mr_mischief · · Score: 1

    It's also a performance decision and a pragmatic decision in the fact that many languages don't bootstrap on bare hardware. Let me know when you have an OS kernel running on the Core 2 Duo written in Java, Python, Erlang, Eiffel, Haskell, or Ruby. ;-)

    Yeah, lots of software gets written in assembly, C or C++ that probably should be in something else. No, nothing else is able to take their place for everything just yet.

  68. Re:Looking good, too bad the press didn't understa by mr_mischief · · Score: 1

    Nobody can reasonably argue that having the source makes it harder to find where exploits might target.

  69. Re:Looking good, too bad the press didn't understa by Atlantis-Rising · · Score: 1

    If you believe security through obscurity is ineffective, I'd like you to hand over all your encryption keys and passwords: after all, there's no need to keep them obsecure! Eventually, at some point, all of security comes down to obscurity. Security IS the concept that you are hiding (preventing access to) some sort of 'secret'.

    Something cannot be secure without obscurity.

    It's like the physics concept: Observation is Interaction.

    --
    "It is possible to commit no errors and still lose. That is not a weakness. That is life." -Peak Performance
  70. Re:Looking good, too bad the press didn't understa by locofungus · · Score: 4, Informative

    Just has to do with coding methodology. strcpy is insecure, strncpy is more so. strncpy(src, dst, sizeof(dst)) is more secure than strncpy(src, dst, size_of_dst). Those are easy to fix security bugs. Other security bugs are harder to find as you have to trace the myriad of states the app can be in during mem writes.

    strcpy is NOT insecure. It can be used insecurely.

    But congratulations, you've just turned what could have been a borderline ok strcpy(src, dst) (ought to have been criticized at code review as the names of the variables are confusing) bit of code into (probably) a crash and definitely a buffer overrun if sizeof dst is larger than sizeof src.

    I have lost count of the number of bugs I've had to fix after someone changed a perfectly good strcpy into strncpy. A common mistake is:

    strcpy(dst, src);
    becomes
    strncpy(dst, src, sizeof dst);

    and then you get a bug because only the first four characters of src appear in dst followed by garbage.

    Of course, then it gets changed to
    strncpy(dst, src, strlen(src));
    because the original programmer did know what they were doing and the buffer was big enough.

    Eventually we get to the brilliant:
    strncpy(dst, src, strlen(src)+1);

    Fantastic! What an improvement! And yes, it really does happen in what was once good production code because some idiot has heard that "strcpy is insecure".

    Another one I've seen is:

    dst = malloc(1000000);
    strcpy(dst, "MESSAGE");

    gets changed to
    dst = malloc(1000000);
    strncpy(dst, "MESSAGE", 1000000);

    Yup, instead of writing 8 bytes, we'll write one million bytes because strcpy is insecure, but we won't fix the missing check for NULL. (there's a fairly good argument for not checking the return from malloc in much production code - if malloc actually fails then you're already so far up shit creek without a paddle that it's probably impossible to recover gracefully anyway. Obviously different considerations will apply if you're controlling a nuclear power plant than if you're writing a game)

    strncpy is NOT a replacement for strcpy with a length parameter. Unfortunately strncpy has a very bad name, it should be called something like meminit_from_str() as strncpy ALWAYS writes n bytes and doesn't always write a null terminator. (I've also had to fix bugs where someone has replaced a correct use of strncpy with a version that guarantees to write the null)

    strncat is a possibly safer replacement for strcat. However, the length parameter is so tricky to get right that I've seen cases where someone originally wrote strcat safely, that got changed to strncat "because it's safer" and then a bit later another change was made that caused a crash because the original change to strncat got the length parameter wrong.


    extern char error_msg[][40];
    char error[64];
    strcpy(error, "ERROR");
    strcat(error, error_msg[e]);


    becomes


    strncpy(error, "ERROR:", sizeof error);
    strncat(error, error_msg[e], sizeof error - 6);


    becomes
    /* We'll just fit as much of the translated error as possible into this buffer */
    strncpy(error, get_translation("ERROR:", lang), sizeof error);
    strncat(error, translated_error_msg(e, lang), sizeof error - strlen(error));


    of course, even more common is to miss the -6 or strlen(error) completely than to remember the extra -1 that is required on the length parameter.

    (The man pages are IMO, confusing for strncat as they usually say something along the lines of "appends at most n characters")

    Tim.

    --
    God said, "div D = rho, div B = 0, curl E = -@B/@t, curl H = J + @D/@t," and there was light.
  71. PHP - no security bugs! by Anonymous Coward · · Score: 2, Funny

    The list of officially security-bug free software includes Amanda, NTP, OpenPAM, OpenVPN, Overdose, Perl, PHP, Postfix, Python, Samba, and TCL.

    This is because the security problems with PHP aren't bugs, they designed it that way.

    1. Re:PHP - no security bugs! by mjorkerina · · Score: 1

      They meant the php interpreter itself, not the apps using it. While it's true that PHP-the-programming-language-and-its-libraries have a *lot* of bad practice regarding security, it doesn't have to mean that the interpreter should have a lot of security bugs.

      PHP is the most used programming language in shared hosting. That's for a reason. I hate PHP as a language but still there is no other platform than PHP that can be decently used and locked down in a shared hosting setting with ok performances. PHP doesn't need virtualization.

    2. Re:PHP - no security bugs! by ajs318 · · Score: 2, Interesting

      The biggest "security problem" in PHP is related to file upload by HTTP and the way Windows handles permissions. And it's not a problem with PHP per se, but with the way some people (mis)use it. Blaming PHP for insecure scripts is a bit like blaming Severn Trent for drownings!

      Every file on a Windows box has execute permission set. This appears to be a designed behaviour of Windows. If you do not perform a chmod on it after upload, it keeps its execute bit. This is entirely to be expected, and any other behaviour would violate the Principle of Least Surprise. And if you transfer the uploaded file to a directory from which the web server can serve pages directly to the outside world, it becomes a CGI script. This is a designed behaviour of the web server: on a UNIX system, files with execute set are executed and their STDOUT stream is served up. In short, by uploading a crafted script from a Windows host using a badly-written PHP script on a webserver, you can execute arbitrary code.

      A naïve developer testing PHP scripts on a Linux desktop machine with Apache + PHP installed (a very common environment for pre-deployment testing; always used to be a Windows desktop with Apache + PHP, but it's easier nowadays to get Linux up and running than it is to get Apache + PHP on Windows up and running) probably will not spot this, because files uploaded from Linux hosts usually do not have the execute bit set.

      One possible fix would be to add a third parameter to move_uploaded_file() allowing you to set the permissions on the destination file, and make this default to 644 if absent. Until then, don't forget to chmod() uploaded files -- and it probably wouldn't hurt to put a .htaccess file in your upload directory, blocking all HTTP transfers from there.

      --
      Je fume. Tu fumes. Nous fûmes!
  72. Re:Looking good, too bad the press didn't understa by QuantumG · · Score: 2, Insightful

    I submit that people who are only looking for security flaws don't have a motivation to develop a deep understanding of the software. People who are out to modify the software do. And thus there are not just more eyes, but better eyes with Free Software. No offense, but that's completely the opposite of the facts. The vast majority of software engineers have no idea what they're doing when it comes to detecting, fixing and avoiding security issues. That's why tools like Coverity exist - and most the time the programmers can't even use them correctly. There are "security consultants" you can hire who basically just explain the results from Coverity, and they're not short on work.

    But hey, don't take my word for it.. go have a chat with your friend Theo de Raadt.. he'll give you the skinny on how terrible the majority of C programmers are when it comes to security issues. And don't get him started on the so called "safe" languages.

    --
    How we know is more important than what we know.
  73. KDE vs Gnome by Anonymous Coward · · Score: 0

    slightly offtopic: KDE has 4.7MLoc, and Gnome only 0.4MLoc. I thought they were filling the same niche, so how come there is such a difference in line count?

    1. Re:KDE vs Gnome by ajs318 · · Score: 1

      Try using them both. You'll see what the difference is :)

      --
      Je fume. Tu fumes. Nous fûmes!
  74. Re:Looking good, too bad the press didn't understa by splutty · · Score: 1

    But hey, don't take my word for it.. go have a chat with your friend Theo de Raadt..

    Ouch... Talk about throwing to the wolves. However, if you want to have a well-informed (albeit somewhat lacking in social graces) person to comment on the state of security in general, he'd probably be quite a good choice. As to the state of security sense/awareness in programmers, he'd probably be one of the best :)
    --
    Coz eternity my friend, is a long *ing time.
  75. strcpy, strncpy, strlcpy, etc by Olaf+Underbridge · · Score: 2, Informative

    Great, great post. For an alternative to strncpy() etc,
    see <http://www.courtesan.com/todd/papers/strlcpy.html>.

    --
    slashdottagsshorterthanhaikunewartform
  76. Re:Looking good, too bad the press didn't understa by epine · · Score: 1

    But it's not a first time scan. Amada was checked long ago, and FreeBSD has been running a Coverity server since Jan 2006.

    http://www.linuxtoday.com/developer/2006031800826OSCYDV

    http://www.freebsd.org/doc/en_US.ISO8859-1/articles/committers-guide/coverity.html

    Worst of all, these articles haven't disclosed the classes of software issues detected. I'm sure huge classes of deadlocks and other system-wide issues go undetected. Even if the point of Coverity is to conduct system-wide analysis, I'd still say large classes escape.

    I'm sure it can't detect that a Linux device driver sends the wrong byte to the wrong register of the hardware it supervises.

    I think from the DHS perspective, they want to close as many bugs as possible that their adversaries could find by mechanical means. Finding deep bugs is real work, and wouldn't support a multi-vector concerted attack without massive preparation of the kind that HUMINT can usually detect.

  77. Bugs != Holes by Anonymous Coward · · Score: 0

    [ .. Today's slashdot is linking to an interesting article on Information Week, the analyzed took the results of an DHS (Department of Homeland Security) Scan about some used FOSS-Software. ]

  78. Bugs are not holes by Anonymous Coward · · Score: 0

    [ Today's slashdot is linking to an interesting article on Information Week, the analyzed took the results of an DHS (Department of Homeland Security) Scan about some used FOSS-Software. .. ]

    http://blog.coldtobi.de/blog-website/2008/01/09/not-all-defects-are-security-bugs

  79. Bias in results by Pemdas · · Score: 1

    While the numbers for the Linux kernel look pretty good, there's a bit more to this story, I think.

    IIRC, Coverity is the commercialization of the "Stanford Checker" static analysis tool. By most accounts, it's a pretty nifty tool. Back when it was still a research project, some of the folks working on it would run it against different parts of the kernel and post the bugs it found to LKML. It was a mutually beneficial relationship--the kernel people fixed a lot of bugs, and the Stanford folks got analysis on the false positives which they then used to improve their tool.

    I don't know if the Stanford Checker was used on other FOSS projects.

    In the case of the kernel, at least, I would expect that some of the low defect rate can be attributed to that previous experience. I imagine the tool has improved over time, and I know there's been a lot of code added to/changed in the kernel, but still, the past history must help those numbers out significantly.

  80. President Bush and the Republicans can help! by Anonymous Coward · · Score: 0

    The solution to the security problem is to use The Google on the Internets, which is just a series of tubes, and then all will be secure!

  81. Re:Looking good, too bad the press didn't understa by Waffle+Iron · · Score: 1
    The commonly accepted use of the term "security through obscurity" does not include encryption keys. While your line of reasoning may be technically true in some sense, it would render the term completely meaningless.

    There's a bit of difference between a closed source system that is trivially reverse engineered and a properly managed encryption key that would take millions of times longer than the age of the universe to decipher.

  82. Re:Looking good, too bad the press didn't understa by maxume · · Score: 1

    Most locks are absurdly pickable and highly susceptible to sledgehammers. They are barely a speed bump to someone intent on going through a door. Thinking they make you safer is largely self delusion. (the most reliable property they have is that someone wanting to gain rapid entry will have to make some noise to do so)

    --
    Nerd rage is the funniest rage.
  83. Nonpareil code quality by BenEnglishAtHome · · Score: 1
    ...the absolute highest quality code was the cream-of-the-crop proprietary, closed source code from places that make things like fly-by-wire systems

    I wish I could find the link but I remember being very impressed by an article about a code shop that did the flight controls for the space shuttle. There was some amazing dedication to quality going on there.

    1. Re:Nonpareil code quality by NtroP · · Score: 1

      I wish I could find the link but I remember being very impressed by an article about a code shop that did the flight controls for the space shuttle. There was some amazing dedication to quality going on there.

      Is it just me? I'd take this report a lot more seriously if NASA had done it. My experience with the Department of Homeland Security so far is that they are the most bureaucratic, incompetent group of yahoos out there. Their take on security seems to be better ways of using smoke and mirrors (and tighter polyester pants). For them to be considered any actual authority on real security seems ludicrous.

      Even if they are just reading the output of a third-party scanning program, can we trust them to properly interpret it?

      --
      "terrorism" and "pedophilia" are the root passwords to the Constitution
  84. Re:Looking good, too bad the press didn't understa by Atlantis-Rising · · Score: 1

    And that's exactly my point. The term is completely meaningless. It's an attempt to obscure the issue- that is, that security IS obscurity, and without obscurity you cannot have security.

    Whining about 'security through obscurity' is fallacious in the extreme.

    Now, some methods of obscurity are indeed better than others. But an Arquebus is arguably inferior to a crossbow; that does not mean that gunpowder weapons are useless.

    --
    "It is possible to commit no errors and still lose. That is not a weakness. That is life." -Peak Performance
  85. Re:Looking good, too bad the press didn't understa by Anonymous Coward · · Score: 0

    > Something cannot be secure without obscurity.

    Obscurity is not the same as keeping a secret. Obscurity means you _do_ give out the information, just in a really hard to understand way.
    Real security on the other hand uses a real secret you do not give away in any way.

  86. All InfoWeek projects have lower than expected by wonkavader · · Score: 1

    All the projects listed in InformationWeek, where they included numbers have lower bug per line counts than the scanners expected. Generally one FIFTH of what they expected or lower.

    What does that say about popular FOSS projects versus commercial stuff?

    It'd be interesting to see numbers on much less popular projects. And closed source products, of course.

  87. Re:Looking good, too bad the press didn't understa by dasunt · · Score: 1

    (there's a fairly good argument for not checking the return from malloc in much production code - if malloc actually fails then you're already so far up shit creek without a paddle that it's probably impossible to recover gracefully anyway. Obviously different considerations will apply if you're controlling a nuclear power plant than if you're writing a game)

    I thought that one of the major arguments *against* checking malloc's return value is that the most common OSes lie about how much memory they have available and will gladly let a program think a malloc has succeeded and then terminate the program when it tries to use the memory if the OS is running low on memory.

  88. Re:Looking good, too bad the press didn't understa by Waffle+Iron · · Score: 1

    It's not meaningless the way security professionals use it. You'd just like to redefine it to be meaningless with your own private definition. Have fun.

  89. KDE vs. GNOME by mw · · Score: 1

    KDE: 4712273/(1554+25+65) => 1 fault per 2866 LOC
    GNOME: 430809/(357+5+214) => 1 fault per 747 LOC

    Wow. I did not expect GNOME to have 4 times more possible faults, maybe it's because of their preferred language C instead of C++?

  90. Re:Looking good, too bad the press didn't understa by Atlantis-Rising · · Score: 1

    Possibly, although the definition is probably academic; as I said before, interaction and observation are really the same thing.

    The only way security is not obscurity is if the 'secret' does not actually exist.

    But even so, it's far less clear here.

    For example, say you have a lock (an analog for encryption) and do not give me the key. Obscurity here provides you with protection: with enough time examining the lock I can deduce the key.

    On the other hand, you can refer to the example of Enigma; Allied cryptographers were able to break the encryption and so had access to the obscured messages. However, they could not act upon the contents of the message without revealing that they had, in fact, decrypted them (barring some incidents which provided plausible deniability, admittedly).

    The result is that while it is possible to keep a 'secret' without obscuring its contents, doing so is essentially meaningless, as there is no way to act upon its contents without revealing it in some form- at which point the focus drops back to obscurability.

    Which is why the dichotomy between 'secure by design' and 'security through obscurity' is so fallacious. Any security system designed to keep intruders out requires some mechanism of doing so, and by design, requires that mechanism to be presented to the intruder. The mechanism is hiding the message, and so is itself a mechanism of obscurity.

    A security system (doesn't have to rely on obscurity, as seen above, but reasonably will be), and it can also be secure by design. The two concepts are hardly contradictory, and the latter is not a negative attribute even if it exists.

    Badly implemented security through obscurity is bad. But then, so are badly-implemented firearms.

    --
    "It is possible to commit no errors and still lose. That is not a weakness. That is life." -Peak Performance
  91. Re:Looking good, too bad the press didn't understa by johnnyb · · Score: 1

    "There is a class of mathematically provable software languages, and you might be able to say with surety that programs in them are secure."

    I don't think this is the case. The problem is that most people think "secure" is a binary principle - it's there or its not. But in reality "secure" deals as much with expected interactions as it does with any hard principles. A mathematically provable software language will only prove that the software meets a certain specification. The problem is that the specification may itself contain bugs or be insecure. Also, it may be perfectly secure in one context, and perfectly insecure in another (for instance, if they assumed incorrectly which other parts of the system could be trusted).

  92. Re:Looking good, too bad the press didn't understa by johnnyb · · Score: 1

    In addition, there is the question of "exploited by whom". For instance, let's say that there is a bug which allows one Postgres user to do queries on the table of another Postgres user. Should it be fixed? Sure. Is it a big problem? Not unless you're on a shared virtual hosting platform. And even then, its somewhat mitigated because the only people who have access to it are paying customers (i.e. their identity is known).

    A "security bug" does not mean "hax0rs are going to own you", but it may mean something like, "if someone who you trusted enough to give permissions to your box were going to try to screw you, they could do it in this way".

    So, even if it is exploitable doesn't mean that it is necessarily exploitable in a way that would leave people vulnerable to strangers.

  93. Re:Looking good, too bad the press didn't understa by dpilot · · Score: 1

    I once wrote interrupt handlers and read "legacy binary files" in a dialect of Modula-2, as 2 realms that "only C can do well," and I didn't jump through terribly awkward or unsafe steps to do so. The problem was in that word, "dialect." While the language could be good and useful, the original definition was not, and apparently its inventor had insufficient interest in making it so. Hence only dialects became useful, and of course no 2 were the same.

    Beyond that, there's the "common idiot" mindset that dislikes strong typing, even if there is a structured way to break it when necessary, predeclaration of variables, interfaces, and stuff like that that we'd generally be better of with if we had.

    As a result, C and C++ are pretty much it, and programming languages that could help us do better, or been improved to do so, are practically dead on the shelf.

    --
    The living have better things to do than to continue hating the dead.
  94. Re:Looking good, too bad the press didn't understa by Ed+Avis · · Score: 1

    Indeed, you can never be completely certain that code is free of security holes - you can prove one exists, but you can't prove one doesn't exist. At least not using an automated scanner. So the ZDNet article is nonsense: 'its first list of open-source projects that have been certified as free of security defects'.

    --
    -- Ed Avis ed@membled.com
  95. Re:Looking good, too bad the press didn't understa by Bruce+Perens · · Score: 1
    The vast majority of software engineers have no idea what they're doing when it comes to detecting, fixing and avoiding security issues.

    As an aggregate they know enough that they produce the vast majority of security bug reports. Only a tiny minority of those reports come from "experts" performing security reviews. If we have to rely on experts, we're not going to have much security anywhere.

    Theo, unfortunately, has contempt for the programming abilities of most people. It is a valid point, however, that most C programmers can learn more than they know now about how to write secure software.

  96. Re:Looking good, too bad the press didn't understa by Bruce+Perens · · Score: 1
    A mathematically provable software language will only prove that the software meets a certain specification.

    I haven't tried this, and indeed there isn't much real work going on in provable software languages these days. But I think that it would be possible to set theoretical constraints on a program such that it serves data and does not allow it to be modified. There might be a good Ph.D. paper in it for someone.

  97. Microsoft Government Security Program by Nintendork · · Score: 1

    Microsoft does open up its source code to the government for review. They refer to the program as the Government Security Program.

  98. Microsoft Shared Source Initiative by Nintendork · · Score: 1

    Also see their Shared Source Initiative.

  99. Rabid MS hater? by mr_mischief · · Score: 2, Informative

    I'm so much of a rabid MS hater that I'm writing this post from Firefox 3b2 on Windows XP. Get real.

    Where did you pull the 1% of OSS users being programmers from? Your ass? You didn't even cite your own ass? How rude! ;-)

    Yeah, there aren't enough world-class programmers to go around the millions of OSS projects out there, or even the most popular hundred thousand of them. Maybe not the ten thousand most popular. Yet over half the patches for the Linux kernel come from people other than the core development team.

    In fact, the top submitter of changesets into Linux 2.6.20 only accounted for 4.8% of them. The top 20 contributors accounted for 28% of changesets. Similar numbers pop up by number of lines added. Linus only personally signed off on 13% of the changes in 2.6.20 so there's a good spread there, too.

    The people developing the Linux kernel aren't just weekend coders in their parents' basements. Red Hat, IBM, Novell, Intel, Oracle, Google, University of Aberdeen, HP, Nokia, SGI, Astaro, MIPS Technologies, MontaVista, and Broadcom were among the top 20 sources of changesets. Stats of 7.7% for "no employer" and 25% for "unknown" appear, along with a few lesser-known companies. Add Sony to the list of employers of contributors by lines of code. Put Freescale in the list for the versions in the year in which versions from 2.6.16 to 2.6.20 were developed.

    In all, 65% of the changes to the Linux kernel for version 2.6.20 was from corporate development. Over 1,900 people had patches make it into the 2.6.20 version of the kernel alone.

    All these statistics on who develops Linux can be found at LWN.net's article called "Who Wrote 2.6.20?".

    How many companies write and vet the code at Microsoft? Yes, I'm sure there are a bunch of dedicated people at Microsoft, and they do a pretty good job at making a usable OS. They're getting better about security. It's my opinion that Vista's kind of a mess particularly because they're having trouble designing for both usability and security from the ground up. They'll improve on that, too. I don't hate Microsoft's developers (maybe their marketing and legal departments ;-), and they obviously have advantages over many smaller OSS projects.

    However, the biggest OSS projects really do have a lot of people who are highly skilled professional programmers writing their code. They also have an advantage of being able to attack issues most important to their varied employers using skills and development methods different from those at other corporate contributors.

    It's not a black or white issue. Microsoft's got pros and cons, and so does their software. OSS has pros and cons. I have two PCs at this desk. One's XP Pro and one's Linux. I use both every day I'm in the office. I also use Linux servers and I have a Mac at another desk. At home I have XP, Linux, Solaris, Mac, and OS/2 (the OS/2 is for fun). My wife's PC has XP on it, but she can use the Linux box when she needs to. She's not an admin level user, but she can fix some issues on Windows just from having used it so much for so long.

    To bash MS when they really screw something up isn't to be a "rabid MS hater". To praise them when they do something well isn't to be an MS fan. The same's true of OSS projects. Most people want their software to meet their needs and don't root for one "team" or another. Most people who do prefer a particular project are still willing to give other projects their due respect. There are very vocal fanatics in every camp, but just because they're loud and quicker to spout doesn't mean they're actually that numerous.

  100. Re:Looking good, too bad the press didn't understa by Chirs · · Score: 1

    Depends on the OS, and whether or not strict memory accounting is enabled. Even with non-strict memory accounting there are cases where malloc() will fail.

    If you _really_ want to make sure that you have the memory available, malloc() it, verify the return code, then mlock() the address range. The truly hardcore will use mlockall() and pre-allocate all memory including their stack and signal stack, writing to each page of memory at startup to ensure it gets faulted in. This is rarely necessary, but useful in certain circumstances.

  101. Clearup rates by Malevolent+Tester · · Score: 0

    Of the 236 defects, 228 have been corrected, said Maxwell in an interview.

    Proof that waterboarding developers is a valid part of any QA methodology.

    --
    If you haven't made a developer cry, you've wasted a day.
  102. Re:Looking good, too bad the press didn't understa by ClosedSource · · Score: 1

    Nobody has. The question is whether having a potentially larger number of people who might examine the code, outweighs the disadvantage of making it easier for crackers to exploit it.

  103. Re:Looking good, too bad the press didn't understa by starfishsystems · · Score: 1
    I submit that people who are only looking for security flaws don't have a motivation to develop a deep understanding of the software. People who are out to modify the software do.

    This is a truly insightful comment. Software security isn't just a matter of verifying low-level code correctness. Though that's a step which can be usefully automated, what could possibly motivate the deeper analysis of what the software is supposed to do? To even identify the edge cases which exist at higher levels of abstraction requires an intimate knowledge of the software as implemented, its architectural intent, and the requirements which drove that solution.

    Who is there in a position to develop that kind of knowledge? Typically, someone who comes along with a reason to adapt the software to new requirements, or whose taste for whatever reason runs to a different solution architecture, or who thinks that the design needs refactoring.

    Of these three, proprietary software tends only to put resources into the first, whereas we know that merely adding new features typically results in reduced security when addressed in isolation. It takes a certain kind of altruism to care about the other two.

    Software development is intrinsically hard. More secure development is harder. In terms of human resources, it makes sense that deep security improvements are going to come from people who are strongly motivated to know the software.

    Security isn't a treatment that can be performed after the fact. It has to be an intrinsic part of the design process. So I agree, though I'll word the claim even more strongly. People who are only looking for security flaws by definition lack the fundamental insight that security is mostly about design. Implementation is just the tip of the iceberg.

    --
    Parity: What to do when the weekend comes.
  104. Re:Looking good, too bad the press didn't understa by DamnStupidElf · · Score: 2, Insightful

    I haven't tried this, and indeed there isn't much real work going on in provable software languages these days. But I think that it would be possible to set theoretical constraints on a program such that it serves data and does not allow it to be modified. There might be a good Ph.D. paper in it for someone.

    It's possible to prove almost anything about the programs and operating systems, from type safety and runtime guarantees to any arbitrary set of predicates you want the system to satisfy. That assumes perfect hardware, so at most a security guarantee must be probabilistic, but can be made arbitrarily close to 100% secure by using redundancy and potentially cryptography in hardware to ensure either correct results or the triggering of an error condition.

    For some current examples of work in this area you might look at George Necula's work on proof carrying code, which looks pretty interesting. They also have a Java and I think even a subset of C compiler that can output proofs of type safety. I haven't tried them though.

    Another big challenge is to figure out how much the security model should cover. Type safety, privilege separation and file permissions are pretty obvious things to include, but what about network security, probabilistic assumptions about cryptographic security, or information control polices like the original Common Criteria required?. It would be useful for normal users to have some sort of classification they could assign to their personal information that the OS could use to keep most processes away from it. I've been interested in capability systems for quite a while too, since they often match a provable security model and programming language a little better than the typical ACL and privilege approaches.

  105. Re:Looking good, too bad the press didn't understa by mr_mischief · · Score: 1

    It does if those people actually turn out. It doesn't otherwise. They can't help fix the code if they can't see the code though. OSS is a security opportunity, and not one that's necessarily fulfilled.

    There are advantages to having the code open besides security, too. Code reuse, code clarity, project longevity, and more can be helped by having more than one small team working on code.

    There are two situations in which OSS helps most. One is the small team that opens their code because even a few outside helpers is a significant increase in programmers. Many projects, including the Linux kernel, start out this way.

    The other is when a project becomes popular enough or gets close enough to meeting enough people's needs that large groups of programmers and major commercial and noncommercial organizations start working on the code. Here each additional programmer is statistically less significant to the overall project numbers, but the total number of people is bigger than you'd expect a development team at even a large company to contain. This is where Linux is now, with almost 2,000 developers in a fairly recent version. Sure, they're not all working on the Linux kernel full-time, but that's still a lot of eyeballs on the code.

    Lots of commercial software isn't written by Microsoft, SCO, IBM, Novell, CA, Adobe, Apple, and the other big corporate software houses. Lots of it, too, is written by small teams in small companies or by in-house people supporting some other industry. Most of it is, in fact. While there are many types of software development targets, there are vanishingly few companies that have hundreds of programmers working on a single system of software. Most of the projects in the world that get hundreds of programmers involved are written, in fact, as OSS or in one of just a handful of companies.

    The biggest reason OSS is so important is not necessarily because it presents a challenge to companies like Microsoft, Apple, and Adobe although OS and office suite alternatives are always nice. It's because if companies with 2 or 20 programmers who have the start of something good can have just one bug fixed by each of another 2 or 20 programmers and another company can pick up that program and develop it further without redoing the work of those 2 or 20 programmers, those things are really significant at that scale.

  106. Re:Looking good, too bad the press didn't understa by Anonymous Coward · · Score: 0

    As for the use of terminology, excuse me for using an accurate term like "defect" instead of a more popular colloquialism like "hole". Appropriate terminology is important if you want to be properly understood, but appropriate terminology doesn't necessarily mean the most accurate. For example using accurate terms like "Absolute Slut" or "Hooker", when you could equally well use a more appropriate and popular colloquialism like "Skank", as you surely know, can lead to misunderstandings.

  107. Re:Looking good, too bad the press didn't understa by QuantumG · · Score: 1

    As an aggregate they know enough that they produce the vast majority of security bug reports. Umm, again, no offense, but do you have anything to back that up?

    --
    How we know is more important than what we know.
  108. Re:Looking good, too bad the press didn't understa by Bruce+Perens · · Score: 1

    Well, one place to look is the Mozilla Foundation security announcements. Both security companies and individuals participate. Where the report comes from a security company, they are attributed.

  109. Re:Looking good, too bad the press didn't understa by gr8scot · · Score: 1

    According to McAfee recently (http://yro.slashdot.org/article.pl?sid=08/01/05/0215201) and Microsoft et al, having your code exposed lets the bad guys exploit its vulnerabilities.

    I'm so glad the bad guys haven't found any vulnerabilities in their unexposed code, yet. The number of distinct virus definitions are evidently "just in case."
    --
    All 19 hijackers were known terrorists 09-10-2001. Lack of FBI intelligence does not justify warrantless wiretaps..
  110. Re:Looking good, too bad the press didn't understa by Stephen+Samuel · · Score: 1
    You don't want to mlock huge chunks of memory if all you want to do is ensure that your ram is allocated. Mlocking doesn't just force the memory to be allocated -- it prevents it being paged out, which is a far more strict result than is desired -- it costs you the advantages of VM. Far better to do something like:

    char *ptr;
    if( (ptr = malloc(size)) == NULL )die_horribly();
    for(i=0; i<=size; i+=512 ) {
    ptr[ i]=0;
    }
    What that does is dirty all of your pages, and forces them to all be allocated but allows them to be paged out again.

    (and, -- yeah, you can just make that loop into a subroutine).

    --
    Free Software: Like love, it grows best when given away.
  111. Firebird bug counting by mAriuZ · · Score: 1

    The following was sent to Charles Babcock at Information week in reply to an article entitled:

    Open Source Code Contains Security Holes

    As a developer and administrator of the Firebird Project I completely reject the statement you made in the above article.

    "The somewhat moribund Firebird project, for example, is listed with 195 identified defects, of which it has verified zero and fixed zero. The active Firefox browser project, on the other hand,
    has fixed 370 bugs, verified 56 and faces another 246 to verify and fix."

    The Firebird project is in fact incredibly active - perhaps a look at this chart on our bug tracker might give you a clue.

    http://tinyurl.com/yt5pgl

    Firstly the Firebird project reviewed the Coverity results almost immediately they were published and found that the report isn't actually related to the Firebird engine. This URL shows our appropriate comments from the 7th March 2006:
    http://www.firebirdnews.org/?p=180

    Also more comments from Claudio on the 26th March 2006:
    http://www.firebirdnews.org/?p=243

    Secondly in a more detailed reply to the actual "PR" issue raised by David Maxwell, open source strategist for Coverity. If you had asked about this before printing the article you could have put some facts straight.

    Nearly all of the 195 identified defects are in fact actually within an external piece of code we use for character sets and collation sequences ICU

    http://www-306.ibm.com/software/globalization/icu/index.jsp

    "The International Component for Unicode (ICU) is a mature, portable set of C/C++ and Java libraries for Unicode support, software internationalization (I18N) and globalization (G11N),
    giving applications the same results on all platforms."

    A open source project maintained by IBM. I will admit that we are using an older version of ICU (3.0) than is currently available and we will be upgrading to a newer version in the near future.
    But this is not something that is a trivial exercise, as it means that any database using a different version of ICU would be incompatible with the version we ship. We plan to upgrade ICU
    in Firebird version 2.5

    Other defects reported are one in
    usr/include/c++/4.0.2/i386-redhat-linux/bits/gthr-default.h
    Not our problem either....

    And there are four defects in firebird2/src/gpre/pretty.cpp a piece of old code used with a pre-compiler (gpre) to make BLR look good. BLR (Binary Language Representation),
    Firebird's internal compiled language. This doesn't affect the Firebird server at all.

    I would like you to print a correction or at least acknowledge the innacuracy of the article as regards Firebird.

    Regards
    Paul Beach

    --
    developer http://flamerobin.org
  112. Party? by wolftone · · Score: 1

    In open source there is no such thing as a third party or second party, anyone and I mean absolutely anyone ... that contributes to open source software is a first rate party.

    Ah, to hell with it all, let's just party!

    Unless you're saying that all open source contributers are themselves the party. Now that's just dirty. Not my thing, you see. I guess, well, maybe if they really are first rate.

  113. Re:Looking good, too bad the press didn't understa by Anonymous Coward · · Score: 0

    Hi Bruce! Good to see you are still around! Have a very good New Year, my friend, and give 'em hell!

  114. Re:Looking good, too bad the press didn't understa by samkass · · Score: 1

    Excellent points. However, many times the vulnerabilities are found via the exploits that take advantage of them, then subsequently fixed on all affected operating system. Said exploits are very often on Windows (and in particular Windows XP). That sways me towards the argument that my assertion is probably correct anyway.

    My guess is the exploits tend to be on Windows XP because it has the fewest layers of security and is the most popular OS in the world. I don't know the answer to the question, "What if linux or MacOS were the most popular?" I suspect it wouldn't be as bad because it's a lot harder to inject the right code in the right place at the right authentication level in those OSes, but the fact that the iPhone was jailbroken so fast (it runs MacOS X 10.5 and is jailbroken via a buffer vulnerability) leads me to believe there would at least be more than zero viruses.

    --
    E pluribus unum
  115. Re:What the developers knew, and when they knew it by Douglas+Goodall · · Score: 1

    Third party reviews are valuable, but as an experienced engineer, I have experienced doubts about code when bugs found during development seemed to disappear without being "fixed". There is a tendency to forget about mysteries that go away even though they may have been indicative of potential trouble that would only manifest under rare conditions. Professionals try to take the time to understand these wobbles to make sure they are fixed, but I have never read code notes written by developers that include admissions of possible unstable code when it doesn't seem to be causing trouble. Aside from auditors making a list of things they suspect by reading the code, bugs can be based on bugs in hardware, or mismatched versions of sub components and so on. For us to have the perfect world, we would have to have the code reviewed, but also the developers would have to write journals and admit their doubts and observations about unsolved mysteries. HHDL commented about how science is based on observation and our ability to observe computers is limited.