9.8 CVE-2021-30116

CISA Kev Catalog Local Execution Code Used by Malware Used by Ransomware Exploit
 

Kaseya VSA before 9.5.7 allows credential disclosure, as exploited in the wild in July 2021. By default Kaseya VSA on premise offers a download page where the clients for the installation can be downloaded. The default URL for this page is https://x.x.x.x/dl.asp When an attacker download a client for Windows and installs it, the file KaseyaD.ini is generated (C:Program Files (x86)KaseyaXXXXXXXXXXKaseyaD.ini) which contains an Agent_Guid and AgentPassword This Agent_Guid and AgentPassword can be used to log in on dl.asp (https://x.x.x.x/dl.asp?un=840997037507813&pw=113cc622839a4077a84837485ced6b93e440bf66d44057713cb2f95e503a06d9) This request authenticates the client and returns a sessionId cookie that can be used in subsequent attacks to bypass authentication. Security issues discovered --- * Unauthenticated download page leaks credentials * Credentials of agent software can be used to obtain a sessionId (cookie) that can be used for services not intended for use by agents * dl.asp accepts credentials via a GET request * Access to KaseyaD.ini gives an attacker access to sufficient information to penetrate the Kaseya installation and its clients. Impact --- Via the page /dl.asp enough information can be obtained to give an attacker a sessionId that can be used to execute further (semi-authenticated) attacks against the system.
https://nvd.nist.gov/vuln/detail/CVE-2021-30116

Categories

CWE-522 : Insufficiently Protected Credentials
The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) Use an appropriate security mechanism to protect the credentials. Make appropriate use of cryptography to protect the credentials. Use industry standards to protect the credentials (e.g. LDAP, keystore, etc.). A messaging platform serializes all elements of User/Group objects, making private information available to adversaries Initialization file contains credentials that can be decoded using a "simple string transformation" Python-based RPC framework enables pickle functionality by default, allowing clients to unpickle untrusted data. Programmable Logic Controller (PLC) sends sensitive information in plaintext, including passwords and session tokens. Building Controller uses a protocol that transmits authentication credentials in plaintext. Programmable Logic Controller (PLC) sends password in plaintext. Remote Terminal Unit (RTU) uses a driver that relies on a password stored in plaintext. Web app allows remote attackers to change the passwords of arbitrary users without providing the original password, and possibly perform other unauthorized actions. Web application password change utility doesn't check the original password. product authentication succeeds if user-provided MD5 hash matches the hash in its database; this can be subjected to replay attacks. chain: product generates predictable MD5 hashes using a constant value combined with username, allowing authentication bypass.

References


 

CPE

cpe start end
Configuration 1
cpe:2.3:a:kaseya:vsa_agent:*:*:*:*:*:*:*:* < 9.5.0.24
cpe:2.3:a:kaseya:vsa_server:*:*:*:*:*:*:*:* < 9.5.7a


REMEDIATION




EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
No known exploits

Other Nist (github, ...)

Url
https://www.secpod.com/blog/kaseya-vsa-zero-day-by-revil/


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
102 Session Sidejacking
High
474 Signature Spoofing by Key Theft
High
50 Password Recovery Exploitation
High
509 Kerberoasting
High
551 Modify Existing Service
555 Remote Services with Stolen Credentials
Very High
560 Use of Known Domain Credentials
High
561 Windows Admin Shares with Stolen Credentials
600 Credential Stuffing
High
644 Use of Captured Hashes (Pass The Hash)
High
645 Use of Captured Tickets (Pass The Ticket)
High
652 Use of Known Kerberos Credentials
High
653 Use of Known Operating System Credentials
High


MITRE


Techniques

id description
T1021 Remote Services
T1021.002 Remote Services:SMB/Windows Admin Shares
T1078 Valid Accounts
T1110.004 Brute Force:Credential Stuffing
T1114.002 Email Collection:Remote Email Collection
T1133 External Remote Services
T1543 Create or Modify System Process
T1550.002 Use Alternate Authentication Material:Pass The Hash
T1550.003 Use Alternate Authentication Material:Pass The Ticket
T1552.004 Unsecured Credentials: Private Keys
T1558 Steal or Forge Kerberos Tickets
T1558.003 Steal or Forge Kerberos Tickets:Kerberoasting
© 2022 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.

Mitigations

id description
T1021 Limit the accounts that may use remote services. Limit the permissions for accounts that are at higher risk of compromise; for example, configure SSH so users can only run specific programs.
T1021.002 Deny remote use of local admin credentials to log into systems. Do not allow domain user accounts to be in the local Administrators group multiple systems.
T1078 Applications may send push notifications to verify a login as a form of multi-factor authentication (MFA). Train users to only accept valid push notifications and to report suspicious push notifications.
T1110.004 Proactively reset accounts that are known to be part of breached credentials either immediately, or after detecting bruteforce attempts.
T1114.002 Use of multi-factor authentication for public-facing webmail servers is a recommended best practice to minimize the usefulness of usernames and passwords to adversaries.
T1133 Deny direct remote access to internal systems through the use of network proxies, gateways, and firewalls.
T1543 Limit privileges of user accounts and groups so that only authorized administrators can interact with system-level process changes and service configurations.
T1550.002 Do not allow a domain user to be in the local administrator group on multiple systems.
T1550.003 Do not allow a user to be a local administrator for multiple systems.
T1552.004 Ensure permissions are properly set on folders containing sensitive private keys to prevent unintended access. Additionally, on Cisco devices, set the `nonexportable` flag during RSA key pair generation.
T1558 Limit domain admin account permissions to domain controllers and limited servers. Delegate other admin functions to separate accounts. Limit service accounts to minimal required privileges, including membership in privileged groups such as Domain Administrators.
T1558.003 Limit service accounts to minimal required privileges, including membership in privileged groups such as Domain Administrators.
© 2022 The MITRE Corporation. Esta obra se reproduce y distribuye con el permiso de The MITRE Corporation.