Skip to content
Memory corruption Advisory Advanced CVE-2024-24851

AutomationDirect P3-550E Programming Software Connection FiBurn heap-based buffer overflow vulnerability

A heap-based buffer overflow exists in the Programming Software Connection service of the AutomationDirect P3-550E PLC. An unauthenticated attacker can send a specially crafted UDP packet to crash the device.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

High 7.5 View original

A heap-based buffer overflow vulnerability exists in the Programming Software Connection FiBurn functionality of AutomationDirect P3-550E 1.2.10.9. A specially crafted network packet can lead to a buffer overflow.

Matt Wiseman, 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

Root cause

Likely an integer overflow in the calculation of the allocation size (payload_len + 0x14) combined with an unchecked copy using strncpy, leading to a buffer overflow.

Impact

An unauthenticated attacker could crash the device, causing a denial of service.

What the attacker needed

Network access to UDP port 9999

The fix

The vendor released a patch; the underlying issue should be fixed by validating the payload length before allocation and copy.

How it was found

  1. Send a UDP packet to port 9999 with the IMM field set to 0xD and the second byte set to 0x12.
  2. Include a payload length field at offset 0x10 with a large value that causes payload_len + 0x14 to overflow.
  3. Provide a payload starting at offset 0x14 that is large enough to trigger the overflow during strncpy.

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 is a memory corruption bug in an industrial controller. The device trusts a length value in a network packet and uses it to allocate memory and copy data without checking if the length is too large, which can crash the device.

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.

More by Matt Wiseman

View all

73 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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.