Skip to content
Info disclosure Advisory Advanced CVE-2021-21777

EIP Stack Group OpENer Ethernet/IP UDP handler information disclosure vulnerability

An integer conversion bug in the Ethernet/IP UDP handler allows a malicious length field to cause an out-of-bounds read, potentially leaking arbitrary memory. The same flaw can also cause a denial-of-service by looping packet processing or amplifying traffic to a spoofed victim.

Martin Zeiser Follow

Originally disclosed on Cisco Talos

High 8.6 View original

An information disclosure vulnerability exists in the Ethernet/IP UDP handler functionality of EIP Stack Group OpENer 2.3 and development commit 8c73bf3. A specially crafted network request can lead to an out-of-bounds read.

Martin Zeiser, on Cisco Talos

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 could read arbitrary memory from the server, cause 100% CPU usage with a single packet, or use a spoofed source address to create a continuous stream of replies to a victim.

What the attacker needed

Network access to the OpENer UDP port; ability to send crafted UDP packets

The fix

The text states that a patch/fix was confirmed by Talos, but does not describe the fix itself.

How it was found

  1. Send a UDP packet to the OpENer server with a length field set to about 0x8000.
  2. The server treats the length as negative and jumps backwards in memory to parse a follow-up request.
  3. If the memory at that location contains a valid opcode and a large size field, the jump repeats further backwards.
  4. If a matching opcode is found, the server sends a reply containing bytes from memory, leaking information.

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.

The software reads a length value from a network packet and uses it to decide where the next packet starts. Because it treats a large number as negative, it can jump backwards in memory and read data that was not part of the packet, potentially exposing sensitive information. The same mistake can also make the program loop forever or send many replies to a fake address.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Martin Zeiser

View all

3 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.