CVE-2024-2448: Authenticated Command Injection In Progress Kemp LoadMaster
An authenticated command injection vulnerability exists in the LoadMaster admin web interface because a user-supplied argument is stored and later passed to an eval statement in a Bash CGI script. An attacker with any authenticated access could execute arbitrary commands, and a CSRF bypass could force a logged-in admin to do the same.
Published on rhinosecuritylabs.com
This blog covers 2 vulnerabilities discovered in LoadMaster load balancers. CVE-2024-2448 is an authenticated command injection vulnerability and CVE-2024-2449 is a Cross-Site Request Forgery (CSRF) protection bypass vulnerability.
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 stores a user-controlled argument in a file and later extracts it and passes it directly to an eval statement in a Bash CGI script, allowing command injection.
Impact
An attacker with any authenticated access could execute arbitrary commands and fully compromise the LoadMaster, and by chaining with the CSRF bypass, could force a logged-in admin to execute commands.
What the attacker needed
Authenticated access to the admin WUI; any permission level
The fix
The vulnerabilities were fixed by the vendor; administrators should apply the patches.
How it was found
- Authenticate to the LoadMaster admin web interface with any valid account.
- Send a request to the /progs/hg_cfg/add_rs/ endpoint with a base64-encoded argument containing shell metacharacters and a command.
- The argument is stored as SELECTED_RS and later evaluated, executing the injected command.
- Append a redirection to stderr to see the command output in the HTML response.
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 command injection flaw lets an attacker run their own system commands on a server. Here, the LoadMaster admin interface takes a value from the user, saves it, and later runs it as part of a shell command without proper cleaning. Anyone who can log in, even with low permissions, could abuse this to run commands and take over 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.