Phoenix Contact CHARX SEC-3100 charx_pack_logs Improper Input Validation Local Privilege Escalation Vulnerability
The charx_pack_logs script on Phoenix Contact CHARX SEC-3100 charging controllers fails to validate a user-supplied path before using it in file operations. A local attacker with low-privileged code execution can exploit this to escalate privileges and run arbitrary code as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of Phoenix Contact CHARX SEC-3100 charging controllers. 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 script fails to validate or sanitise a user-supplied path before using it in file operations, allowing path manipulation that leads to code execution as root.
Impact
An attacker with low-privileged code execution could escalate to root and execute arbitrary code.
What the attacker needed
Local access; ability to execute low-privileged code
The fix
The vendor has issued an update to correct this vulnerability.
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 a script on a charging controller. The script takes a file path from the user but does not check it properly, so someone who already has a low-level account can trick the script into running commands as the all-powerful root user.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.