Skip to content
RCE Write-up Advanced

High Signal Detection and Exploitation of Ivanti's Pulse Connect Secure Auth Bypass & RCE (CVE-2023-46805 & CVE-2024-21887)

The authentication bypass in Ivanti Pulse Connect Secure allowed unauthenticated access to REST API endpoints by exploiting a prefix check in the proxy, and a command injection in the license keys-status endpoint allowed remote code execution as root. An attacker could chain these to execute arbitrary commands on the VPN appliance.

Shubham Shah Follow

Published on assetnote.io

Last week, Ivanti disclosed two critical vulnerabilities affecting Ivanti Pulse Connect Secure - CVE-2023-46805 (Authentication Bypass) & CVE-2024-21887 (Remote Command Execution).

Shubham Shah (@infosec_au), Dylan Pindur, on assetnote.io

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 authentication bypass was caused by a prefix check that only compared the start of the URL path, and the command injection was caused by passing unsanitised user input to a shell command with shell=True.

Impact

An unauthenticated attacker could bypass authentication and execute arbitrary commands as root on the VPN appliance, potentially leading to full compromise.

What the attacker needed

Network access to the appliance; No authentication required

The fix

The vulnerabilities were fixed by Ivanti in later versions; the report notes that an interim mitigation blocks access to many endpoints but a full patch is yet to be released.

How it was found

  1. Deploy Ivanti Pulse Connect Secure in a VM and confirm it is running.
  2. Power off the VM and attach the disk to an Ubuntu VM to access the filesystem.
  3. Mount the LUKS-encrypted partitions using the key found in /etc/lvmkey.
  4. Search the filesystem for REST API endpoints and test them for unauthenticated access.
  5. Identify the prefix check in the proxy binary that allows path traversal via /api/v1/totp/user-backup-code.
  6. Find the command injection in /api/v1/license/keys-status/<node_name> and exploit it to execute commands.

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 report describes two bugs in a VPN appliance. The first bug let anyone skip the login step and reach internal web services. The second bug let an attacker run their own commands on the device because user input was passed directly to a shell. Together they allowed full control of the appliance.

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 Shubham Shah

View all

1 more disclosed report, 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.