CVE-2024-1212: Unauthenticated Command Injection In Progress Kemp LoadMaster
An unauthenticated command injection existed in the LoadMaster administrator web interface, allowing an attacker to execute commands on the appliance. This could lead to full compromise, including privilege escalation to root.
Published on rhinosecuritylabs.com
While researching the Progress Kemp LoadMaster load balancer we discovered an unauthenticated command injection in the administrator web interface of the appliance. This allowed full compromise of the LoadMaster if you could reach the administrator web user interface (WUI).
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
User-controlled input from the basic authentication header was passed unsanitised to a system() call, enabling command injection.
Impact
Exploiting this vulnerability enables command execution on the LoadMaster if you have access to the administrator web user interface, and it is possible to escalate privileges to root from the default admin user.
What the attacker needed
Access to the administrator web interface
The fix
The vulnerability was fixed in version 7.2.59.2.22338; input should be strictly validated and sanitised before being passed to system functions.
How it was found
- Send a request to the /access endpoint with a path like /access/set?param=enableapi&value=1 to bypass the disabled API and reach the authentication check.
- Include a basic authentication header with a crafted username containing a single quote to break out of the command context.
- Append a semicolon and the desired command to execute arbitrary commands on the server.
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.
A load balancer is a device that distributes network traffic across multiple servers. In this case, the load balancer's web management interface had a flaw where user-supplied login details were passed directly to a system command without proper cleaning. An attacker could craft a special login request that would run their own commands on the device, taking control of it.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.