(Pwn2Own) Phoenix Contact CHARX SEC-3150 BackendURL WebSocket Command Injection Remote Code Execution Vulnerability
A command injection flaw in the handling of log files on Phoenix Contact CHARX SEC-3150 devices lets a network-adjacent attacker run arbitrary code as the charx-oa account. Authentication is required, but the text says the existing mechanism can be bypassed.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Phoenix Contact CHARX SEC-3150 devices. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
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 user-supplied input in log file handling is passed to a system call without validation, allowing command injection.
Impact
A network-adjacent attacker could execute arbitrary code on the device in the context of the charx-oa account, though authentication is required and the text claims that mechanism can be bypassed.
What the attacker needed
Network-adjacent access to the device; authentication (bypassable per text)
The fix
It was fixed in firmware v1.9.1.
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 device takes text from a user and passes it to the operating system as a command, without checking what is in it. An attacker who can reach the device on the network can slip in their own commands and make the device run them. The report says a login is needed, but that the login check can be got around.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.