How I hacked my car (2021 Hyundai Ioniq SEL) : Part 2
The firmware update process for Hyundai/Kia infotainment systems used a hardcoded AES test key and a signing key that could be recovered from open-source code, allowing the author to build a custom firmware image with backdoors. After installing it, the author gained root access to the system.
programmingwithstyle.com
Published on programmingwithstyle.com
Note: As of 2022/10/25 the information in this series is slightly outdated. See Part 5 for more up to date information.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker with physical access to the USB port could install a modified firmware and gain root access to the infotainment system, but the attack requires physical access and knowledge of the keys.
What the attacker needed
Physical access to the car's USB port; knowledge of the firmware format and keys; a USB drive
How it was found
- Obtain the firmware update file and the scripts that describe the update format.
- Extract the firmware using the zip password and mount the system image.
- Modify the system image to add a backdoor script.
- Recompute hashes, sign the update configuration, and repackage the update.
- Place the modified update on a USB drive and start the update from the car's settings.
- After reboot, trigger the backdoor via the Engineering Mode or a USB script to gain a shell.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Car infotainment systems run software that can be updated via USB. The update files were protected by encryption and a digital signature, but the keys were weak or publicly known, so someone could create their own update that the car would accept. This let the author install a backdoor and take full control of the system.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.