(Pwn2Own) Triangle Microworks SCADA Data Gateway DNP3 GET_FILE_INFO Stack-based Buffer Overflow Remote Code Execution Vulnerability
The SCADA Data Gateway mishandles DNP3 GET_FILE_INFO opcodes, copying user-supplied data into a fixed-length stack buffer without checking its length. A remote, unauthenticated attacker could exploit this to run code as SYSTEM.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Triangle Microworks SCADA Data Gateway. 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
The software copies attacker-controlled data into a fixed-length stack buffer without validating its length first.
Impact
A remote, unauthenticated attacker could execute arbitrary code with SYSTEM privileges on affected installations.
What the attacker needed
Network access to the DNP3 service; no authentication needed
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.
This software speaks a protocol used by industrial control systems. When it receives a particular request asking about files, it copies the incoming data into a small reserved area of memory without first checking how big the data is. Sending too much data overflows that area and lets an attacker take control of the program, running their own code with high privileges.
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.