AutomationDirect P3-550E Programming Software Connection FileSystem API out-of-bounds write vulnerabilities
The Programming Software Connection FileSystem API of the AutomationDirect P3-550E PLC contains multiple out-of-bounds write vulnerabilities. An attacker can send specially crafted UDP packets to write a null byte to an arbitrary address, potentially causing heap-based memory corruption and a denial of service.
Originally disclosed on Cisco Talos
Several out-of-bounds write vulnerabilities exist in the Programming Software Connection FileSystem API functionality of AutomationDirect P3-550E 1.2.10.9. Specially crafted network packets can lead to heap-based memory corruption.
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 an attacker-controlled length field to index into a buffer and write a null terminator without validating that the index is within bounds.
Impact
An attacker could write a null byte to an arbitrary address, leading to heap-based memory corruption and potentially a denial of service; accurately controlling the overwrite is difficult without an info-leak.
What the attacker needed
Network access to UDP port 9999
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 bugs in a programmable logic controller (PLC), a small industrial computer. The software that handles file operations on the PLC trusts a length value sent over the network and uses it to write a zero byte past the end of a buffer. An attacker on the network can send a crafted message to corrupt memory, which may crash the device or allow further exploitation.
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.