The High-Level Steps of the Exploit
The Kaseya VSA application had an authentication bypass in /dl.asp that allowed an attacker to obtain an authenticated session without a password, and an unrestricted file upload combined with a code injection flaw in userFilterTableRpt.asp allowed execution of uploaded ASP code. An attacker could use these flaws to upload and execute ransomware on the VSA server and push it to managed endpoints.
blog.truesec.com
Published on blog.truesec.com
On July 5, after an initial investigation of affected organizations, Truesec contacted Kaseya and provided a detailed technical write-up of these vulnerabilities along with forensic evidence of exploitation. Kaseya released the patch 9.5.7a (9.5.7.2994) that addresses the security issues on July 11.
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 authentication logic defaulted to a successful login when no password was supplied, and the file upload and code injection flaws allowed arbitrary code execution.
Impact
The attacker could execute arbitrary code on the VSA server and push ransomware to managed endpoints, though the impact was limited to under 60 victims possibly because valid agentGuids were required.
What the attacker needed
Network access to the VSA server; Knowledge of a valid agentGuid or use of the legacy fallback
The fix
The vulnerabilities were fixed in Kaseya VSA patch 9.5.7a (9.5.7.2994).
How it was found
- Send a POST request to /dl.asp with a userAgentGuid parameter to bypass authentication.
- Obtain a valid loadKey by sending a GET request to /done.asp.
- Upload a file named agent.crt (the ransomware) via a multipart POST to /cgi-bin/KUpload.dll, bypassing the CSRF token.
- Upload a file named Screenshot.jpg containing ASP code in the same manner.
- Send a POST request to /userFilterTableRpt.asp with the pageFilterSQLFile argument pointing to the uploaded file to execute the ASP 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 how attackers broke into a software management tool called Kaseya VSA. They found a way to log in without a password, then uploaded files that the server would run as code, letting them install ransomware on many computers. The flaws were chained together to cause widespread damage.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.