(Pwn2Own) ChargePoint Home Flex uploadsm filetype Link Following Local Privilege Escalation Vulnerability
A local privilege escalation flaw in ChargePoint Home Flex EV chargers allows an attacker with low-privileged code execution to create a symbolic link and abuse the uploadsm endpoint's filetype parameter to write arbitrary files. This enables escalation to root and arbitrary code execution.
This vulnerability allows local attackers to escalate privileges on affected installations of ChargePoint Home Flex EV chargers. An attacker must first obtain the ability to execute low-privileged code on the target system in order 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 uploadsm endpoint follows symbolic links when handling the filetype parameter, allowing a low-privileged user to redirect writes to arbitrary locations.
Impact
An attacker could escalate privileges and execute arbitrary code as root.
What the attacker needed
Low-privileged code execution on device
The fix
The vulnerability was fixed in Home Flex firmware version 2024.02.00.259-alpha.
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 local privilege escalation bug in an EV charger. An attacker who already has limited access to the device can trick a file upload feature into writing files anywhere on the system, including places that let them run code as the administrator (root).
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.