Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

LAMP Lights the OSS Security Way 178

Kevin Young wrote to mention a ZDNet article which goes into some detail on new results from a Department of Homeland security initiative. It's called the 'Open Source Hardening Project', and (funded to the tune of $1.24 Million) the goals of the initiative are to use a commercial tool for source code analysis to buck up the security base of many OSS projects. LAMP (the conglomeration of Linux, Apache, MySQL, and PHP/Perl/Python) was a 'winner' in the eyes of the project. From the article: "In the analysis, more than 17.5 million lines of code from 32 open-source projects were scanned. On average, 0.434 bugs per 1,000 lines of code were found, Coverity said. The LAMP stack, however, 'showed significantly better software quality," with an average of 0.29 defects per 1,000 lines of code, the technology company said.'"
This discussion has been archived. No new comments can be posted.

LAMP Lights the OSS Security Way

Comments Filter:
  • Fucking LAMP. (Score:5, Insightful)

    by autopr0n ( 534291 ) on Tuesday March 07, 2006 @11:34AM (#14866499) Homepage Journal
    I'm so sick of everyone making their software depend on MySQL. If you're software is any good it should be able to run on more then one DB, at least Postgres.

    To me, MySQL is like the MS Access of the Open Source world.
  • by urdine ( 775754 ) on Tuesday March 07, 2006 @11:34AM (#14866501)
    Why not release the results of all the bugs? All those OSS projects will then have 0.00% bugs!
  • by Anonymous Coward on Tuesday March 07, 2006 @11:36AM (#14866518)
    After all, that stuff's running most of the Internet.
  • by gbjbaanb ( 229885 ) on Tuesday March 07, 2006 @11:38AM (#14866532)
    Well, once you read this snippet from the article, they'll have enough ammo:

    "There is one caveat: PHP, the popular programming language, is the only component in the LAMP stack that has a higher bug density than the baseline, Coverity said."

    I assume he means the baseline of 0.434 bugs/1000 lines, and that if they removed PHP from the LAMP stack, that average bug count would go down even further.
  • by Anonymous Coward on Tuesday March 07, 2006 @11:39AM (#14866543)
    Why not release the results of all the bugs? All those OSS projects will then have 0.00% bugs!
    They do - it says so in the article.
  • Re:Fucking LAMP. (Score:1, Insightful)

    by Bad Boy Marty ( 15944 ) on Tuesday March 07, 2006 @11:42AM (#14866564) Homepage
    Used it on a site that took a million hits a day. Using the same table definitions, MySQL ran about 5 times faster.
  • YEAH RIGHT! (Score:5, Insightful)

    by suso ( 153703 ) * on Tuesday March 07, 2006 @11:45AM (#14866587) Journal
    Also from the article: The lowest was the XMMS audio player, with 0.051 defects per 1,000 lines of code.

    Being someone who has used Amanda for many years and also XMMS, I find it hard to believe. Amanda has few problems (unless its the tape drive itself) and XMMS crashes sometimes when you just push a button in the "wrong way".

    I think there can be a big difference between actual number of bugs and the perceived number of bugs. This almost makes counts like this useless for actually comparing software.
  • Re:Huh? (Score:3, Insightful)

    by muhgcee ( 188154 ) * <stu@fourmajor.com> on Tuesday March 07, 2006 @11:45AM (#14866592) Homepage
    I work at a company that uses Postgres with one of our products. When there are a lot of INSERTs into the Postgres database, it needs to be vaccuumed or it slows to a crawl.
  • by Wannabe Code Monkey ( 638617 ) on Tuesday March 07, 2006 @11:47AM (#14866607)

    I have to say, I'm suprised and impressed... a $1.2M grant to harden open source software? Thanks all seeing orwellian eyeball. I don't recall slashdot posting anything about the original grant but here's a link from the posted article to another about the funding [zdnetasia.com].

    The data is meant to help secure open-source software, which is increasingly used in critical systems, analysts said. Programmers working on the Linux operating system, Apache Web server, BIND Internet infrastructure software and Firefox browser, for example, will be able to fix security vulnerabilities flagged by the system before their code becomes part of a released application or operating system.

  • by mwvdlee ( 775178 ) on Tuesday March 07, 2006 @11:48AM (#14866612) Homepage
    If an automated system can detect bugs in code, why can't it fix them automatically too?
  • MySQL (Score:3, Insightful)

    by suso ( 153703 ) * on Tuesday March 07, 2006 @11:56AM (#14866666) Journal
    I don't trust Oracle

    Honestly, I don't trust MySQL either. Every since they started going more commercial, there have been indications that eventually MySQL will be more closed up than open. But that's just speculation. So I've been slowly switching my stuff to use Postgresql. The only problem I have with postgresql is that it doesn't handle user administration as well. Other than that, its awesome.
  • Re:Fucking LAMP. (Score:2, Insightful)

    by aurb ( 674003 ) on Tuesday March 07, 2006 @12:04PM (#14866722)
    Indeed. I wonder why people are not using SQLite [sqlite.org] where they need a fast and not _very, very_ large database (that's the case with most websites). And if there's a need for a big and reliable db -- PostgreSQL is the answer.
  • Re:Fucking LAMP. (Score:5, Insightful)

    by Lumpy ( 12016 ) on Tuesday March 07, 2006 @12:09PM (#14866761) Homepage
    I'm sick of DB makers ignoring standards and making their SQL not 100% SQL99 compliant.

    it's is pure bullcrap that MSSQL,Oracle,MySQL and PostgreSQL can not take the exact same complex query without having to rewrite it.

    That is one of the big problems. the fact that some of my queries will not go cross platform because of stupidities thrown in by Microsoft, MYSQL, and Oracle that cause pain and suffering like this.

  • by Device666 ( 901563 ) on Tuesday March 07, 2006 @12:15PM (#14866808)
    Security is not a feature, security is design. This ultimely means that security should provide good default values, knowledge about how to prevent buffer underruns/overruns and most importantly knowledge how to use a system. This means that security only will need tools to help a system architect and developer to confront him with his limits of his human brain and have a well documented yet very simple concise system and low speed development cycles.

    Open source is great because of the many eyes, knowledge sharing and having nothing to do with corporate tradeoffs (the users have the largest voice. But it stinks in the fact that any noob can make programs which are badly designed and are a serious risk to security, however someone may learn faster form the mindsharing in the open source world. To have a well concise system so much more is needed than just some bugfixes. OSS is just a proof that closed source coorporate software is not good with security, but it isn't proof of sound security.

    Most interesting is OpenBSD with it's oustanding default values, it's very own high profile malloc which prevents coders for lot of buffer underrunes/overruns, outperforming other malloc implementations. It has a very high quality of manpages and if you want to do something then you have to RTFM. That's what security should be, other than some less known bugs. I would even suggest that it would be better in the name of security that people would use program derivation (which is a very concise way to do formal verification). PIE and all other solutions maybe look practical, but they don't solve the lacking attention for "secure by design".
  • Re:Old news (Score:1, Insightful)

    by Anonymous Coward on Tuesday March 07, 2006 @01:13PM (#14867383)
    I've always been curious how the oldest comment can be redundant...
  • Re:Fucking LAMP. (Score:4, Insightful)

    by Khelder ( 34398 ) on Tuesday March 07, 2006 @01:29PM (#14867548)
    Well, the GP didn't say what kind of undergraduate degree program he was in, so maybe it was on something very applied like "Database Administration" and you're right.

    But if he's getting a Computer Science degree (which seems to be the plurality of students on /.), then his courses should *not* be emphasizing how the syntax for database A is different from the syntax for database B. The courses should be about higher level concepts (maybe replication, or normalization).
  • Re:YEAH RIGHT! (Score:3, Insightful)

    by maelstrom ( 638 ) on Tuesday March 07, 2006 @01:55PM (#14867850) Homepage Journal
    I think it should be obvious this bug scanner only picks up on certain classes of "bugs". If they had an automated way of detecting all types of bugs, they would be rich beyond their wildest dreams. I imagine it picks up certain things like out of bound accesses, mallocs without frees, etc. It would make sense that Amanda would have more types of these operations going on than something like xmms.
  • Re:Fucking LAMP. (Score:4, Insightful)

    by NitsujTPU ( 19263 ) on Tuesday March 07, 2006 @02:20PM (#14868130)
    Exactly. I didn't sign up to go to a trade school. I signed up to learn CS.

Always draw your curves, then plot your reading.

Working...