Skip to content
File upload Write-up Intermediate

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.

Tom Ellson Follow

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.

tellson, on labs.jumpsec.com

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

  1. Discover the dacomponentui directory with directory listing enabled.
  2. Identify the InsertImage.aspx endpoint that allows file upload without authentication.
  3. Upload an ASP file using the InsertImage.aspx endpoint.
  4. Enumerate the images directory to find the randomly generated GUID folder.
  5. 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.

More by Tom Ellson

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.