Difference between revisions of "ARM7 Go"

From The iPhone Wiki
Jump to: navigation, search
(Exploit)
(How to use)
Line 21: Line 21:
 
* Upload payload you wish to execute.
 
* Upload payload you wish to execute.
 
* Run arm7_go command to execute payload.
 
* Run arm7_go command to execute payload.
* Run arm7_stop to stop arm7 processor.
+
* Run arm7_stop to stop ARM7, needed if you plan on sending anything else to 0x09000000
   
 
[[Category:Exploits]]
 
[[Category:Exploits]]

Revision as of 13:52, 7 August 2009

This vulnerability is present in 2.1.1 iPod Touch 2G devices, as well as the iBEC / iBSS if you choose to upload it via DFU. It allows the running of unsigned code on the iPod Touch 2G device's ARM7 coprocessor.

This exploit is specifically for the iPod touch 2G

Credit

chronic and iPhone Dev Team (independently)

Exploit

There is an ARM7 coprocessor in the iPod Touch 2G in addition to the main processor, the ARM11. Like the ADM in the S5L8900 devices, it has access to everything the ARM11 has access to, such as the AES engine, the PKE accelorator, and such. The actual vulnerability is that, in the iPod Touch 2G 2.1.1 firmware, they left behind two commands from what was presumably a debug iBoot: arm7_stop and arm7_go. They were promptly removed in 2.2, but in 2.1.1 it would read the enviromental variable "loadaddr" and have the ARM7 coprocessor execute whatever code was at that address. There was no signature or range checks in place for the command.

Payload

The command gives the ARM7 the load address (default is 0x09000000) of an "image" you sent it, and it will jump to it. The limitation is, unlike the diags exploit you cannot just pass a patched iBoot or iBEC. You must write a payload for it to run, but one that patches iBEC or iBoot in memory would do fine.

Implementations

Two released payloads are RedSn0w and 0wnboot

How to use

  • Enter device in DFU mode.
  • Upload iBSS 2.1.1.
  • Unplug and then replug the device.
  • Upload payload you wish to execute.
  • Run arm7_go command to execute payload.
  • Run arm7_stop to stop ARM7, needed if you plan on sending anything else to 0x09000000