-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRITICAL: Dynamic module uses eval #1728
Comments
Hi, do you have any ideas for other ways to accomplish this functionality? Thanks! Could we swap for https://github.com/silentmatt/expr-eval ? |
image-sequencer/src/modules/Dynamic/Module.js Lines 17 to 22 in 8c461bb
could we swapped for: Also, i think you maybe meant |
Oh yeah sorry, I meant eval. |
I guess there are packages like the one you found. We can switch if it doesn't break anything... What kind of expressions need to be supported though? 🤔 |
It's designed just for simple mathematic expressions to do color channel compositing - so this should be fine! |
Check out #1729! |
Please describe the problem (or idea)
The
dynamic
module uses the javascripteval
function to evaluate expressions. But the exec method should not be used at any cost because it will execute any js code that is entered in the textbox.This is a major security threat to the IS demo and any other projects that use IS.
Please show us where to look
https://beta.sequencer.publiclab.org
What's your PublicLab.org username?
Browser, version, and operating system
Thank you!
Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.
To learn how to write really great issues, which increases the chances they'll be resolved, see:
https://publiclab.org/wiki/developers#Contributing+for+non-coders
The text was updated successfully, but these errors were encountered: