4 ms·
Maybe the person you are replying to should have qualified “popular open source repositories”.
by sgillen 7y ago
Maybe the person you are replying to should have qualified “popular open source repositories”.
- falcolas 7y agoLike openssl? Rhetorical question; OpenSSL was both open source and broadly used, and it took over two years to identify heartbleed. Plus. many companies, Microsoft included, open up their source code to partners. The openness of source code has little correlation to its security.
- enchiridion 7y agoI'm not sure if heartbleed is a good example here, given that it was basically a new class of exploit.
- missblit 7y agoWasn't heartbleed a fairly typical buffer overflow?
- swixmix 7y agothe typical buffer overflow would have been caught by OpenBSD's protective malloc. > [...] OpenSSL adds a wrapper around malloc & free so that the library will cache memory on it's own, and not free it to the protective malloc. [...] So then a bug shows up which leaks the content of memory mishandled by that layer. [...] https://marc.info/?l=openbsd-misc&m=139698608410938&w=2 https://marc.info/?l=openbsd-misc&m=139698608410938&w=2
- selestify 7y agoSeems like that commenter is also saying that it would’ve been caught as a regular buffer overflow bug? > OpenSSL is not developed by a responsible team.
- sgillen 7y agoI don’t think the vulnerability was in malloced memory, it was some buffer on the stack. I’ve actually patched OpenSSL to stop heart bleed as an excersice and iirc the fix was in fact just preventing a typical buffer overflow.
- enchiridion 7y agoI've always thought of buffer overflow as writing beyond the intended bounds of the buffer. Heartbleed is reading beyond the intended bounds remotely. I don't think there were similar attacks before hand, but I could be wrong. I only have a base level knowledge here.
- saagarjha 7y agoInfoleaks are nothing new.
- ent 7y agoI know it's not quite that simple but isn't OpenSSL exactly an example of how a bug in open source software was found and fixed? Of course it took a while and the software was already extremely widely used at that point but bugs happen and at least it's not just lying around unfixed. I can't remember bugs in closed software getting the same kind of exposure.