4 ms·
I've always been very trusting of open source software. I've often thought "surely someone else has looked through this source code" and just assumed that malic
by bryanh 15y ago
I've always been very trusting of open source software. I've often thought "surely someone else has looked through this source code" and just assumed that malicious code never hits stable releases. The same goes for "verified" binaries, packages, etc... apparently that is not always the case.
What are the possibilities that such code could make its way into some piece of extremely popular public facing software, say Apache? How many cleverly hidden "bugs" already exist that open us up to complete pwnage for the clever bastard behind them?
Just think about the havoc someone could do with a few popular but nasty PyPi or RubyGem packages...
- warp 15y agoTypically the people looking "through the source code" are the developers working on the the project. Both occasional contributors who want to fix a bug or add a feature for themselves, or the main developers taking those patches and adding them to the main release branch after reviewing the code. All those developers use VCS repositories, not the releases distributed through FTP sites and such -- which were the files affected here.
- kylemaxwell 15y agoWhile those points all matter, don't think of this as an open source issue. This can happen to any software provider, and often does.
- brador 15y agoWasn't there a serious backdoor situation with some Linux distros (Ubuntu?) last year? Some guy came out detailing a 10 year contract of silence or something...
- dignan 15y agoAs I recall, numerous developers and security experts tore through the relevant code there, and they didn't find anything.
- kijin 15y agoYou mean the OpenBSD IPSec backdoor controversy? Nothing found AFAIK.
- deleted 15y ago[deleted]
- eneveu 15y agoHN discussion at the time: http://news.ycombinator.com/item?id=2029175 http://news.ycombinator.com/item?id=2029175
- Palomides 15y agothe back door wasn't ever in the version control, it seems, which means it was probably someone broke into the servers storing the code after it was packaged. code is definitely read by someone, but open source projects never have the resources to continuously audit ever single package they have for download.
- throwaway64 15y agoon the contrary, many open source projects sign and hash their packages, to anyone that verifies the signature and hash, the tampering will be immediately apparent.
- DanBC 15y agoMD5 hashing is known weak, and must not be used for security. MD5 hashing is currently used to give quick and simple check on transmission download errors, rather than malicious attacks.
- exDM69 15y agoThat's why you should use SHA-hashes when you need cryptographic security.
- loeg 15y agoAnyone who can backdoor a release on their FTP server can easily upload a new CHECKSUM file. Many users probably do not bother to check the hash. Even if you use public key crypto to sign the hash, users probably don't know your public key in advance. An attacker can sign their malicious hash with any valid public key they like.
- throwaway64 15y agoyes, and its turtles all the way down, but its much harder to compromise (multiple) key servers than a simple download mirror. Its also trivial to setup some sort of totally unknown checking setup, that downloads the packages daily and checks if they are properly signed, and activates big red sirens if it is not.
- quantumhobbit 15y ago"given enough eyeballs, all bugs are shallow" There aren't enough eyeballs.
- zalew 15y agosecurity is not a matter of being open or closed source
- lunarscape 15y agoDid you read the link as I did? The server hosting the packages was compromised. This could have happened to any software, not just open source, and I'm sure it has. >The same goes for "verified" binaries, packages, etc... apparently that is not always the case. If proper package signing was in place, like most modern distros support, then this couldn't have happened. The backdoor was not in the main code in SVN or in Git, which specifically protects against this exact problem, but added to unprotected releases dumped on a server. >What are the possibilities that such code could make its way into some piece of extremely popular public facing software, say Apache? No bad code was added to the code base.
- ezyang 15y ago> The backdoor was not in the main code in SVN or in Git, which specifically protects against this exact problem Pedant alert, but Subversion doesn't protect against malicious manipulation; it doesn't checksum its commits.
- rmccue 15y agoI think that phrase was intended to relate to just Git, although I could be wrong.
- exDM69 15y agoGit uses a lot of hashes but they're for speed, not for security. If you want security from Git, you must cryptographically sign your commits, which is pretty common in big projects.
- lunarscape 15y agoI was specifically referring to Git.