Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Computer security is broken, but things are starting to improve. Parent comment
1. Put shell code in a string in some js,
2. get browser to JIT js and thus write the string that contains the shell code to an execute page in memory,
3. exploit a vulnerability and point the instruction pointer to the location of the string which contains the shellcode.
Normally, i.e. outside of a JIT, this wouldn't work because the string would be saved to a non-executable page.
That makes sense. Thanks!
1. Put shell code in a string in some js,
2. get browser to JIT js and thus write the string that contains the shell code to an execute page in memory,
3. exploit a vulnerability and point the instruction pointer to the location of the string which contains the shellcode.
Normally, i.e. outside of a JIT, this wouldn't work because the string would be saved to a non-executable page.