Schneider Electric Modicon M580 Mismatched Firmware Image FTP Upgrade Denial of Service Vulnerability
The FTP firmware upgrade on the Modicon M580 only checks that each uploaded image has a valid header and signature, not that it is the right kind of image. An attacker with the default FTP credentials could upload the main firmware image in place of the web firmware image, causing the controller to enter a recoverable fault state and stop normal execution.
Originally disclosed on Cisco Talos
An exploitable denial of service vulnerability exists in the FTP firmware update functionality of the Schneider Electric Modicon M580 Programmable Automation Controller firmware version SV2.80. A specially crafted firmware image can cause the device to enter a recoverable fault state, resulting in a stoppage of normal…
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 upgrade loader validated only the header and signature of each firmware image and never confirmed that the web image was actually a web image rather than the main image.
Impact
The device enters a recoverable fault state and normal execution stops, though communication with programming tools remains possible; the attacker needs the default FTP credentials.
What the attacker needed
Network access to the device's FTP service; default FTP loader credentials
The fix
The upgrade process should verify that each uploaded image is the correct image for its channel, not just that its header and signature are valid.
How it was found
- Log in to the device's FTP service using the default loader credentials.
- Delete any existing firmware files and directories to avoid state problems.
- Recreate the expected firmware directory structure on the device.
- Upload the firmware files, using the main firmware image in place of the web firmware image.
- Stop the device and send the custom upgrade command to start the firmware upgrade.
- Poll the loader status and send the second upgrade command for the web channel, after which the device enters a recoverable fault state.
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 machinery. Its firmware is the built-in software that makes it work, and it can be updated over FTP, an old file-transfer protocol. Here the device checked that each uploaded file looked genuine but not that it was the correct type of file, so swapping one file for another broke the device until it was recovered.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.