Delta Electronics COMMGR Stack-based Buffer Overflow Remote Code Execution Vulnerability
A stack-based buffer overflow exists in Delta Electronics COMMGR when handling packets from a PLC, due to missing length validation before copying data to a fixed-size buffer. An attacker who first compromises a PLC could exploit this to execute arbitrary code on the COMMGR application.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Delta Electronics COMMGR. An attacker must first obtain the ability to compromise a PLC in order 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
Impact
An attacker who has already compromised a PLC could execute arbitrary code on the system running COMMGR, potentially gaining control of the application.
What the attacker needed
Compromise a PLC first
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.
A buffer overflow happens when a program copies more data into a fixed-size memory space than it can hold, causing the extra data to spill over and potentially overwrite other important memory. Here, the COMMGR software does not check how long the data from a PLC is before copying it, so an attacker who controls a PLC could send too much data and take over the program.
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.