OpenPLC OpenPLC_v3 OpenPLC Runtime EtherNet/IP parser invalid pointer dereference vulnerabilities
The OpenPLC EtherNet/IP parser incorrectly casts pointers to 32-bit integers in memmove calls, truncating addresses on 64-bit systems. An attacker can send a crafted PCCC request to cause a segmentation fault and crash the server.
Originally disclosed on Cisco Talos
Multiple invalid pointer dereference vulnerabilities exist in the OpenPLC Runtime EtherNet/IP parser functionality of OpenPLCv3 16bf8bac1a36d95b73e7b8722d0edb8b9c5bb56a. A specially crafted EtherNet/IP request can lead to denial of service.
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 code casts a pointer to a 32-bit unsigned integer before passing it to memmove, truncating the address on 64-bit systems and causing an invalid dereference.
Impact
An attacker can send a series of EtherNet/IP requests to crash the OpenPLC server, causing denial of service.
What the attacker needed
Network access to EtherNet/IP port
The fix
The issue was fixed in a vendor patch; if patching is not possible, remove the three pointer casts in the memmove calls.
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.
OpenPLC is a software controller for industrial automation. A bug in how it handles a specific network message causes it to use a wrong memory address, which crashes the program. An attacker can send such a message to take the service down.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.