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.
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.
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
- Send an InfoRail message to set the File Store path to an attacker-controlled SMB share.
- Send an InfoRail message to set the File Store path to a local directory to read files.
- Send an InfoRail message to set the File Store path back to the SMB share, causing files to be copied.
- For file write, place a JSP webshell on the SMB share and set the File Store path to the webroot.
- Send an InfoRail message to set testFlags to bypass authentication and UUID checks.
- 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.