(Pwn2Own) Triangle MicroWorks SCADA Data Gateway Event Log Improper Output Neutralization For Logs Arbitrary File Write Vulnerability
The SCADA Data Gateway does not properly neutralise output written to event logs, allowing an attacker to write arbitrary files. An attacker could combine this with other vulnerabilities to execute code as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to write arbitrary files on affected installations of Triangle MicroWorks SCADA Data Gateway. 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-controlled input is written to log files without proper neutralisation, allowing path or content manipulation that leads to arbitrary file write.
Impact
An attacker could write arbitrary files and, in conjunction with other vulnerabilities, execute code as root; authentication is required but can be bypassed.
What the attacker needed
Authentication bypass; 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.
Event logs are records of things that happen in a program. If the program writes attacker-controlled text into a log file without cleaning it, an attacker might be able to control where or what file is written. Here, that could let an attacker write files on the server, and if combined with another bug, run commands as the most powerful user.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.