3 ms·
curl is the sandbox. It exchanges packets with the internet and then outputs a safely sanitized byte stream.
by inigyou 5mo ago
curl is the sandbox. It exchanges packets with the internet and then outputs a safely sanitized byte stream.
- swiftcoder 5mo agocurl is only the sandbox if you don't then do anything with the byte stream. Pipe it to bash? game over Pipe it to less/more? Better hope your distro keeps those patched Open the file in a browser or PDF reader? Hey, look at all this shiny new attack surface!
- layer8 5mo agoHow do you set up the sandbox without having downloaded anything from the internet? I guess there’s still places where you can buy Linux CDs.
- inigyou 5mo agoWell yeah, that's true for any sandbox. If you pipe stuff outside of the sandbox, outside of any sandbox, and run it there, then you're not running it in a sandbox.
- swiftcoder 5mo agoRight, but nobody actually uses curl as the end destination, right? You use it to download something so that you can run another tool on it. And as such, you need to already be sandboxing the tool (since it processes untrusted data you received over the internet).
- inigyou 5mo agoHow would sandboxing curl help with vulnerabilities in your pdf reader?
- swiftcoder 5mo agoObviously, you need to sandbox all tools in the chain that handles untrusted data. This is security 101 stuff
- inigyou 5mo agoDo you sandbox the sandbox? When do you stop?
- niij 5mo agocurl is not anti-virus.