2 ms·
A good reason to use a sandbox for untrusted code is so that you don’t have to vet the code. If it has security holes, the damage is limited to the capabilities
by skybrian 5y ago
A good reason to use a sandbox for untrusted code is so that you don’t have to vet the code. If it has security holes, the damage is limited to the capabilities granted to the plug-in.
The sandbox should make buffer overflows someone else’s problem, or at least an acceptable risk. You seem to be denying one of the most important reasons we have them?
A consequence, though, if the code is genuinely untrusted, is that you have to revalidate any requests after they’re sent to the system outside the sandbox. (Just as we can’t trust client-side validation on the server.) It seems like that would be duplicate work.
(An exception might be when an authenticated user is modifying their own files and you don’t care what they do.)