High Signal Detection and Exploitation of Ivanti's Pulse Connect Secure Auth Bypass & RCE
The authentication bypass in Ivanti Pulse Connect Secure allowed unauthenticated access to admin REST APIs, and a command injection in the license keys-status endpoint enabled remote code execution as root. An attacker could chain these to execute arbitrary commands on the VPN gateway.
blog.assetnote.io
Published on blog.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
Likely the authentication check only compared a URL prefix and the command injection arose from unsanitised input passed to a shell command.
Impact
An unauthenticated attacker could execute arbitrary commands as root on the VPN gateway, leading to full compromise.
What the attacker needed
Network access to the VPN appliance; no authentication required
The fix
The text does not state a full fix; an interim mitigation from the vendor blocks access to many endpoints, but a full patch was not yet released.
How it was found
- Deploy Ivanti Pulse Connect Secure in a VM and access the filesystem by modifying the boot arguments to get a shell.
- Extract the LUKS encryption key from /etc/lvmkey and mount the encrypted volumes.
- Search the filesystem for REST API endpoints and test them for unauthenticated access.
- Identify that the /api/v1/totp/user-backup-code endpoint only checks the path prefix, allowing path traversal to other APIs.
- Find the command injection in the /api/v1/license/keys-status endpoint where user input is passed to a shell command.
- Send a crafted request with a reverse shell payload to execute commands as root.
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 flaws in a VPN appliance. The first lets someone skip the login check by crafting a special web address, and the second lets them run their own commands on the device because a part of the address is passed directly to a system command without cleaning. Together, an attacker could take full control of the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.