Skip to content
File upload Advisory Advanced CVE-2023-39463

(Pwn2Own) Triangle MicroWorks SCADA Data Gateway Trusted Certification Unrestricted Upload of File Remote Code Execution Vulnerability

The trusted certification feature of Triangle MicroWorks SCADA Data Gateway mishandles the OpcUaSecurityCertificateAuthorityTrustDir variable, allowing an attacker to write arbitrary files with controlled data. This can lead to remote code execution with SYSTEM privileges, though authentication is required and can be bypassed.

Team ECQ Follow

Originally disclosed on Zero Day Initiative

High 7.2 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Triangle MicroWorks SCADA Data Gateway. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

Team ECQ, 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 trusted certification feature fails to properly validate or restrict the path and content of files written via the OpcUaSecurityCertificateAuthorityTrustDir variable, enabling arbitrary file write.

Impact

An attacker could execute arbitrary code with SYSTEM privileges, but authentication is required and can be bypassed.

What the attacker needed

Authentication (bypassable); network access to the product

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 vulnerability in an industrial control system product. An attacker who can bypass authentication can trick the software into writing a file of their choosing to a location on the server. By writing a malicious file, they can then run their own code with high privileges, taking over the system.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

More by Team ECQ

View all

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

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.