News for hackers. Stuff that matters.
Re:Exploitable vulnerabilities found in Kaspersky Anti-Virus by geofft on Tuesday September 22, 2015 @05:36PM (#10261877)
> And second, the constant stream of news about trivial SQL injections, cross-site scripting vulnerabilities and other such things should make it plenty obvious that you can write unsecure code in any language.

Find me an unintended trivial SQL injection or cross-site scripting vulnerability in Rust. Or Elm or Ur/Web, if you prefer more web-oriented languages.

All you have done is demonstrate that there are languages other than C that one should not write in, either. But of course there are. You have not demonstrated that all languages have these problems to the same extent.

It is rather like arguing that since you can get concussions in football, and you can also get concussions in ice hockey, it doesn't really matter what sport you play. While it is technically true that you can get concussions from golf or cross-country running, it takes quite a bit of skill and (un)luck to make it happen.

Re:Exploitable vulnerabilities found in Kaspersky Anti-Virus by tedunangst on Tuesday September 22, 2015 @11:20PM (#10263163)
> Find me an unintended trivial SQL injection or cross-site scripting vulnerability in Rust.

Well, if there's no web support in rust, that's going to be kind of hard. There's no SQL injection "in C" either. For that matter, there aren't any buffer overflows in the C language.

Now, if you meant "in some rando web forum written in rust", I think you'll need to wait a bit. Let's wait until there's a forum with more than a dozen users, then I'll tell you how the developers fucked up.

Re:Exploitable vulnerabilities found in Kaspersky Anti-Virus by Gankro on Wednesday September 23, 2015 @12:36AM (#10263326)
Sadly Rust does little to deal with these higher-level bugs. We give you tools to deal with them (tracking taint with PhantomData), but it's not clear to me that anyone's bothering to actually do that.

e.g. crates.io does no such tracking, but it also just punts the problem completely to our postgres bindings and making sure to build queries separately from their args (and the postgres arg injection does escaping, presumably). But this is no static or novel guarantee. It's just Alex being a great developer and reviewing all the patches.

I wouldn't be floored if crates.io was exploitable.

Actually I know it is; [I've exploited it](https://github.com/rust-lang/crates.io/issues/176).

Rust solves many interesting problems, but it is no panacea for program correctness!