9 ms·
> Repeat after me: there is no silver bullet! Nonsense. How many buffer overflows - a vulnerability that simply doesn't happen in any modern language - would i
by lmm 11y ago
> Repeat after me: there is no silver bullet!
Nonsense. How many buffer overflows - a vulnerability that simply doesn't happen in any modern language - would it take to convince you that the language is the problem?
> Languages like Ruby have had their host of ridiculous security errors.
Ruby isn't great, but it's not had anything like the same defect rate as C.
> One advantage of legacy code is that it is battle-tested. It's not sexy, it's not clean, but neither is the real world.
Then why do we keep finding these embarrassingly basic flaws in that "battle-tested" code?
- JabavuAdams 11y agoDo you think there are fewer currently unknown bugs in software we have yet to re-write, in languages that are currently untested? Don't make me quote Rumsfeld.
- berdario 11y agoThere're obviously fewer segfaults/memory access vulnerability in software yet-to-be-written in any sane language.
- deleted 11y ago[deleted]
- lmm 11y agoI think rewrites would have fewer bugs, yes. Maybe we know the defect rate more precisely for C than for other languages - but when it's this high, I'd sooner go with the unknown.
- xorcist 11y ago> the language is the problem It was literally weeks after Heartbleed. The screams for modern languages with managed runtimes had barely subsided. Then Tomcat, in common use world wide in the poster boy managed language, had a bug with exactly the same impact. Nobody abandoned Java after that. Just as nobody will abandon C because of this. > Ruby isn't great, but it's not had anything like the same defect rate I would argue it's had much worse, altough the comparison is difficult to make. Rails against Apache perhaps, where Rails has had several problems of this magnitude. I like modern languages as much as the next guy, but I'm very tired of "the language is the problem". Shoving more layers of abstraction in there is not a silver bullet for security. We need to look more at system programming languages.
- lmm 11y ago> It was literally weeks after Heartbleed. The screams for modern languages with managed runtimes had barely subsided. Then Tomcat, in common use world wide in the poster boy managed language, had a bug with exactly the same impact. You're talking about POODLE? Not remotely the same impact. It was a severe vulnerability, but it only leaked plaintext, not key material. > I like modern languages as much as the next guy, but I'm very tired of "the language is the problem". Shoving more layers of abstraction in there is not a silver bullet for security. We need to look more at system programming languages. It's not about adding abstraction. There are plenty of safe systems programming languages. The problem is specifically C.
- xorcist 11y ago> You're talking about POODLE? Why would I? That wasn't Tomcat, and it didn't leak keys. I won't read through the CVE list right now (because it is long, and that's only counting Tomcat and not the JRE itself), but it reused buffers and leaked potentially anything, very much like Heartbleed. If you were in a Java shop at the time you know about it. > It's not about adding abstraction. There are plenty of safe systems programming languages. No true Scotsman, eh? Most people who go about how the world would be saved if we just got rid of C are provably wrong, because popular application in their pet language are just as bad. It used to be Java fanboys, that's why I mentioned Tomcat. Then it was Ruby (and don't get me started on the security disasters Rails brought with it). Most of these do indeed pile abstractions on popular data structures to minimize the possible errors. There are promising languages, but none in popular use, and very far from something you could audit.
- lmm 11y ago> If you were in a Java shop at the time you know about it. False; I was in a Java shop at the time and I don't know about it (though we ran things on Jetty (and later Netty) rather than Tomcat because we felt the code quality was higher).
- rnovak 11y agoIf it was "embarassingly basic", wouldn't it have been found way sooner? not YEARS down the line, even DECADES? Since you mention ruby: https://exchange.xforce.ibmcloud.com/vulnerabilities/89191 https://exchange.xforce.ibmcloud.com/vulnerabilities/89191 What was that about not having buffer overflows in "modern" languages?
- mikeash 11y agoThat Ruby bug is a bug in the C implementation of the language. Surely this bug supports the point that modern languages don't have these problems, since you have to look at the bits written in C to find them. As for "embarrassingly basic," it takes years or decades to find these bugs because we're using tools that hide them. Basic runtime bounds checking would have turned up this bug pretty much immediately. If you use a language where a buffer overflow often causes no runtime error, then of course it's going to be hard to notice when you've made one.