8 ms·
It's good to see that one of the positive effects of Heartbleed is that it motivated people to inspect OpenSSL's code, leading to more bugs being found and fixe
by userbinator 13y ago
It's good to see that one of the positive effects of Heartbleed is that it motivated people to inspect OpenSSL's code, leading to more bugs being found and fixed.
This is supposed to be how open-source works; it's unfortunate that it had to take a huge vulnerability to cause this motivation.
- midas007 13y agoIt still doesn't get at two top points of meta: TLS is a horribly overfeatured, design-by-committee standard AND C makes it incredibly easy to screw up and so requires zealous attention to a defensive coding style to introduce fewer flaws.
- cynicalkane 13y agoIt's possible to defensively code in C, particularly with modern tooling (some of which lets you write provably secure code) and good process. The fact of the matter is the OpenSSL people simply did not care about writing good code, and the open source community as a whole was happy to assign their most critical security features to a library widely known to be confusing and terrible and not even remotely properly analyzed or tested. Like most people, I see Heartbleed as a process failure; unlike most people, I think the process failure goes far beyond TLS or OpenSSL or C.
- ahomescu1 13y ago> The fact of the matter is the OpenSSL people simply did not care about writing good code, and the open source community as a whole was happy to assign their most critical security features to a library widely known to be confusing and terrible and not even remotely properly analyzed or tested. Sure, but open source developers have no obligation whatsoever to anyone. Considering they're not being paid in any way for their code, they can write whatever code they want and under whatever process they like. The problem IMHO is that OpenSSL was used for highly sensitive commercial uses (like Gmail, Amazon and others); I think responsibility should fall on companies who used the library without checking it first (Disclaimer: I'm not in anyway associated with OpenSSL or any crypto library, this is just how I see things).
- userbinator 13y ago> I think responsibility should fall on companies who used the library without checking it first Agreed. The OpenSSL license (as do many others), has this very clear (if somewhat hard-to-read) disclaimer in it: "IN NO EVENT SHALL THE OpenSSL PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
- cynicalkane 13y agoThis is a standard disclaimer in software. It's just there so you can't sue. It doesn't mean OpenSSL was not intended to be a security library for everyone to use, because it obviously was. I don't like the 'amateur defense' of open source. No, people are not legally liable for code; no, no open-source dev has any obligation to write good code; but OpenSSL is still garbage. As long as you're writing code and using other peoples' code, you might as well care about craftsmanship. If you don't care about craftsmanship, maybe this is the wrong approach to a critical security library.
- RyanZAG 13y ago> but OpenSSL is still garbage. What? Come on. Get a grip on reality. The code is some of the most efficient and widely used. I think it's also the only code that implements the entire spec. It's like those commenting "that skyscraper is garbage" by someone who doesn't even know what you'd need to build a skyscraper, let alone actually tried to build one.
- sillysaurus3 13y agoIt's like those commenting "that skyscraper is garbage" by someone who doesn't even know what you'd need to build a skyscraper, let alone actually tried to build one. It's nothing like that at all. A piece of code's popularity is no evidence of its quality. Otherwise we'd never have advanced beyond BASIC. Implementing an entire spec is nothing to be proud of. Specs are often over-engineered. This is almost certainly the case for TLS. It's 103 pages long: http://tools.ietf.org/html/rfc5246 http://tools.ietf.org/html/rfc5246 We should be questioning the foundations we've been relying on until now when a single vulnerability was able to compromise most of the internet, possibly since 2011.
- randomfool 13y agoWhere is the best place to donate to improve these critical core-infrastructure pieces? What do I need to do to get people into position to clean up TLS?
- userbinator 13y agoAs this is open-source software, the best thing you can donate is your time: If you know even just a little C, download the source and start reading through it. Heartbleed is somewhat more subtle, but you don't need to be much of an expert to catch things like the "goto fail;" bug. The more eyes looking at the code, the better.
- tomphoolery 13y agoI'm not sure the "community as a whole was happy" about trusting such critical features to OpenSSL. Were there any other FLOSS solutions that did everything OpenSSL does when a lot of this stuff was developed?
- cynicalkane 13y agoRevealed preferences. People complained about OpenSSL, but in practice were far more concerned with the latest Java ORM or NoSQL database.
- lmm 13y agoThe revealed preference is that the industry doesn't really care about security. We follow "industry best practice" - that is, we do the minimum to stop users complaining - but users don't buy based on security, and so it's not worth putting marginal effort into.
- midas007 13y agoDouble-underscore the last point. TLS WG is the first fail. Look at how many draft feature proposals there are. https://tools.ietf.org/wg/tls/ https://tools.ietf.org/wg/tls/ Where are the proposals for deprecations for killing off features?
- fijal 13y agoI guess you can but for some reason very few people do. Look at e.g. number of times browsers have security problems. Are those teams made out of idiots or is it genuinely hard?
- Confusion 13y agoYes, and 'most people' are distracting us from discussing the future: how can a refactoring of the OpenSSL codebase, aimed to improve understandability (which implies improved security) be organized? There will need to be many rounds of small incremental improvements. Who could propose these steps? Who can lead the process, how could contributions be vetted? This is a huge challenge, but unless people start thinking about it and proposals are made, it just won't happen and nothing will change. Just thinking about setting up such a projects boggles the mind, which would like nothing better than to go back to bikeshedding.
- x0x0 13y agoand, ideally, a rigorous test suite; for something that is essentially implementing nested state machines, that probably involves an adversarial state machine aware tester (ie get to state 1; attempt to break; get to state 2, attempt to break, etc), a fuzzer, and a serious unit test suite I get that part of this is a community problem, etc, but a lack of the above on a security product is amazing
- deleted 13y ago[deleted]