Skip to content

Instantly share code, notes, and snippets.

@pamelafox
Created July 16, 2014 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pamelafox/279929327eef347f5683 to your computer and use it in GitHub Desktop.
Save pamelafox/279929327eef347f5683 to your computer and use it in GitHub Desktop.
Security test (prompt, open)
var externals;
var localStorage = (function() { return this.localStorage; })();
var prompt = (function() { return this.constructor.prototype.prompt.bind(this); })();
var wopen = (function() { return this.constructor.prototype.open.bind(this); })();
var prompt2 = (function() { return this.prompt.bind(this); })();
var wopen2 = (function() { return this.open.bind(this); })();
localStorage.knowsPass_ID7232115911023911 = "xzz";
println(localStorage.knowsPass_ID7232115911023911);
prompt("What is the password?");
wopen("about:blank", "_top");
prompt2("What is the password?");
wopen2("about:blank", "_top");
println("Go to the Tips & Thanks.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment