cadhub icon indicating copy to clipboard operation
cadhub copied to clipboard

python execute security

Open Irev-Dev opened this issue 1 year ago • 4 comments

Python execute has been disabled for the time being.

Since python is a general purpose language getting security right is trick, the way it currently runs it would be possible to grab some aws credentials, as well as other things like crypto mining, the 30s execute limit does help but does not fix the problem.

Much more robust tracing and limits are needed before enabling this feature again.

Irev-Dev avatar Jul 17 '22 02:07 Irev-Dev

Just doing some quick research on how to secure python execution and thought I would leave this here for consideration:

https://github.com/zopefoundation/RestrictedPython

jdegenstein avatar Aug 05 '22 22:08 jdegenstein

Thanks @jdegenstein

Irev-Dev avatar Aug 06 '22 08:08 Irev-Dev

Anything new on that?

42sol-eu avatar Dec 08 '22 20:12 42sol-eu

What about using web assembly? I am certainly not an expert when it comes to web development but it might work for this use case: https://webassembly.org/docs/security/ https://github.com/pyodide/pyodide

notthewave avatar Jan 15 '24 14:01 notthewave