Open Automation Software OAS Platform OAS Engine Save Security Configuration file write vulnerability
The OAS Engine's Save Security Configuration feature allows an authenticated user to specify an arbitrary file path and filename, leading to arbitrary file creation or overwrite. An attacker with valid credentials could overwrite sensitive files, such as the SSH authorized_keys file, to gain system access.
Originally disclosed on Cisco Talos
A file write vulnerability exists in the OAS Engine Save Security Configuration functionality of Open Automation Software OAS Platform V19.00.0057. 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 Save Security Configuration feature accepts a user-supplied file path without restricting it to a safe directory, allowing arbitrary file writes.
Impact
An attacker with valid credentials could overwrite arbitrary files, such as the authorized_keys file, to gain SSH access to the underlying system.
What the attacker needed
Valid OAS Platform credentials; network access to the OAS Engine
The fix
The vendor released a patch on 2024-03-04.
How it was found
- Authenticate to the OAS Platform with valid credentials.
- Send a request to save the Security configuration, specifying the target file path in the String field of a String_With_Auth protobuf.
- The server writes the configuration data to the specified file, overwriting it if it exists.
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 vulnerability lets someone who can log in to the OAS Platform choose any file on the server to overwrite with configuration data. By overwriting a file that controls login access, an attacker could then log in to the underlying system as the OAS 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.