Skip to content
Access control Advisory Intermediate CVE-2022-26082

Open Automation Software Platform Engine SecureTransferFiles file write vulnerability

The OAS Platform's SecureTransferFiles function lacks authentication, allowing an attacker with valid credentials to upload arbitrary files to any location writable by the service user. This can lead to remote code execution, for example by uploading an SSH authorized_keys file.

Jared Rittle Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A file write vulnerability exists in the OAS Engine SecureTransferFiles functionality of Open Automation Software OAS Platform V16.00.0112. A specially-crafted series of network requests can lead to remote code execution.

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 missing authentication on the SecureTransferFiles command, allowing file uploads with only valid credentials but no further authorisation checks.

Impact

An attacker could upload arbitrary files and achieve remote code execution, but only if valid credentials for a user with file transfer permissions are obtained or created.

What the attacker needed

Network access to TCP/58727; Valid credentials for a user with file transfer permissions; Security Group with File Transfer permissions exists

The fix

The vulnerability was fixed in version 16.00.0113; additionally, access to the configuration port should be restricted and the service should run with minimal permissions.

How it was found

  1. Ensure a Security Group with File Transfer permissions and a User Account in that group exist.
  2. Obtain the credentials for that user account, either by sniffing network traffic or by creating them if they do not exist.
  3. Send a SecureTransferFiles command with the credentials and the file to upload to a chosen path.
  4. Upload a new authorized_keys file to the oasuser's .ssh directory.
  5. Use SSH with the corresponding private key to log in as oasuser.

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 is software that helps different industrial systems talk to each other. It has a feature for transferring files, but it does not properly check who is allowed to use it. An attacker who can reach the service and has valid login details can upload any file they want, including one that lets them log in to the machine remotely.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.