Hacker News new | ask | show | jobs
by hmry 16 days ago
I don't really understand the threat model here, how would one "exploit" these issues? It's not like we use Rust as a sandbox (like e.g. JavaScript). If an "attacker" wants to crash the process, they can just write std::process::abort(), or if they want to break memory safety, they can just use an unsafe block.
1 comments

Sophisticated exploits often are a creative chain of prying open cracks that may just have looked like innocent bugs until they were used in the right moment ans right context that made them a very useful piece in a puzzle. The naive view of a buffer overflow was also just "yeah well great they can crash the program but they could get that cheaper". Until somebody had the idea of overwriting return addresses or putting executable code there. It may be hard to say how a bug can be exploited. As long as something says "safe" but suddenly an asterisk pops up, that's the first step down worry lane.