(Pwn2Own) ChargePoint Home Flex dwnldlogsm tar Command Injection Local Privilege Escalation Vulnerability
A local privilege escalation flaw in the tar function of ChargePoint Home Flex EV chargers allows an attacker with low-privileged code execution to run arbitrary commands as root. The issue stems from improper validation of a user-supplied string before it is used in a system call.
Originally disclosed on Zero Day Initiative
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 tar function passes a user-supplied string to a system call without proper validation, enabling command injection.
Impact
An attacker with low-privileged code execution could escalate to root and execute arbitrary code.
What the attacker needed
Low-privileged code execution on device
The fix
The vulnerability was fixed in 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 electric vehicle charger. An attacker who already has limited access to the device can trick a program that handles tar archives into running commands with the highest permissions, giving them full control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.