iOS Kernel Heap Armageddon - Hakim

iOS Kernel Heap Armageddon - Hakim iOS Kernel Heap Armageddon - Hakim

28.11.2014 Views

Allocate Attacker Controlled Data • by putting data into a tag we can fill memory with any data • because data is either in base64 or hex format we can have NULs • is more convenient than because it reads in chunks of 4096 ThisIsOurData VGhpcyBJcyBPdXIgRGF0YSB3aXRoIGEgTlVMPgA8+ADw= 00112233445566778899aabbccddeeff ... Stefan Esser • iOS Kernel Heap Armageddon REVISITED • July 2012 • 90

Heap Spraying • allocate repeatedly ✔ • allocate attacker controlled data ✔ • allocate large quantities of data in a row ✔ • usually fill memory with specific pattern ✔ Stefan Esser • iOS Kernel Heap Armageddon REVISITED • July 2012 • 91

Allocate Attacker Controlled Data<br />

• by putting data into a tag we can fill memory with any data<br />

• because data is either in base64 or hex format we can have NULs<br />

• is more convenient than because it reads in chunks of 4096<br />

<br />

<br />

ThisIsOurData<br />

<br />

VGhpcyBJcyBPdXIgRGF0YSB3aXRoIGEgTlVMPgA8+ADw=<br />

00112233445566778899aabbccddeeff<br />

...<br />

<br />

<br />

<br />

Stefan Esser • <strong>iOS</strong> <strong>Kernel</strong> <strong>Heap</strong> <strong>Armageddon</strong> REVISITED • July 2012 •<br />

90

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!