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

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.

Jared Rittle Follow

Originally disclosed on Cisco Talos

Medium 4.9 View original

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.

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

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

  1. Authenticate to the OAS Platform with valid credentials.
  2. Send a request to save the Security configuration, specifying the target file path in the String field of a String_With_Auth protobuf.
  3. 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.

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.