How does this JavaScript hack your iPhone?
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
A deep technical walkthrough of the Karuna iOS spyware's stage-one JavaScript exploit targeting Safari on iOS 14–15.2. The analysis covers deobfuscation techniques (XOR integer hiding, encoded string arrays, base64 functions), identification of CVE-2021-30952 as the core JIT compiler bug, and the heap-shaping strategy used to achieve an out-of-bounds array read. The exploit trains the JIT compiler with 1 million iterations using INT32_MIN and near-INT32_MAX indices to trigger a flawed compiled version of the trigger function, then leverages the resulting out-of-bounds primitive to leak a JavaScript object's memory address — the classic 'addrof' primitive used as a foundation for full memory read/write and eventual code execution.
Sort: