-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
731e711
commit 345a69f
Showing
2 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
let code = ` | ||
const fs = require("fs"), path = require("path"); | ||
let code = fs.readFileSync(path.resolve(__dirname, "./exploit.js")).toString(); // put your exploit in this file | ||
|
||
//YOUR CODE HERE; | ||
console.log("Prototype before:"); | ||
console.log(Object.prototype); | ||
|
||
`; | ||
|
||
|
||
let leak = console.log; | ||
let endows = {leak:leak} | ||
let endows = {leak:()=>{}, stats:{}} | ||
let safeEval = require("safe-eval"); | ||
safeEval("1;" + code, endows); | ||
console.log("Done"); | ||
console.log(Object.prototype.p, {}.polluted, Object.prototype.FEA, Object.prototype.FET, Object.prototype.FIA, Object.prototype.FIT, Object.prototype.CCA, Object.prototype.CCT); | ||
|
||
console.log("Prototype after:"); | ||
console.log(Object.prototype); |
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