Skip to content
RCE Write-up Intermediate

Ivantis Wild West Wrangling The Command Injection Bug Cve 2024 21887

A command injection flaw exists in the web components of Ivanti Connect Secure and Policy Secure, allowing an authenticated administrator to execute arbitrary commands on the appliance. The text also describes using Shodan and Nuclei to find vulnerable devices, but does not provide technical details of the injection itself.

Abhishek Kollur Follow

Published on systemweakness.com

In the world of network security, there’s nothing quite like a vulnerability that turns a secure connection into an all-you-can-hack buffet. That’s precisely what CVE-2024–21887 brings to the table — a command injection vulnerability lurking in the web components of Ivanti Connect Secure and Ivanti Policy Secure.

Abhishek Kollur, on systemweakness.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 the web interface fails to properly sanitise user-supplied input before passing it to a system command, allowing command injection.

Impact

An authenticated administrator could execute arbitrary commands on the appliance, and the risk increases if an admin account is compromised or permissions are misused.

What the attacker needed

Authenticated administrator access; network reachability to the appliance

The fix

The text advises patching the systems and keeping a close eye on who has admin access, but does not state that a fix has been applied.

How it was found

  1. Use a Shodan query to find Ivanti Connect Secure or Policy Secure devices.
  2. Run a custom Nuclei template to check which devices are vulnerable.
  3. Use publicly available exploits or custom scripts to simulate an attack in a controlled environment.

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 about a security hole in some corporate network appliances made by Ivanti. Someone who is already logged in as an administrator can send a specially crafted request that makes the device run commands of their choosing, which could let them take over the device. The text also shows how to search for such devices online, but it does not explain the exact technical trick.

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 Abhishek Kollur

View all

20 more disclosed reports, best first.

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.