
Analizza gli host nginx alla ricerca di CVE-2026-123007 (underflow di interi nel controllo di flusso HTTP/2) tramite fingerprinting passivo di versione/SETTINGS e una sonda oracle non distruttiva.
Scanner di vulnerabilità per CVE-2026-123007 — una RCE critica non autenticata in nginx tramite un integer underflow HTTP/2 (flow-control overcredit).
Scritto da 0xNRG
L'implementazione HTTP/2 di nginx gestisce in modo errato il credito di flow-control quando gli stream vengono reimpostati tramite un overflow di SETTINGS. Il percorso di cleanup restituisce il credito DATA in sospeso alla finestra di connessione senza applicare il massimo HTTP/2 a 31 bit, lasciando la finestra unsigned al di sopra di 0x7FFFFFFF. Un successivo controllo dei limiti di WINDOW_UPDATE valuta MAX - current con aritmetica unsigned, va in underflow e accetta circa 2³³ incrementi aggiuntivi. Con un numero sufficiente di iterazioni la finestra di connessione supera il proprio punto medio signed, nginx costruisce un buffer di output invertito e passa un size_t negativo a memcpy, esponendo la memoria heap e libc e consentendo una RCE non autenticata.
Affette: nginx 1.9.5 – 1.31.8 (tutte le build). Sfruttabilità confermata: 1.31.6, 1.31.8.
Corrette: nginx 1.31.9 (mainline) e 1.30.7 (stable), rilasciate il 18 novembre 2026.
Prerequisito: http2 on; deve essere attivo sul listener.
Due modalità, entrambe non distruttive:
Solo controlli passivi — nessuno stato del server viene modificato.
| Controllo | Cosa rileva |
|---|---|
| HTTPS + TLS 1.3 | Il target è raggiungibile |
| HTTP/2 ALPN | h2 negoziato — prerequisito per l'exploit |
Header Server: | Versione di nginx tramite richiesta HEAD HTTP/1.1 |
| HTTP/2 SETTINGS | Corrispondenza esatta con profili noti come vulnerabili |
Restituisce VULNERABLE_CONFIRMED in caso di corrispondenza esatta di versione + SETTINGS, LIKELY_VULNERABLE in caso di corrispondenza dell'intervallo di versioni, NOT_VULNERABLE quando HTTP/2 è assente.
--probe)Attiva l'effettivo errore di accounting del flow-control e lo verifica tramite due oracle indipendenti osservabili dalla rete, poi si ferma immediatamente. La fase di crash-amplification non viene mai avviata — i worker nginx del target restano illesi.
Oracle 1 — gli stream 149 e 151 devono essere reimpostati con FLOW_CONTROL_ERROR e il corpo della risposta Range deve corrispondere.
Oracle 2 — deve essere ricevuto un PING ACK sulla connessione ora sovraccreditata, a dimostrazione che la guardia in underflow ha accettato un secondo incremento MAX.
Modalità fingerprint — qualsiasi OS, Python 3.8+, nessun pacchetto aggiuntivo.
Modalità oracle probe — Linux x86-64, CPython 3.10 a 64 bit, runtime OpenSSL 3 (libssl.so.3).
# Verify probe prerequisites
python3.10 -c "
import ctypes, ssl, sys
print('cpython:', sys.implementation.name == 'cpython')
print('3.10: ', sys.version_info[:2] == (3, 10))
print('64-bit: ', ctypes.sizeof(ctypes.c_void_p) == 8)
print('ossl3: ', ssl.OPENSSL_VERSION_INFO[0] == 3, ssl.OPENSSL_VERSION)
"
# Single target
python3 nginx2root-scanner.py <target>
# With full URL or custom port
python3 nginx2root-scanner.py https://10.0.0.5:8443/
# Bulk scan from file (one host per line, # comments ignored)
python3 nginx2root-scanner.py --file hosts.txt
# Scan multiple ports per host
python3 nginx2root-scanner.py --file hosts.txt --ports 443,8443,4443
# Control parallelism and timeout (defaults: 50 workers, 3s)
python3 nginx2root-scanner.py --file hosts.txt --workers 100 --timeout 5
# Machine-readable JSON output
python3 nginx2root-scanner.py 10.0.0.5 --json
# Oracle probe — confirms vulnerability without crashing the target
# (Linux + CPython 3.10 + OpenSSL 3 required)
python3.10 nginx2root-scanner.py 10.0.0.5 --probe
| Flag | Predefinito | Descrizione |
|---|---|---|
target | — | Singolo target: URL, IP o FQDN |
--file, -f | — | File con un target per riga |
--ports | 443 | Porte HTTPS separate da virgola da provare per host |
--workers | 50 | Worker paralleli (modalità bulk) |
--timeout | 3 | Timeout per connessione in secondi |
--probe | disattivato | Esegue una sonda oracle non distruttiva |
--json | disattivato | Output JSON invece che leggibile dall'uomo |
Codici di uscita: 0 = non vulnerabile / inconcludente · 1 = vulnerabile · 2 = errore
Target vulnerabile (corrispondenza fingerprint):
CVE-2026-123007 — nginx2root scanner
Written by 0xNRG
Target : 127.0.0.1:19443
────────────────────────────────────────────────────────────────
HTTPS reachable : yes
HTTP/2 (h2 ALPN) : yes
Server header : nginx/1.31.8
HTTP/2 SETTINGS : [3,128], [4,65536], [5,16777215], [9,1]
Profile match : nginx/1.31.8
────────────────────────────────────────────────────────────────
· HTTP/2 negotiated via ALPN h2
· Server header 'nginx/1.31.8' and HTTP/2 SETTINGS exactly match
validated vulnerable profile 'nginx/1.31.8'
────────────────────────────────────────────────────────────────
[!!!] VULNERABLE (confidence: high)
Non vulnerabile (HTTP/2 disabilitato):
CVE-2026-123007 — nginx2root scanner
Written by 0xNRG
Target : example.com:443
────────────────────────────────────────────────────────────────
HTTPS reachable : yes
HTTP/2 (h2 ALPN) : no
Server header : nginx/1.31.8
HTTP/2 SETTINGS : —
Profile match : none
────────────────────────────────────────────────────────────────
· HTTP/2 not negotiated — prerequisite for CVE-2026-123007 is absent
────────────────────────────────────────────────────────────────
[OK] NOT VULNERABLE (confidence: high)
Sonda Oracle confermata:
Oracle probe : CONFIRMED VULNERABLE
· TLS connected: TLSv1.3 ALPN=h2
· Trigger flight assembled (7 MiB + 262 144 KeyUpdates); sending…
· Oracle 1 PASSED — streams 149/151 reset FLOW_CONTROL_ERROR;
10-byte Range release matches public body prefix
· Oracle 2 PASSED — PING ACK received on overcredited connection
(underflowed WINDOW_UPDATE guard accepted additional MAX increment)
· VULNERABILITY CONFIRMED: cleanup overcredit observable on this target
────────────────────────────────────────────────────────────────
SUMMARY
────────────────────────────────────────────────────────────────
Hosts scanned : 523
Ports per host : 3 (443, 8443, 4443)
Total probes : 1569
Workers / timeout : 50 / 3.0s
────────────────────────────────────────────────────────────────
[OK] NOT VULNERABLE 12
[?] INCONCLUSIVE 1
[!] ERROR 1556
────────────────────────────────────────────────────────────────
Servers detected:
nginx/1.31.8 10
Kestrel 2
Microsoft-IIS/10.0 1
────────────────────────────────────────────────────────────────
HTTP/2 enabled (require manual review):
· example.com:443
────────────────────────────────────────────────────────────────
http2 on; dalla configurazione di nginx.Questo strumento è destinato a test di sicurezza autorizzati su sistemi di tua proprietà o per i quali disponi di esplicita autorizzazione scritta. Non utilizzarlo contro sistemi senza autorizzazione.