Skip to content
File upload Write-up Intermediate

CVE-2023-46263: Ivanti Avalanche Arbitrary File Upload Vulnerability

An authenticated attacker could change the Central FileStore path to a parent folder of the RemoteControl server webroot, then upload a malicious file to that webroot. The RemoteControl server executes Velocity macro code, so the uploaded file could lead to remote code execution as SYSTEM.

zerodayinitiative.com

Published on zerodayinitiative.com

An arbitrary file upload vulnerability has been reported for Ivanti Avalanche. This vulnerability is due to improper input validation in the FileStoreConfig app.

The author, on zerodayinitiative.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The path validation deny list did not block the parent folder of the RemoteControl server webroot, allowing the FileStore path to be set to a location from which uploaded files are executed.

Impact

An authenticated attacker could execute arbitrary commands on the system as SYSTEM.

What the attacker needed

Authenticated access to the web interface

How it was found

  1. Send a request to the FileStoreConfig page to change the FileStore path.
  2. Set the txtUncPath parameter to the parent folder of the RemoteControl server webroot.
  3. Upload a malicious file to the RemoteControlServer\app subfolder.
  4. Access the uploaded file via the RemoteControl server on port 1900 to execute code.

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 write-up has not been written yet. The Original tab links to the source.

The software lets an admin choose where uploaded files are saved. The check on that folder path was incomplete, so an attacker could point it at a folder that the web server runs code from. By uploading a file there, the attacker could run commands on the server with high privileges.

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.

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.