AutomationDirect P3-550E Programming Software Connection scan_lib.bin library code injection vulnerability
The P3-550E PLC loads a library file (scan_lib.bin) with only a CRC16 check, allowing an attacker to modify it and inject malicious code. This code can execute immediately or when a specific function is called, leading to arbitrary code execution.
Originally disclosed on Cisco Talos
A code injection vulnerability exists in the scanlib.bin functionality of AutomationDirect P3-550E 1.2.10.9. A specially crafted scanlib.bin can lead to arbitrary 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 device verifies the integrity of the scan_lib.bin file only with a CRC16 checksum, which is not a security measure and can be easily recalculated after modification.
Impact
An attacker could execute arbitrary code on the PLC, potentially disrupting or controlling industrial processes.
What the attacker needed
Ability to modify scan_lib.bin on the device
The fix
The vulnerability was fixed in a vendor patch release.
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.
A programmable logic controller (PLC) is an industrial computer that controls machinery. The PLC runs a library file that contains functions for ladder logic, and the only check on this file is a simple checksum (CRC16) that anyone can recalculate. An attacker can replace the file with a malicious version, and the PLC will run the attacker's code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.