(Pwn2Own) Phoenix Contact CHARX SEC-3150 MQTT Service Server-Side Request Forgery Remote Code Execution Vulnerability
The MQTT service on Phoenix Contact CHARX SEC-3150 devices does not properly validate a URI before accessing resources, allowing a network-adjacent attacker to reach internal resources without authentication. This can be combined with other vulnerabilities to execute arbitrary code as the user-app account.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to access internal resources on affected installations of Phoenix Contact CHARX SEC-3150 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 the MQTT service fails to validate or restrict the URI supplied by a client before using it to access resources.
Impact
A network-adjacent, unauthenticated attacker could access internal resources and, in combination with other vulnerabilities, execute arbitrary code as the user-app account.
What the attacker needed
Network-adjacent access; no authentication required
The fix
The vendor fixed the issue 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 runs a small message service (MQTT) that lets other machines talk to it. The service accepts a web address (URI) from the network and fetches it without checking where it points, so an attacker on the same network can make the device contact internal systems it should not reach. That access can then be used with other bugs to run unauthorised code on the device.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.