
HTTP/2 Bomb (CVE-2026-49975) rilevatore di vulnerabilità non distruttivo per Nginx / Apache httpd. Python zero-dipendenze.
Strumento di rilevamento non distruttivo della vulnerabilità HTTP/2 Bomb (CVE-2026-49975) — per Nginx / Apache httpd
CVE-2026-49975 è una vulnerabilità diffusa di denial of service remoto a livello di protocollo HTTP/2, scoperta dal ricercatore di sicurezza Quang Luong. La vulnerabilità sfrutta un difetto di progettazione combinatorio tra HPACK header compression e meccanismo di controllo del flusso, consentendo a un utente malintenzionato di esaurire 32 GB di memoria del server in 10-20 secondi senza autenticazione.
| Server | Versioni affette | Fattore di amplificazione | Stato della correzione |
|---|
| Apache httpd | 2.4.17 – 2.4.67 (mod_http2 < 2.0.41) | ~4,000:1 | ✅ Corretto |
| Nginx | < 1.29.8 | ~70:1 | ✅ Corretto |
| Envoy | ≤ 1.37.2 | ~5,700:1 | ❌ Non corretto |
| Microsoft IIS | incluso Windows Server 2025 | ~68:1 | ❌ Non corretto |
| Cloudflare Pingora | ≤ 0.8.0 | ~62:1 | ❌ Non corretto |
Questo strumento si basa sul PoC reale e adotta due modalità di rilevamento:
Rileva la bomba di riferimento indice HPACK: inserisce una voce dinamica ("a", ""), quindi invia riferimenti all'indice. Ogni riferimento 1 byte in rete → 59 byte di memoria del server (3B pool copy + 56B ngx_table_elt_t). Parametro dell'attacco refs=32000, il rilevamento usa solo refs=3.
Rileva la bomba di fusione dei cookie crumb: sfrutta il meccanismo di fusione dei cookie di mod_http2 (apr_table_setn concatena i cookie duplicati con "; "), i cookie fusi non vengono conteggiati in LimitRequestFields. Parametro dell'attacco refs=4091 (amplificazione ~4000:1), il rilevamento usa solo refs=3.
ENHANCE_YOUR_CALM → 🛡️ Protezione implementataRST_STREAM → 🛡️ ProtettoGOAWAY → 🛡️ ProtettoZero dipendenze, utilizza solo la libreria standard di Python (ssl, socket, struct).
git clone https://github.com/adminlove520/http2-bomb-detector.git
cd http2-bomb-detector
Richiede Python 3.7+.
# 自动检测(Nginx + Apache 两种模式)
python http2_bomb_detector.py --host example.com
# 指定模式
python http2_bomb_detector.py --host example.com --mode nginx
python http2_bomb_detector.py --host example.com --mode httpd
# 指定端口
python http2_bomb_detector.py --host example.com --port 8443
# 仅输出漏洞信息,不发送探测包
python http2_bomb_detector.py --host example.com --no-probe
# JSON 格式输出
python http2_bomb_detector.py --host example.com --json
# 从文件读取目标列表
python http2_bomb_detector.py -f targets.txt
# 输出报告
python http2_bomb_detector.py -f targets.txt -o report.txt
Formato di targets.txt (una riga per target, # all'inizio per i commenti):
# Web 服务器列表
example.com
https://example.org:8443
192.168.1.100
[INFO] 连接 example.com:443 ...
[OK] HTTP/2 连接建立
[INFO] --- NGINX 模式检测 ---
[INFO] 攻击向量: HPACK 索引引用炸弹:动态表项 ('a','') × 32000 引用
[INFO] 修复版本: 1.29.8 | 放大比: ~70:1
[INFO] 发送探测包 (refs=3, 非破坏性)...
[WARN] ⚠️ 服务器静默接受探测包 — 可能受影响!
[INFO] --- HTTPD 模式检测 ---
[INFO] 攻击向量: Cookie crumb 合并炸弹:空 cookie × 4091 引用
[INFO] 修复版本: mod_http2 2.0.41 / httpd 2.4.68 | 放大比: ~4000:1
[INFO] 发送探测包 (refs=3, 非破坏性)...
[OK] 服务器 RST_STREAM 拒绝探测流 — 有防护
==================================================
🛡️ NGINX: potentially_vulnerable
⚠️ HTTPD: protected
Questo strumento è destinato esclusivamente a test di sicurezza autorizzati. L'utilizzo di questo strumento per rilevare target non autorizzati potrebbe violare la legge. L'utente si assume ogni responsabilità legale.
MIT