DELL KACE K1000 REMOTE CODE EXECUTION - THE STORY OF BUG K1-18652
An unauthenticated endpoint on an old Dell KACE K1000 appliance passed user-supplied parameters into a shell command without escaping, allowing command injection. An attacker could execute arbitrary code on the appliance and potentially on all managed client endpoints.
Published on rcesecurity.com
This is the story of an unauthenticated RCE affecting one of Dropbox’s in scope vendors during last year’s H1-3120 event. It’s one of my more recon-intensive, yet simple, vulnerabilities, and it (probably) helped me to become MVH by the end of the day ;-).
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 older version did not escape shell arguments for the kuid and name parameters before using them in an exec call, allowing command injection.
Impact
An unauthenticated attacker could execute arbitrary code on the appliance and, because it manages endpoints, potentially deploy software to all connected clients.
What the attacker needed
Network access to the appliance; no authentication required
The fix
The vulnerability was silently fixed in version 6.4 SP3 by escaping shell arguments and using basename on the parameters.
How it was found
- Find the unauthenticated crash report endpoint on the appliance.
- Send a request with a crafted kuid parameter containing a shell command.
- Observe that the command executes on the appliance.
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.
The appliance had a web page that ran a system command using input from the visitor without cleaning it first. By putting special characters in that input, an attacker could make the appliance run their own commands. This is called command injection.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.