(Pwn2Own) Autel MaxiCharger AC Elite Home USB Heap-based Buffer Overflow Arbitrary Code Execution Vulnerability
The charger mishandles custom USB packets by copying user-supplied data into a fixed-length heap buffer without checking its length. A physically present attacker could exploit this to execute arbitrary code on the device.
This vulnerability allows physically present attackers to execute arbitrary code on affected installations of Autel MaxiCharger AC Elite Home EV chargers. Authentication is not required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The code copies user-supplied data from custom USB packets into a fixed-length heap buffer without validating the data's length first.
Impact
A physically present attacker could execute arbitrary code in the context of the device; authentication is not required.
What the attacker needed
Physical access to the USB port
The fix
The vendor fixed the issue in firmware version V1.40.81.
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 report has not been written yet. The Original tab links to the source.
A heap buffer is a small area of memory the program sets aside to hold data. Here the charger copies data from a USB packet into that area without first checking how big the incoming data is, so a larger packet can spill over and overwrite nearby memory. An attacker with physical access to the USB port could use this to run their own code on the charger.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.