3 ms·
Rust is not secure at all in the sense used here — untrusted, arbitrary user code written in rust is a security threat.
by kaba0 5y ago
Rust is not secure at all in the sense used here — untrusted, arbitrary user code written in rust is a security threat.
- kmeisthax 5y agoMore specifically, unsafe blocks may violate the compiler's security guarantees and procedural macros actually run inside the compiler process at build time. Declarative macros do this too, but they're far too restricted to allow shenanigans. Procmacros can disable Rust's stability guarantees[0]. [0] https://github.com/m-ou-se/nightly-crimes https://github.com/m-ou-se/nightly-crimes
- kaba0 5y agoNah, that’s not what I mean. It is a Turing complete language — if it is used to interpret some other language inside itself, it can’t add anything to that languages’ guarantees automatically. You can write a javascript interpreter in rust that is trivial to exploit and access e.g. the file system or whatever.