Mar-22-2022, 03:59 AM
(This post was last modified: Mar-22-2022, 03:59 AM by deanhystad.)
You might find this interesting.
https://wiki.python.org/moin/SandboxedPython
The problem, as I see it, is disallowing import. If you can control import you can evaluate Python expressions in a carefully controlled context that eliminates access to all the dangerous parts.
https://wiki.python.org/moin/SandboxedPython
The problem, as I see it, is disallowing import. If you can control import you can evaluate Python expressions in a carefully controlled context that eliminates access to all the dangerous parts.