Skip to content
RCE Advisory Advanced CVE-2024-25997

(Pwn2Own) Phoenix Contact CHARX SEC-3100 OCPP Protocol Improper Log Output Neutralization Remote Code Execution Vulnerability

The device's logging implementation fails to neutralise special characters, allowing network-adjacent attackers to inject malicious content into log files without authentication. This can be chained with other vulnerabilities to execute arbitrary code as root.

Chris Anastasio Follow

Originally disclosed on Zero Day Initiative

This vulnerability allows network-adjacent attackers to injection malicious content into log files on affected installations of Phoenix Contact CHARX SEC-3100 devices. Authentication is not required to exploit this vulnerability.

Chris Anastasio @mufinnnnnnn & Fabius Watson, 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 logging function does not escape or sanitise special characters before writing them to log files, enabling log injection.

Impact

An attacker could inject malicious content into logs and, in conjunction with other vulnerabilities, execute arbitrary code as root.

What the attacker needed

Network-adjacent access; no authentication required; another vulnerability to chain

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.

Log files record events, and if special characters in those logs are not cleaned up, an attacker can sneak in harmful content. Here, an attacker on the same network can write such content into the logs without logging in, and later combine it with another bug to run their own code on the device with the highest privileges.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Chris Anastasio

View all

9 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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.