Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 5y ago · link · parent

I don't really know why you're asking this, but there are many.

comment 5y ago · link · parent

I'm knowledgeable on C and Rust and security and it sounds like a red herring to me.

It's unclear what they're trying to say, but a charitable interpretation would be that C code assumes unsafety, therefor mitigations are in place. But it's actually the opposite situation - rustc is generally quite aggressive about turning mitigations on, and adopts them very quickly.

comment 5y ago · link · parent

Thanks, I appreciate the context here although I didn't actually ask that question.

comment 5y ago · link · parent

JSON is just a straightforward example because it's easy to understand how it falls into Chromium's threat model. Feel free to replace it with font parsing, audio/video codecs, etc, and you'll find thousands of relevant vulns.

comment 5y ago · link · parent

> But replacing small isolated components is not a very interesting option.

I seriously disagree. Again, I mentioned things like JSON parsing which deal with untrusted data but also are too performance sensitive to move OOP. Chromium's own security guidelines explicitly states that you should never mix memory unsafe code with inprocess code with untrusted input.

I strongly believe you'd get significant returns by incrementally replacing components like that with Rust.

> Every single decision on what language to use for a component in becomes a hard to reverse

This is purely an organizational issue in my opinion. If the decision were made to follow the guidelines their security team has laid out, there is no question or slow-down. The guidelines are very competent and clear; memory unsafe, untrusted input, in-process - pick one at most.

comment 5y ago · link · parent

Replacing small components like a single codec or parser wouldn't require anywhere near what Google is asking for in that document. I'm not saying to replace V8 with Rust.

> but now you've lost the memory safety advantages of rust

No you haven't.

comment 5y ago · link · parent

Oh, I totally disagree with you. I'm well aware of how Chromium's C++ code works, and I'm aware of oilpan, I don't think it's fair at all to say it solves memory safety issues.

Proof's in the pudding. ITW exploits are there.

comment 5y ago · link · parent

Yeah they've been evaluating it for years, and then I read that document and it frankly felt like a poison pill. Reading that document it sounds very much like it's "how do we keep writing C++ while addressing the growing interest in rust".

comment 5y ago · link · parent

> For system-level folks, Rust is one of the most exciting security developments of the past few decades. It elegantly solves problems which smart people were saying could not be solved. Fuchsia has a lot of code, and we made sure that much of it (millions of LoC) was in Rust.

> Our kernel, Zircon, is not in Rust. Not yet anyway. But it is in a nice, lean subset of C++ which I consider a vast improvement over C.

A few thoughts on this.

1. Why is it that Chrome hasn't had more Rust adoption? It's so obvious - Chrome constantly has to make the tradeoff of security vs performance with regards to things like parsing in sandboxed code. There's so much potential - Firefox started with the obvious place, encoding and decoding, which are too dangerous for C/C++ but too performance sensitive for OOP.

Feels like it's gotta be organizational, and somehow Fuschia has managed to break off from the part of Google that's still clutching to C++.

2. I'd be interested in hearing more about the design of Fuschia. Rust in userland is cool, or kernel modules too, but a memory unsafe kernel is an unfortunate thing. Even just the teaser of "not yet at least" is changing my view on the OS (I find the idea of another memory unsafe kernel/userland more depressing than exciting, even if there are neat things like capabilities).

3. Also curious to hear about their experience with a strict subset of C++. Again, looking at Chrome, we now see common ITW exploits - and Chrome is perhaps the single most fuzzed piece of software in the world, and leverages many modern C++ techniques (or the Google equivalent of them).

As for the rest, verified execution seems interesting - is this like what iOS does, where it's basically impossible to RWX (except with an escape hatch for JITs, but behind a permission boundary)?

TBH if Google pivots Fuschia to do something interesting like bottom-up memory safety with novel isolation mechanisms, I'll bite. Until then, I'll wallow in this awful pit we continue to dig ourselves into.

comment 5y ago · link · parent

Yeah I'd recommend you open up with information like that in the future, just right off the bat. It's a lot more interesting and at least somewhat useful.

comment 5y ago · link · parent

I'm not planning to take metformin but it was discovered a century ago and has been in use for half that time. A quick look shows me that it's the 4th most prescribed medication in the US. I find it hard to understand how this would not satisfy "years and years of widespread clinical practice", at least with regards to understanding negative implications.

But as you said, you can do your own research, so I'll leave things where they stand. You just sound more like someone who's annoyed by pop-science more than someone who actually has strong opinions about the article or Metformin.

comment 5y ago · link · parent

That seems like a silly standard, but do you.

comment 5y ago · link · parent

What would you consider satisfying evidence?

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5839379/ https://pubmed.ncbi.nlm.nih.gov/31405774/ https://pubmed.ncbi.nlm.nih.gov/31954752/ https://ncbi.nlm.nih.gov/pmc/articles/PMC4287273/

comment 5y ago · link · parent

If the client device has a TPM or some sort of hardware that can manage the secret you can leverage that. Otherwise, protecting against "attacker has a valid session" is not very easy. Even in the TPM case attackers with code execution on the device can likely bypass it.

comment 5y ago · link · parent

I don't know the answer to this, but great whites are massive and definitely you could 'fit' a human in one just from a volume perspective. Whether you could fit into its mouth/throat, I don't know.

comment 5y ago · link · parent

Something important to keep in mind is that Slack has a lot of not so great defaults. Go check your settings - infinite sessions, infinite channel retention, etc.

comment 5y ago · link · parent

Slack has an audit trail for some accesses, at the least, so EA could have done the GEOIP on their side.

comment 5y ago · link · parent

Oh well, was worth a shot.

comment 5y ago · link · parent

Thanks, this was much more interesting to read, and educational for someone with a software background, which I think kind of goes to show that discussing analogs is actually a reasonable way to approach the unknown :)

comment 5y ago · link · parent

Oh sure, yeah I mean it's all in good fun. I wouldn't try to actually establish any serious thought other than "this is wild".

comment 5y ago · link · parent

FWIW all of these differences still feel extremely surface level. I'm no expert but I certainly am, so far, aware of everything you've said with regards to how they differ - I'm kinda hoping for more, given the strong assertion you made that one can not relate the two without being fundamentally ignorant of either topic.

I also think it's somewhat ironic that you're accusing them of only being here to say "you're wrong" but that's what you've done in this thread? I only bring this up because I think we're all after the same thing here - to understand an incredibly interesting topic.

I suspect most of us are really here to learn and discuss. You seem like you have a background in the area, I'm sure we would all benefit from learning about the differences.

If it's the case that the similar is that DNA and code both encode information, and the differences are based on how they do so, it's hard to see why you think they can't be related at all. You've been relating the two.

comment 5y ago · link · parent

I'm not sure what it is you think I'm trying to say, but much of your point seems to be "don't talk about things you don't understand", which I have no interest in abiding. I like talking about things I don't understand, and I've enjoyed the posts from you and others on the topic, even if I'll only ever be a layman.

comment 5y ago · link · parent

I imagine that most businesses have bigger risks to deal with than this, especially in early to mid stages (where Stripe seems to target).

comment 5y ago · link · parent

Gusto files your taxes for you.

comment 5y ago · link · parent

I can only use the models that I have, accurate or otherwise. I hope I'm not confusing others, I'm not pretending to be an expert in DNA.

> Both a computer program and a genome encode information, but that's about where the similarities end.

FWIW this is a very significant similarity to me.

comment 5y ago · link · parent

The article sites several instances.

comment 5y ago · link · parent

It's almost unbelievable how DNA seems to "just work". DNA from one organism breaking apart and slipping into another somehow leads to shared expressions across horizontal species - it's absurd.

It's like taking a random byte sequence from some binary, shoving it randomly into another, and the new binary gets useful new features.

The involvement of even more complex systems like parasites makes it that much more insane to me.

comment 5y ago · link · parent

It was a meaningful distinction to the OP...

While TOTP contains a bypass (phishing) SMS contains an additional vulnerability.

1
929394
164