Hackers Exploited BillQuick SQL Injection to Deploy Ransomware

Summary
Huntress reported that attackers exploited a SQL injection in BillQuick Web Suite to access a U.S. engineering company and deploy ransomware. The flaw also enabled unauthenticated data access and, in some configurations, remote code execution.
Key points
- Huntress said attackers exploited CVE-2021-42258 in BillQuick Web Suite to gain initial access to a U.S. engineering company and deploy ransomware across its network.
- The flaw was blind SQL injection in the application’s login form, allowing unauthenticated access to database information.
- Huntress demonstrated that the injection could enable remote code execution through SQL Server’s xp_cmdshell, particularly when BillQuick used the SQL Server sa account.
- Huntress reproduced the attack and said it could expose employee permission data and encoded passwords.
- The article identifies BillQuick Web Suite 2021 version 22.0.9.1 as containing code changes addressing the reported vulnerability.
- Huntress said BillQuick application logs may contain failed SQL injection attempts, but successful queries may not be logged, so the logs are not a reliable standalone detection method.
Article Details
- Vulnerability Types
- SQL injection
- Blind SQL injection
- Severity
- Critical
- Affected Versions
- BillQuick Web Suite 2020 (WS2020)
- Exploitation Status
- active
- Exploit Availability
- unknown
- Patch Status
- unknown
- Workarounds
- Block use of the xp_cmdshell extended stored procedure and configure BillQuick Web Suite to use a least-privilege SQL user; Huntress states this prevents remote code execution through that procedure.
MITRE ATT&CK
T1059.001 · PowerShellThe attackers used xp_cmdshell to execute code through powershell.exe on the underlying Windows server.T1190 · Exploit Public-Facing ApplicationAttackers exploited the BillQuick Web Suite login endpoint's SQL injection vulnerability to gain initial access to a victim's environment.
CVE
Vendors
Products
BillQuick Web SuiteThe Huntress ThreatOps team discovered a critical vulnerability in multiple versions of BillQuick Web Suite, a time and billing system from BQE Software. Hackers were able to successfully exploit CVE-2021-42258 - usingMicrosoft SQL ServerAfter scanning is complete, sqlmap will use the injection to fetch the details of the backend SQL database server. In this example, sqlmap correctly identified Microsoft IIS, Microsoft SQL Server 2019 and Windows 2019.Microsoft Windowshackers can use this to access customers’ BillQuick data and run malicious commands on their on-premises Windows servers. We have been in close contact with the BQE team to notify them of this vulnerability, assess the
Tools
PowerShellcommands for re-enabling the xp_cmdshell extended stored procedure and then execute code through powershell.exe. In the above video, we showcase writing to a file on the server host and spawning calc.exe as thesqlmapour partner, we were able to recreate the victim’s environment and validate simple security tools like sqlmap easily obtained sensitive data from the BillQuick server without authentication. Because these versions
