Slashdot Log In
LAMP Lights the OSS Security Way
Posted by
Zonk
on Tue Mar 07, 2006 10:27 AM
from the bashing-in-the-heads-of-bugs dept.
from the bashing-in-the-heads-of-bugs dept.
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
|
Log In/Create an Account
| Top
| 178 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

Old news (Score:2, Informative)
Dupe (Score:1, Informative)
Maybe I've been reading too much politics lately.. (Score:4, Interesting)
I need to do something about my cynicism.
Re:Maybe I've been reading too much politics latel (Score:5, Insightful)
"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.
Re:Maybe I've been reading too much politics latel (Score:4, Informative)
Spot on, as you can see on scan.coverity.com [coverity.com]:
- PHP features 205 defects for 431,327locs, or 0.475 defects/kloc
- Perl has 91 defects for 431,327locs, or 0.19 defects/kloc
- Python is very slightly lower than perl (but with a noticeably smaller codebase) at 49 defects for 259,908locs or 0.189 defects/kloc
- Apache-httpd features 32 defects in 127,817 locs, or 0.25 defect/klock
MySQL isn't featured (Ruby is also a noticeable absent), but PostgreSQL stands at 296 defects for 815,748 locs, or 0.363 defects/kloc, and the lightweight SQLite has 16 defects for 60,722 locs or 0.263 defect/klock.Fucking LAMP. (Score:5, Insightful)
(http://autopr0n.com/ | Last Journal: Saturday August 06 2005, @01:30AM)
To me, MySQL is like the MS Access of the Open Source world.
Re:Fucking LAMP. (Score:4, Interesting)
There are open (and closed) source products that have dealt with these issues for years. Modern ORMs products handle all of these matters, and automatically provide translation between portable query languages (such as JDOQL) and high-performance vendor-specific SQL depending on the database you deploy on.
It is astonishing to see these matters still being discussed as if no solution exists!
Re:Fucking LAMP. (Score:5, Insightful)
(http://timgray.blogspot.com/)
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.
Re:Fucking LAMP. (Score:4, Insightful)
But if he's getting a Computer Science degree (which seems to be the plurality of students on
Re:Fucking LAMP. (Score:4, Insightful)
don't waste that $$$! (Score:2, Insightful)
Re:don't waste that $$$! (Score:4, Funny)
(http://www.bazzalisk.purplecloud.net/)
Interested minds couldn't care less.
The LAMP devs _have_ to write secure code. (Score:1, Insightful)
Counting Defects (Score:2, Interesting)
And why count them, and then not remove them?
And one huge defect is better than more than one small ones?
Sounds like a crappy research to me, time to RTFA.
http://scan.coverity.com/ - highest/lowest (Score:3, Interesting)
Just an FYI...AMANDA had the highest amount of bugs at 1.214 Defects / KLOC and OpenVPN the lowest at 0.100 Defects / KLOC.
YEAH RIGHT! (Score:5, Insightful)
(http://suso.suso.org/ | Last Journal: Tuesday March 09 2004, @12:03AM)
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.
Umm... Way to go Department of Homeland Security? (Score:4, Insightful)
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.
0.00 defects per infinity lines of code (Score:4, Insightful)
(http://www.vanderlee.com/)
No MySQL? (Score:2)
Test of Leaked Vista/IIS code (Score:5, Funny)
(http://sourcery.blogspot.com/ | Last Journal: Tuesday September 18, @11:53AM)
The findings were remarkable. They found 4,669 flaws, but since they didn't have the source code it resulted in a divide-by-zero error when they calculated the statistics on their Excel spreadsheet. The error triggered an unheard-of lockup on their Windows XP desktop.
On a positive note, recovering from the error alerted them to the presence of 43 strains of the MyDoom virus, 257 instances of Alexis spyware, and a bootleg copy of "Making of the Britney Spears Sonogram".
RE: Automated bug finding (Score:1)
LA - fine M - okay P - ah so many varieties! (Score:5, Interesting)
Linux & Apache - rock solid stable releases.
MySql - Okay, getting better with each release.
P - This is the kicker. Perl, Python, PHP, and more so lately even that R one Ruby & Rails.
We are living in interesting times when we have so much choice... much like the Chinese curse. I do not see as how you can evaluate all of these platforms together in a general fashion. Where is the skew or bias in this study?
Someone on IRC recently was critical of a small website I put together in 2000. It was written in plain html, using frames *gasp*. Many people today do not realize how far web development has come since then.
Just Gnome? (Score:1)
(Last Journal: Friday January 20 2006, @11:57AM)
what counts as a bug? (Score:2)
Security is not a feature, security is design (Score:4, Insightful)
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".
Will Coverity contribute? (Score:2)
(http://aggiegeeks.com/ | Last Journal: Thursday February 05 2004, @05:10PM)
From the lame-ass-metaphor dept. (Score:2, Funny)
(http://www.tobiasly.com/)
For the love of all that's holy, please drop the hackish high-school-newsletter headlines.
For the rest of us (Score:1)
(http://www.hugeurl.c...Y2FkMDFkM2E5OTVhNTk3)
Commercial metrics? (Score:2)
(http://www.xmilk.com/)
Maybe someone works for a company that used the tool on their code? Or some results have been published somewhere?
Hint to PHP devs (Score:2, Funny)
(http://fnarg.com/)
bug reports? (Score:3, Interesting)
(Last Journal: Tuesday May 10 2005, @03:47PM)
I hope they report all the bugs they found (Score:1)
Same Math Error (Score:1)
(http://waxinglucid.blogspot.com/)
They keep on making the same mistake.
Free software (Score:2)
more related (Score:1)
(http://umich.edu/~jamec | Last Journal: Monday November 12, @06:28PM)
Re:Solaris (Score:2, Funny)
Re:And for Windows XP? (Score:2)
Seriously, the "at least it's not Microsoft" argument shouldn't impress anybody. The desire to put out a superior product, period, should be motivation enough to undertake something along these lines.
Re:What about.... (Score:2, Funny)
(http://www.brutallyfrank.net/)
Re:Curious absence of OpenBSD/OpenSSH ... (Score:1)
(http://www.encyclopediadramatica.com/ | Last Journal: Saturday December 02 2006, @04:02AM)
search the archives. it's explained