2023-01-08 15:26:05 +00:00
id : CVE-2022-29153
info :
2023-04-07 16:29:37 +00:00
name : HashiCorp Consul/Consul Enterprise - Server-Side Request Forgery
2023-01-08 15:26:05 +00:00
author : c-sh0
severity : high
2023-01-08 15:43:00 +00:00
description : |
2023-04-07 16:29:37 +00:00
HashiCorp Consul and Consul Enterprise up to 1.9.16, 1.10.9, and 1.11 are susceptible to server-side request forgery. When redirects are returned by HTTP health check endpoints, Consul follows these HTTP redirects by default. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to send crafted requests to internal resources, leading to unauthorized access or information disclosure.
2023-09-06 11:59:08 +00:00
remediation : 1 ) HTTP + interval health check configuration provides a disable_redirects option to prohibit this behavior. 2) Fixed in 1.9.17, 1.10.10, and 1.11.5.
2023-01-08 15:26:05 +00:00
reference :
- https://discuss.hashicorp.com/t/hcsec-2022-10-consul-s-http-health-check-may-allow-server-side-request-forgery/38393
- https://github.com/hashicorp/consul/pull/12685
- https://developer.hashicorp.com/consul/docs/discovery/checks
2023-01-08 15:43:00 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-29153
2023-07-15 16:29:17 +00:00
- https://discuss.hashicorp.com
2023-01-08 15:26:05 +00:00
classification :
2023-01-10 12:47:52 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
cvss-score : 7.5
2023-01-08 15:26:05 +00:00
cve-id : CVE-2022-29153
2023-01-10 12:47:52 +00:00
cwe-id : CWE-918
2024-03-23 09:28:19 +00:00
epss-score : 0.02376
2024-06-07 10:04:29 +00:00
epss-percentile : 0.89839
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:hashicorp:consul:*:*:*:*:-:*:*:*
2023-01-08 15:43:00 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 2
2023-07-15 16:29:17 +00:00
vendor : hashicorp
product : consul
2024-06-07 10:04:29 +00:00
shodan-query :
- title:"Consul by HashiCorp"
- 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-07-02 10:21:33 +00:00
tags : cve,cve2022,consul,hashicorp,ssrf,intrusive
2023-01-08 15:26:05 +00:00
2023-04-27 04:28:59 +00:00
http :
2023-01-08 15:26:05 +00:00
- raw :
2023-07-02 10:21:33 +00:00
- | # register safe test node
2023-01-08 15:43:00 +00:00
PUT /v1/agent/check/register HTTP/1.1
2023-01-08 15:26:05 +00:00
Host : {{Hostname}}
Content-Type : application/json
2023-07-02 10:27:35 +00:00
{"id" : "{{randstr}}" , "name" : "TEST NODE" , "method" : "GET" , "http" : "http://example.com" , "interval" : "10s" , "timeout" : "1s" , "disable_redirects" : true }
2023-07-02 10:22:39 +00:00
- | # deregister test node
PUT /v1/agent/check/deregister/{{randstr}} HTTP/1.1
Host : {{Hostname}}
Content-Type : application/json
2023-01-08 15:26:05 +00:00
matchers-condition : and
matchers :
- type : word
part : body
words :
2023-01-08 15:43:00 +00:00
- unknown field "disable_redirects"
- type : status
status :
2023-07-15 16:29:17 +00:00
- 400
2024-06-08 16:02:17 +00:00
# digest: 4a0a00473045022100bb32c3bf98b557717dbf468ff1f2e419a142ec0684d7827cec4e3211ff8c9f06022067d21429a6cefdba2eb1b4f236ac351262ab0ecc15e321634a6f2819b8478bc7:922c64590222798bb761d5b6d8e72950