Skip to content
File upload Advisory Intermediate CVE-2023-32615

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 member Follow

Originally disclosed on Cisco Talos

Medium 6.5 View original

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.

a member, 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

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

  1. Authenticate to the OAS Engine (possibly via an authentication bypass).
  2. Send a request to save the configuration, specifying the target file path in a String protobuf field.
  3. 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.

More by A member

View all

110 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.