Technology1 min read

Freeing the iPod Nano 5G

By · Published by Everything Blog

In short

The project achieves a fully untethered boot chain on firmware version 1.0.2 (34A20020) by extending the earlier font-based "ipod_sun" exploit. Previous methods relied on holding down buttons to enter disk mode and trigger a FreeType vulnerability, but reverse-engineering uncovered a mechanism to skip checks during normal initialization. Writing a device-specific `PRVD` record containing a `FirmwareStatus` value of 2 into the private NAND partition enables the altered font to execute automatically. Initial research utilized the wInd3x DFU exploit, and generating the necessary partition record requires initial on-device code execution.

Key points

  • Writing a `PRVD` record with a `FirmwareStatus` value of 2 forces the bootloader to skip…: Writing a `PRVD` record with a `FirmwareStatus` value of 2 forces the bootloader to skip signature checks on the standard boot path.
  • Generating the required device-bound record requires initial on-device code execution bef…: Generating the required device-bound record requires initial on-device code execution before the untethered boot chain can function independently.
  • This alternative signature bypass also establishes a viable untethered boot method for th…: This alternative signature bypass also establishes a viable untethered boot method for the nano 7G and likely the nano 6G.

Sources checked by our analysis pipeline: 1

A few years ago, CUB3D demonstrated unsigned code execution on the iPod nano 6G and 7G through ipod_sun, a font-based exploit. Whether the same approach would work on the 5G was still an open question.

I wanted to get Rockbox running on the nano 5G, so I set out to adapt the exploit. My motivation was simple: an up-to-date music player without an internet connection. I built a fully untethered boot chain that loads Rockbox from the nano 5G’s NAND, with no computer or button sequence needed after installation. I also found a way to make the existing exploit fully untethered on the nano 7G, and likely the 6G too.

Existing DFU exploits, including q3k’s wInd3x, provide code execution on the nano 5G, but booting custom code this way requires a computer each time. I used wInd3x to explore the device and develop a convenient, fully untethered exploit. The firmware details below refer to the latest nano 5G firmware, 1.0.2 (34A20020)

.

The catch with ipod_sun

The nano 5G’s NAND flash appears through a flash translation layer (FTL) as a…

Technology