QUEST KACE Desktop Authority Pre-Auth Remote Code Execution (CVE-2021-44031)
An unauthenticated API endpoint allowed file uploads without authorisation or file type restrictions, and the upload directory had directory listing enabled. An attacker could upload an ASP file and execute arbitrary code on the server.
Published on labs.jumpsec.com
JUMPSEC recently discovered multiple vulnerabilities in Quest KACE Desktop Authority 11.1. This is an endpoint management system that is used widely across the globe and is prevalent within a wide range of organisations.
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 InsertImage.aspx endpoint lacked authentication and file-type validation, and the images directory had directory listing enabled, allowing an attacker to upload and locate an executable ASP file.
Impact
An unauthenticated attacker could achieve remote code execution on the server, potentially leading to full system compromise.
What the attacker needed
Network access to the KACE service; no authentication required
The fix
The vendor provided updates to fix the vulnerabilities, as mentioned in the final thoughts.
How it was found
- Discover the dacomponentui directory with directory listing enabled.
- Identify the InsertImage.aspx endpoint that allows file upload without authentication.
- Upload an ASP file using the InsertImage.aspx endpoint.
- Enumerate the images directory to find the randomly generated GUID folder.
- Access the uploaded ASP file to execute code.
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 flaw in a web application where a file-upload feature could be used without logging in. Because the server did not check who was uploading or what kind of file was uploaded, an attacker could place a malicious script on the server and then run it by visiting its location, taking control of the machine.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.