-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
backendbugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Current the validator checks for potentially dangerous imports by matching strings, however this could pose problems when those libraries are used non-malliciously. Alternatively if the import statement are within a string or a commented part of code then also the execution is denied which is not ideal.
Refer: https://github.com/nafees87n/codebox#code-validation
Validator function: https://github.com/nafees87n/codebox/blob/main/server/lib/valid.js
Metadata
Metadata
Assignees
Labels
backendbugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed