-
I'm looking at using this in a Unity game where users can send each other code to be executed on each others machines. I would like to use this as a sandbox for the code execution. Are there major security considerations/known vulnerabilities aside from not using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
So I'd say hostile user code can't format your drive, but it can make the app unresponsive, the worst case. If you have global variable in engine for user's credit card, the script will see it. It's hard to send it out though as there's no APIs to do so (I/O, fetch APIs or such). |
Beta Was this translation helpful? Give feedback.
AllowClr
is the thing that will open can of forms with security, but beware that there are loopholes for making the engine burn CPU even with constraints (and there probably will always be, it's hard to find all the places where to check if things are going sour). Node/Chrome have the same problem, it's not an easy feat to protect from.So I'd say hostile user code can't format your drive, but it can make the app unresponsive, the worst case.
If you have global variable in engine for user's credit card, the script will see it. It's hard to send it out though as there's no APIs to do so (I/O, fetch APIs or such).