Schneider Electric Modicon M580 UMAS REST API readbolarray information disclosure vulnerability
The UMAS REST API endpoint readbolarray on the Modicon M580 controller returns arbitrary program memory blocks when sent a crafted POST request. An unauthenticated attacker could read sensitive project data such as SNMP community strings.
Originally disclosed on Cisco Talos
An exploitable information disclosure vulnerability exists in the UMAS REST API readbolarray functionality of the Schneider Electric Modicon M580 Programmable Automation Controller firmware version SV2.80. A specially crafted HTTP request can cause the device to return blocks of program memory, resulting in the…
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 readbolarray endpoint passes attacker-supplied block, offset and length values straight to the UMAS memory-read function without authentication or bounds checks on which memory is readable.
Impact
An unauthenticated remote attacker could disclose sensitive project information, including SNMP community strings, from the controller's memory.
What the attacker needed
Network access to the controller's web server; no authentication required
How it was found
- Send a GET request to the getplcstatus endpoint to obtain the did and lid signature values.
- Combine did and lid to form the signature.
- Send a POST request to readbolarray with a startVar specifying dataType, block, offset and bitOffset, plus numToRead and the signature.
- Convert the returned decimal array to hex to recover the SNMP community strings.
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 automation controller is an industrial computer that runs factory equipment. This one has a small web service that lets clients ask it for data, and one of those requests lets anyone read chunks of the controller's memory without logging in. That memory holds secrets like the passwords used to manage the device over SNMP, a protocol for monitoring network equipment.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.