(Pwn2Own) Phoenix Contact CHARX SEC-3100 ClientSession Use-After-Free Remote Code Execution Vulnerability
The CharxControllerAgent service on Phoenix Contact CHARX SEC-3100 devices fails to validate the existence of a ClientSession object before using it, leading to a use-after-free. A network-adjacent attacker without authentication could exploit this to execute arbitrary code in the service's context.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Phoenix Contact CHARX SEC-3100 devices. Authentication is not required 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 a use-after-free caused by missing validation that a ClientSession object still exists before it is dereferenced.
Impact
A network-adjacent, unauthenticated attacker could execute arbitrary code with the privileges of the CharxControllerAgent service.
What the attacker needed
Network-adjacent access; no authentication required
The fix
The vendor issued an update to correct the 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.
A use-after-free happens when a program keeps using a piece of memory after it has been freed, which can let an attacker control what happens next. Here, the device's service mishandles session objects, so someone on the same network could run their own code on the device without logging in.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.