Exploitation du Tesla Wall Connector depuis le connecteur de charge - Partie 2 : contournément de l'anti-downgrade
The anti-downgrade check in the Tesla Wall Connector firmware updater could be bypassed by first writing a valid firmware to the passive slot and calling routine 0x201 to update the partition table, then re-erasing that same slot with routine 0xFF00 and writing an old signed firmware without calling 0x201. On reboot the bootloader trusted the partition table and booted the old firmware, allowing the original Pwn2Own exploit chain to run.
Published on synacktiv.com
Rédigé par David Berard - 12/05/2026 - dans Exploit, Reverse-engineering - Téléchargement
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
Root cause
The anti-downgrade ratchet check is only performed in the updater routine 0x201, while the bootloader selects the active slot from the partition table without verifying the ratchet, and routine 0xFF00 can erase a slot after its partition entry has been promoted.
Impact
An attacker with physical access to the charge cable could downgrade the charger to a vulnerable firmware and then use the original exploit chain to obtain a debug shell and pivot into the local network, though Tesla's OTA updates reduce exposure.
What the attacker needed
Physical access to the charge cable; ability to speak Single-Wire CAN; valid signed firmware images
The fix
The vulnerability was fixed in a firmware update; the article also suggests checking the ratchet in the bootloader, invalidating the partition entry when a slot is erased, forcing a reboot after a successful update, or refusing new update sessions after routine 0x201 succeeds.
How it was found
- Open a UDS session and authenticate via Security Access level 5.
- Send a valid, up-to-date firmware to the passive slot and call routine 0x201 to validate it and write the partition table.
- Without rebooting, call routine 0xFF00 again to erase the same physical slot, leaving the partition table unchanged.
- Send an old signed firmware to the now-empty slot.
- Call routine 0x202 to reboot, causing the bootloader to start the old firmware.
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.
The device has two firmware slots and a rule that refuses to install an older version. The rule was only checked in one place, the updater, and the bootloader that actually starts the firmware did not check it. By making the updater mark a slot as the next one to boot, then wiping and refilling that slot with an old signed firmware, the attacker got the device to start the old, vulnerable version.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.