Skip to content
Access control Advisory Advanced CVE-2024-21785

AutomationDirect P3-550E Telnet Diagnostic Interface leftover debug code vulnerability

The AutomationDirect P3-550E PLC exposes a hidden diagnostic interface over Telnet that can be unlocked through three undocumented methods: a daily key derived from the device's MAC address and date, a hard-coded Modbus RTU key, or a startup script on a USB drive. An attacker could gain access to low-level commands to read and modify memory, change the PLC's run state, and interact with backplane devices.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

A leftover debug code vulnerability exists in the Telnet Diagnostic Interface functionality of AutomationDirect P3-550E 1.2.10.9. A specially crafted series of network requests can lead to unauthorized access.

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 the diagnostic interface is protected by weak, predictable unlock mechanisms (a daily key based on public device information, a hard-coded Modbus key, and automatic execution of a USB file) rather than strong authentication.

Impact

An attacker could gain unauthorised access to a powerful diagnostic interface, allowing them to read and modify arbitrary system memory and files, change the PLC's run status, and interact with other devices on the backplane.

What the attacker needed

Network access to Telnet port; ability to send Modbus RTU messages (for method 2); physical access to insert USB drive (for method 3)

The fix

The vendor released a patch on 2024-05-23, as indicated in the timeline.

How it was found

  1. Connect to the Telnet service and send the command MACBORG to retrieve the device's MAC address and current date.
  2. Use the extracted key generation algorithm to derive the daily password from the MAC address and date.
  3. Submit the derived password over Telnet to unlock the diagnostic interface.
  4. Alternatively, send two Modbus RTU messages with halves of a hard-coded key to enable the diagnostic interface.
  5. Alternatively, place a STARTUP.CLI file on a USB drive and insert it into the PLC to execute commands that enable the interface.

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 hidden maintenance menu on an industrial controller that is normally locked. The researchers found three ways to unlock it without authorisation, such as sending a special command to get the device's MAC address and date, then using that to generate a password. Once unlocked, an attacker could read and change the device's memory and control its operation.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.