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.
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).
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
- Deploy Ivanti Pulse Connect Secure in a VM and confirm it is running.
- Power off the VM and attach the disk to an Ubuntu VM to access the filesystem.
- Mount the LUKS-encrypted partitions using the key found in /etc/lvmkey.
- Search the filesystem for REST API endpoints and test them for unauthenticated access.
- Identify the prefix check in the proxy binary that allows path traversal via /api/v1/totp/user-backup-code.
- 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.