Skip to content
Memory corruption Advisory Advanced CVE-2024-24963CVE-2024-24962

AutomationDirect P3-550E Programming Software Connection FileSelect stack-based buffer overflow vulnerability

A stack-based buffer overflow exists in the Programming Software Connection FileSelect functionality of AutomationDirect P3-550E 1.2.10.9. An unauthenticated attacker can send a specially crafted network packet to overflow a stack buffer, potentially leading to remote code execution.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

A stack-based buffer overflow vulnerability exists in the Programming Software Connection FileSelect functionality of AutomationDirect P3-550E 1.2.10.9. A specially crafted network packet can lead to stack-based 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

The code uses strncat to copy an attacker-controlled path into a 0x100-byte stack buffer without validating that the path length does not exceed the buffer size.

Impact

An attacker who submits an appropriately formatted series of requests can overflow the stack buffer, potentially corrupting the return address and gaining remote code execution.

What the attacker needed

Network access to UDP port 9999; no authentication required

The fix

The vendor released a patch on 2024-05-23.

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 an industrial controller. The device runs software that copies a filename provided over the network into a fixed-size buffer without checking its length. If the filename is too long, it overwrites other memory on the stack, which can crash the device or allow an attacker to 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.

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.