Losing control over Schneider's EcoStruxure Control Expert
The Service Oriented Device Bus (SE.SODB.Host.exe) in Schneider Electric's EcoStruxure Control Expert exposes unauthenticated web services on port 19980, including a file upload endpoint that lacks filename validation, allowing path traversal. An attacker could create arbitrary files on the victim's file system with NT/AUTHORITY privileges, potentially leading to remote code execution.
April 11, 2023
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The file upload handler does not validate the filename parameter before combining it with a temporary path, allowing directory traversal.
Impact
An attacker could create arbitrary files on the victim's file system with high privileges, potentially leading to remote code execution; however, the service is not exposed by default and Schneider's mitigation restricts it to localhost, limiting remote exploitation.
What the attacker needed
Service reachable (e.g., via DNS rebinding or exposed port); no authentication required
How it was found
- Send a POST request to the SimpleHealthAgent Health endpoint to obtain a valid token.
- Use the token to send a POST request to the Zip/{Token} endpoint with a malicious filename containing path traversal sequences.
- The file is written to an arbitrary location on the file system.
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 write-up has not been written yet. The Original tab links to the source.
This report describes a flaw in industrial control software. The software runs a small web server that accepts file uploads without checking the file name properly. An attacker can trick it into saving a file anywhere on the computer, which could let them run their own code.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.