Skip to content
RCE Write-up Advanced

Riding The Inforail To Exploit Ivanti Avalanche Part 2

The blog post describes three vulnerabilities in Ivanti Avalanche: an insecure deserialization, an arbitrary file read/write via SMB, and a path traversal with authentication bypass. Each could allow an attacker to execute code as SYSTEM.

Piotr Bazydło Follow

Published on zerodayinitiative.com

In my first blog post covering bugs in Ivanti Avalanche, I covered how I reversed the Avalanche custom InfoRail protocol, which allowed me to communicate with multiple services deployed within this product. This allowed me to find multiple vulnerabilities in the popular mobile device management (MDM) tool.

Piotr Bazydło (@chudyPB), 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

Likely multiple root causes: unsafe deserialization of untrusted data, lack of path validation in file operations, and a flag that can be set to bypass authentication.

Impact

An attacker could execute arbitrary code as SYSTEM, read or write arbitrary files, and bypass authentication.

What the attacker needed

Network access to InfoRail protocol; Ability to send InfoRail messages; Attacker-controlled SMB server; Knowledge of InfoRail message format

How it was found

  1. Send an InfoRail message to set the File Store path to an attacker-controlled SMB share.
  2. Send an InfoRail message to set the File Store path to a local directory to read files.
  3. Send an InfoRail message to set the File Store path back to the SMB share, causing files to be copied.
  4. For file write, place a JSP webshell on the SMB share and set the File Store path to the webroot.
  5. Send an InfoRail message to set testFlags to bypass authentication and UUID checks.
  6. Send an HTTP request with a path traversal in the uuid parameter to upload a webshell.

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.

This is a technical write-up about security bugs in a mobile device management product. The author found ways to trick the software into running harmful code, reading or writing files, and bypassing login checks. These flaws could let an attacker take full control of the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Piotr Bazydło

View all

14 more disclosed reports, best first.

More from Ivanti

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.