Skip to content

Safe to execute user-defined code? #1136

Answered by lahma
rccarlson asked this question in Q&A
Discussion options

You must be logged in to vote

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).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rccarlson
Comment options

@unruledboy
Comment options

@lahma
Comment options

lahma Aug 25, 2023
Collaborator

@unruledboy
Comment options

Answer selected by rccarlson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants