(Pwn2Own) Autel MaxiCharger AC Elite Home WebSockets Integer Underflow Remote Code Execution Vulnerability
The charger's OCPP WebSocket service fails to validate user-supplied data, causing an integer underflow before a buffer is allocated. An unauthenticated remote attacker could exploit this to execute arbitrary code on the device.
This vulnerability allows remote 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
Likely the OCPP WebSocket message handler uses an unchecked length or count from the message in a subtraction that underflows before a buffer allocation.
Impact
An unauthenticated remote attacker could execute arbitrary code in the context of the device.
What the attacker needed
Network access to the OCPP WebSocket service; no authentication required
The fix
It was fixed 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.
This is a memory-safety bug in the software that handles messages sent over a network connection to an electric vehicle charger. The program trusts a number in the message without checking it, so the number wraps around to a huge value when it is used to reserve memory, and that can let an attacker run their own code on the device. No login is needed to send such a message.
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.