Skip to content
File upload Advisory Intermediate CVE-2024-21870

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.

Jared Rittle Follow

Originally disclosed on Cisco Talos

Medium 4.9 View original

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.

Jared Rittle, on Cisco Talos

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

  1. Send an authenticated request containing a CSV_Import protobuf to set the File Data Source Path and File Name to the target file.
  2. 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.
  3. 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.

More by Jared Rittle

View all

64 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.