Open Automation Software OAS Platform OAS Engine configuration file write vulnerability
The OAS Engine configuration save feature allows an authenticated user to specify an arbitrary file path and filename, leading to arbitrary file creation or overwrite. An attacker could overwrite files such as the OAS user's authorized_keys to gain system access, especially when combined with an authentication bypass.
A file write vulnerability exists in the OAS Engine configuration functionality of Open Automation Software OAS Platform v18.00.0072. A specially crafted series of network requests can lead to arbitrary file creation or overwrite.
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 application allows user-controlled input to specify the full path and filename for saving configuration data without restricting it to a safe directory.
Impact
An attacker could overwrite arbitrary files, potentially leading to remote code execution or system access, especially when combined with an authentication bypass.
What the attacker needed
Authenticated access (or auth bypass); network access to OAS Engine
The fix
The vulnerability was fixed in version v19, and access to the configuration server should be restricted to authorised hosts.
How it was found
- Authenticate to the OAS Engine (possibly via an authentication bypass).
- Send a request to save the configuration, specifying the target file path in a String protobuf field.
- The configuration data overwrites the target file.
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.
The software lets a user save its configuration to a file, but it does not check where that file is saved. An attacker with a valid account can make it save over important files, like one that controls remote login, and then log in as the system user.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.