EIP Stack Group OpENer SetAttributeList attribute_count_request out-of-bounds write vulnerability
An out-of-bounds write vulnerability exists in the SetAttributeList functionality of OpENer. A specially crafted EtherNet/IP request with a large attribute count can cause the server to crash or potentially allow remote code execution.
Originally disclosed on Cisco Talos
An out-of-bounds write vulnerability exists in the SetAttributeList attributecountrequest functionality of EIP Stack Group OpENer development commit 58ee13c. A specially crafted EtherNet/IP request can lead to an out of bounds write, potentially causing the server to crash or allow for remote code execution.
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 code uses a user-supplied attribute count as a loop bound without validating that the resulting writes stay within the response buffer.
Impact
A remote attacker could crash the server, causing loss of communications, and potentially execute arbitrary code.
What the attacker needed
Network access to the EtherNet/IP server
The fix
The vendor released a patch on 2022-12-14.
How it was found
- Send a SetAttributeList request with an attribute_count_request greater than 0x80.
- The server processes the request and writes attribute data beyond the response buffer.
- The out-of-bounds write corrupts the stack, leading to a crash or potential code execution.
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 report describes a memory corruption bug in a server that speaks EtherNet/IP, a protocol used in industrial control systems. The server fails to check the size of a list of attributes in a request, so a large list causes it to write data past the end of a buffer, which can crash the server or let an attacker run their own code.
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.