Skip to content
Memory corruption Write-up Advanced

From Pwn2Own Automotive: Taking Over the Autel Maxicharger

The Autel Maxicharger firmware v1.32 had a Bluetooth Low Energy (BLE) charging control function that copied client messages of any length into a fixed-size memory buffer, allowing a remote attacker to overflow the buffer and execute arbitrary code. A second vulnerability was a back door with hard-coded Wi-Fi credentials in the authentication function, which could grant unauthorised access.

zerodayinitiative.com

Published on zerodayinitiative.com

This blog highlights two vulnerabilities that were disclosed by researchers from Synacktiv in the Autel Maxicharger firmware at the Pwn2Own Automotive 2024 event and how Autel responded to and patched these in their latest firmware release.

The author, on zerodayinitiative.com

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

A remote attacker could overflow the receive buffer via a Bluetooth message and take control of the device, and the hard-coded credentials could allow bypassing Wi-Fi authentication; the text notes these bugs were particularly easy to exploit without mitigations.

What the attacker needed

Bluetooth Low Energy range; Firmware v1.32

The fix

The vendor fixed both issues in firmware v1.35 by adding a length check to limit the client message to the buffer size and by completely removing the back door with hard-coded credentials.

How it was found

  1. Extract firmware v1.32 and v1.35 from the Autel charger.
  2. Reverse both binaries using Ghidra.
  3. Compare the two firmware versions using Ghidra's versioning feature on the AppChargingControl function.
  4. Observe that v1.32 copies a client message of any length directly to memory, while v1.35 adds a length check limiting the message to the buffer size (0x3D bytes).
  5. For the second vulnerability, compare the Wi-Fi credential authentication function between v1.32 and v1.35 to see the back door with hard-coded credentials removed in v1.35.

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 report describes two security flaws in an electric vehicle charger. One flaw let an attacker send a specially crafted Bluetooth message that was too long for the memory set aside for it, potentially letting the attacker run their own code on the device. The other flaw was a hidden password built into the software that could let someone bypass Wi-Fi authentication.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.