Skip to content
SQL injection Write-up Advanced

CVE-2024-29824 Deep Dive: Ivanti EPM SQL Injection Remote Code Execution Vulnerability

A SQL injection in Ivanti EPM's RecordGoodApp function allowed an attacker to execute arbitrary SQL commands, which could lead to remote code execution via xp_cmdshell. The vulnerability was reachable through a web method endpoint, and the researchers demonstrated command execution by running notepad.exe under the SQL Server process.

horizon3.ai

Published on horizon3.ai

Ivanti Endpoint Manager (EPM) is an enterprise endpoint management solution that allows for centralized management of devices within an organization. On May 24, 2024, ZDI and Ivanti released an advisory describing a SQL injection resulting in remote code execution with a CVSS score of 9.8.

The author, on horizon3.ai

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 application used string formatting to insert user-influenced data (goodApp.md5) directly into a SQL query without proper parameterisation, leading to SQL injection.

Impact

An unauthenticated attacker could exploit the SQL injection to execute arbitrary commands on the server, leading to full remote code execution.

What the attacker needed

Network access to the /WSStatusEvents endpoint; No authentication required

How it was found

  1. Locate the RecordGoodApp function in PatchBiz.dll and identify the SQL injection.
  2. Trace calls to RecordGoodApp up to the web-exposed UpdateStatusEvents method.
  3. Find the /WSStatusEvents endpoint hosting the vulnerable web method.
  4. Send a crafted request to the endpoint to trigger the SQL injection.
  5. Use xp_cmdshell to execute commands and achieve remote code execution.

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 a serious security flaw in Ivanti Endpoint Manager, a tool companies use to manage their computers. The flaw let an attacker send a specially crafted request to a web service that the software exposes, and because the software did not properly check the input, the attacker could run database commands that ultimately let them run programs on the server. In simple terms, a mistake in how the software built a database query allowed an outsider to take control of the server.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.