Reverse engineering an EV charger
The researchers reverse engineered an EV charger and found that the firmware was not signed or encrypted, allowing them to extract the devicetree and compile a custom bootloader to gain root access. They also identified cloud commands that could execute arbitrary commands or create reverse tunnels, though they did not test these.
mnemonic.io
Published on mnemonic.io
This blog post walks through our efforts reverse engineering the Zaptec Pro charger, an electric vehicle charger found in many parking lots and apartment buildings around Norway.
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 could gain root access to the device, and the cloud commands could potentially allow remote code execution or reverse tunnels, though these were not tested.
What the attacker needed
Physical access to the device; soldering equipment; NAND flash programmer
How it was found
- Connect the charger to Wi-Fi and run a port scan to find an SSH listener.
- Locate an unpopulated 3-pin header on the PCB and solder a header to access UART.
- Desolder the NAND flash chip and dump its contents using a programmer.
- Remove out-of-band data from the dump to obtain a usable firmware image.
- Carve out the devicetree binary from the boot partition.
- Compile a custom U-Boot bootloader with the devicetree, flash it to an SD card, and boot the device to enter single user mode and set a root password.
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.
This is a hardware hacking write-up where researchers took apart an electric vehicle charger to see how it works. They found that the device's software was not protected, so they could modify it to get full control. They also found some remote commands that could be dangerous if misused, but they didn't actually try them.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.