Open Automation Software OAS Platform OAS Engine Tags Configuration file write vulnerability
An authenticated user can set a file data source path and filename, then configure a tag to use that file, causing the OAS Engine to create or overwrite arbitrary .bin, .txt, or .xml files. This allows an attacker to write files anywhere the service has permission.
Originally disclosed on Cisco Talos
A file write vulnerability exists in the OAS Engine Tags 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
Likely the application fails to validate or restrict the file path and name supplied in the File Data Source configuration, allowing external control of the file path.
What the attacker needed
Authenticated access to OAS Engine
The fix
The vulnerability was fixed by the vendor in a patch release.
How it was found
- Send an authenticated request containing a CSV_Import protobuf to set the File Data Source Path and File Name to the target file.
- Send an authenticated request containing a Config_SetProperties protobuf to configure a Tag to use the File data source with Binary, Text, or XML storage type.
- The OAS Engine creates or overwrites the specified file with the tag's data.
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 OAS Platform lets users configure where tag data is stored. Because it does not check the file path, a logged-in user can point it to any file on the system and overwrite it. This could let an attacker replace important files.
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.