Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
CVE-2026-34040-PoC — Riproduzione in laboratorio di CVE-2026-34040: bypassa i plugin AuthZ di Docker/Moby utilizzando corpi di richiesta di dimensioni eccessive (>1 MB) per creare contenitori privilegiati con accesso all'host. | Kitploit
Strumenti/GitHubGitHub/m0nk3ygod/cve-2026-34040-poc
Sicurezza dell'Infrastruttura CloudSicurezza dei ContenitoriAnalisi delle VulnerabilitàExploitApprendimento e FormazioneLab e Pratica
GitHubm0nk3ygod/cve-2026-34040-poc

CVE-2026-34040-PoC

Riproduzione in laboratorio di CVE-2026-34040: bypassa i plugin AuthZ di Docker/Moby utilizzando corpi di richiesta di dimensioni eccessive (>1 MB) per creare contenitori privilegiati con accesso all'host.

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Vedi Repository
53 mesi faNon ancora revisionato
Condividi

CVE-2026-34040 — Docker/Moby AuthZ Plugin Bypass (Lab PoC)

KO: Un progetto di riproduzione pratica di una vulnerabilità che bypassa il plugin di autorizzazione (AuthZ) di Docker/Moby utilizzando un corpo della richiesta superiore a 1MB. EN: A lab reproduction of a vulnerability that bypasses Docker (Moby) authorization (AuthZ) plugins using an oversized (>1MB) request body.

Vulnerability facts / 취약점 사실

ItemValue
CVECVE-2026-34040
CVSS 3.18.8 (High) — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CWECWE-288 (Authentication Bypass Using an Alternate Path or Channel), CWE-863 (Incorrect Authorization)
Affectedmoby/moby < 29.3.1, docker/docker < 29.3.1, moby/moby/v2 < 2.0.0-beta.8
Fixed in29.3.1, 2.0.0-beta.8
Root causeIncomplete fix for CVE-2024-41110
Patch commitmoby/moby@e89edb1

KO: Il vettore CVSS ufficiale è AV:L (Locale). Lo scenario valutato è un utente con privilegi bassi che ha accesso locale all'API Docker (tipicamente /var/run/docker.sock). Anche questo PoC utilizza solo il socket UNIX locale. EN: The official CVSS vector is AV:L (Local). The rated scenario is a low-privileged user with local Docker API access (typically /var/run/docker.sock). This PoC uses the local UNIX socket only.

What this demonstrates / Cosa dimostra

KO:

  1. Una richiesta di creazione di un container privilegiato di dimensioni normali viene bloccata dal plugin AuthZ (HTTP 403).
  2. La stessa richiesta con padding superiore a 1MB bypassa il controllo AuthZ.
  3. La richiesta bypassata raggiunge il demone Docker e crea un container privilegiato.
  4. Con la combinazione privilegiato + bind mount dell'host, è possibile dimostrare la lettura di file dell'host e l'esecuzione di comandi sull'host.

EN:

  1. A normal-sized privileged container-create request is blocked by the AuthZ plugin (HTTP 403).
  2. The same request padded beyond 1MB bypasses the AuthZ check.
  3. The bypassed request reaches the Docker daemon and creates a privileged container.
  4. With privileged + host bind mount, host file read and host command execution can be demonstrated.

KO: Questa CVE di per sé non legge /etc/shadow né esegue RCE direttamente. La vulnerabilità consiste nel bypass di una richiesta API Docker che AuthZ dovrebbe bloccare; i passaggi successivi (lettura file, chroot, esecuzione comandi) sono demo dell'impatto che abusano di funzionalità normali di Docker/Linux. EN: The CVE itself does not read /etc/shadow or perform RCE directly. The vulnerability is the bypass of a Docker API request that AuthZ should block; the later steps (file read, chroot, command execution) are impact demos that abuse normal Docker/Linux features.

Repository structure / 저장소 구조

root@kitploit:~
.
├── README.md
├── poc.py                  # Working PoC (local UNIX socket only)
├── requirements.txt        # Python standard library only
├── LICENSE
├── lab/
│   ├── authz.rego          # OPA policy: blocks privileged + host-root bind
│   └── daemon.json         # Registers the AuthZ plugin
└── docs/
    ├── concepts.md         # 개념 / Concepts
    ├── lab-setup.md        # 환경 구성 / Lab setup
    ├── how-it-works.md     # 동작 원리 / How it works (source-level)
    ├── usage.md            # 사용법 / Usage
    ├── troubleshooting.md  # 문제 해결 / Troubleshooting
    └── references.md       # 참고 / References

Prerequisites / 전제조건

KO: Affinché questo PoC sia significativo, tutte le seguenti condizioni sono necessarie. EN: All of the following are required for this PoC to be meaningful.

ConditionRequiredReason
Local Docker API access (/var/run/docker.sock)YesThe PoC sends requests to the socket
AuthZ plugin enabled with a body-inspecting policyYesThe bypass target is the AuthZ check
Docker/Moby < 29.3.1YesPatched versions reject oversized bodies
alpine image present locallyRecommendedOtherwise create returns 404 No such image

Quick start / 빠른 시작

root@kitploit:~
# 1) Pull the image used by the PoC
sudo docker pull alpine

# 2) Run the non-destructive bypass check
sudo python3 poc.py --mode check

Expected on a vulnerable target / 취약 대상에서의 기대 결과:

root@kitploit:~
small request     -> HTTP 403   (AuthZ blocks)
oversized request -> HTTP 201 or HTTP 404   (AuthZ bypassed; daemon processed it)

KO: Un 404 No such image è comunque prova del bypass — significa che la richiesta ha superato AuthZ (non 403) ed è arrivata alla fase di ricerca dell'immagine del demone. Per evitare confusione in una demo, esegui il pull di alpine in anticipo. EN: A 404 No such image is still evidence of bypass — the request passed AuthZ (not 403) and reached the daemon's image lookup. Pull alpine beforehand to avoid confusion in a demo.

Vedi docs/usage.md per l'uso completo. / See docs/usage.md for full usage.

Lab-only warning / 실습 전용 경고

KO: Utilizza solo in un ambiente di laboratorio isolato di tua proprietà o per il quale hai esplicitamente ricevuto autorizzazione. Non eseguire contro API Docker remote, server di terze parti, ambienti di produzione o endpoint Docker esposti a Internet. Le modalità demo d'impatto (rce-proof, host-command, reverse-shell-local) richiedono un flag di conferma esplicito. EN: Use only in an isolated lab you own or are explicitly authorized to test. Do not run against remote Docker APIs, third-party servers, production, or internet-exposed Docker endpoints. The impact-demo modes (rce-proof, host-command, reverse-shell-local) require an explicit confirmation flag.

References / 참고

See docs/references.md. / Vedi docs/references.md.

Scarica lo strumento