tiffany352 / rink-rs

Unit conversion tool and library written in rust
https://rinkcalc.app/about
GNU General Public License v3.0
408 stars 28 forks source link

rink for untrusted input #98

Open Kezii opened 3 years ago

Kezii commented 3 years ago

I'm exposing rink over the internet to untrusted users, regarding #88, but in general, is in an objective for rink to become resilient against attacks in the future, or should I avoid doing this?

tiffany352 commented 3 years ago

Yeah, I'd eventually like to re-add built in sandboxing support.

Aside from currently not protecting against time/memory overuse, rink does have a few design goals/non-goals that help with security:

If you run rink in a child process with restrictions on execution time and memory usage, it should be safe against malicious input. If there's any reason it's not, I'll consider that a security bug and fix it.