Skip to content
Path traversal Advisory Intermediate CVE-2024-25999

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.

Todd Manning Follow

Originally disclosed on Zero Day Initiative

High 7.8 View original

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.

Todd Manning, on the Zero Day Initiative

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.

More by Todd Manning

View all

2 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.