可复现的回环实验环境 + 不变量测试集,针对 HTTP/2 流控 / 计数器 / 长度整数缺陷类(CWE-191),并已针对 nginx CVE-2026-123007 进行验证。
验证结果: cleanup_overcredit 探针在 nginx 1.31.8(已知存在漏洞)上失败,在 nginx 1.31.9(已修补)以及 Apache、Caddy、Envoy、Go net/http 和 nghttpd 上通过——与 arkrwn 在同一监听器上公开的 --safe PoC 结果一致。八个真实 HTTP/2 协议栈;七个 RFC 9113 探针;一条命令即可运行。
更详细的说明:WRITEUP.md。
127.0.0.1)。驱动程序拒绝非回环主机。git clone https://github.com/c0re-i5/intbug-lab.git
cd intbug-lab
python3 -m venv .venv && .venv/bin/pip install -r ours/requirements.txt
./scripts/run-all.sh # or: make battery
这会启动固定目标,运行离线单元测试,并将矩阵写入 evidence/ 下。使用 ./scripts/lab-down-targets.sh(或 make down)进行拆除。
# arkrwn --safe PoC (for scripts/proof.sh cross-check)
git clone https://github.com/arkrwn/NGINX2Root-CVE-2026-123007.git \
detectors/arkrwn-nginx2root
(cd detectors/arkrwn-nginx2root && cargo build --release)
# Rapid7 reproduction notes (reference only)
git clone https://github.com/sfewer-r7/CVE-2026-123007.git \
detectors/sfewer-r7-cve
# h2spec for the optional zero-WU RFC cross-check (make zero-wu)
# see bin/README.md for the download command
详情:detectors/README.md、bin/README.md。
make battery # = ./scripts/run-all.sh
# or, skip the ~45s heavy probe:
make battery-light # = ./scripts/run-all.sh --skip-heavy
./scripts/run-all.sh 是规范的单命令入口(在安装了 GNU make 时也以 make battery 暴露)。它是幂等的:
./scripts/box-dockerd.sh)./scripts/lab-up-targets.sh)退出码:测试框架成功运行后为 0(矩阵中的 FAIL/ANOMALY 是观察结果,不是测试框架失败)。仅当 docker 不可达、单元测试失败或测试组崩溃时才为非零。
拆除:make down(或 ./scripts/lab-down-targets.sh)。
| id | 角色 | 监听 | 镜像摘要 |
|---|---|---|---|
nginx-1.31.8 | 已知存在漏洞(CVE-2026-123007) | 127.0.0.1:19443 | nginx@sha256:5ab5b0b01097420873a3f3330f44248e34a3c2a3e8d5ee30658aeae8cb7435da |
nginx-http2-off | 阴性对照(相同镜像,关闭 http2) | 127.0.0.1:19444 | 同上 |
httpd-2.4.71 | 跨实现(Apache + mod_http2) | 127.0.0.1:19445 | httpd@sha256:32e9403360ab2f1047523e72f256527fb9aee68b342abf6ad03f0d629157f3d9 |
nginx-1.31.9 | 已修补的干净对照 | 127.0.0.1:19446 | nginx@sha256:08f354a3b44c422021a5c0f5efb3e27f8f90236b5447d3bac4053f5f50ab6760 |
caddy-2.10 | 跨实现(Caddy) | 127.0.0.1:19447 | caddy@sha256:c3d7ee5d2b11f9dc54f947f68a734c84e9c9666c92c88a7f30b9cba5da182adb |
envoy-1.32 | 跨实现(Envoy) | 127.0.0.1:19448 | envoyproxy/envoy@sha256:6bf0d37dd5e8eac4b37effe89a1aec4760f7f2ce860d1fd6af22147eb87a5058 |
go-nethttp | 跨实现(Go net/http 标准库) | 127.0.0.1:19449 | 基于 golang@sha256:1a6d4452c65dea36aac2e2d606b01b4a029ec90cc1ae53890540ce6173ea77ac 构建 |
nghttpd | 参考实现(nghttp2) | 127.0.0.1:19450 | 基于 debian@sha256:734a72b3d6142a71993b4bc580ca01d8ca687f77a2c422d96a961d3376b179bc 构建(+ apt nghttp2-server,其本身未固定摘要) |
所有发布均仅限 127.0.0.1。响应体为 896 字节的 /index.html(支持 Range)。
go-nethttp 基于固定的 golang 摘要重新构建,仅使用标准库(不拉取模块)。nghttpd 在固定的 debian 基础镜像上通过 apt 安装 nghttp2-server —— apt 包
版本随发行版快照浮动。请将其视为参考基线,而非
逐位固定。在此记录,以免有人假装不是这样。实现在 ours/battery.py 中。每个探测均引用 RFC 9113(HTTP/2)。
| 探测 id | 检查内容 | RFC |
|---|---|---|
h2_alpn | ALPN h2 按预期存在/不存在 | §3.3 / RFC 7301 |
wu_zero_conn | 连接上的 WINDOW_UPDATE 增量为 0 → PROTOCOL_ERROR | §6.9.1 |
wu_zero_stream | 流上的 WINDOW_UPDATE 增量为 0 → PROTOCOL_ERROR | §6.9.1 |
wu_conn_overflow | 会使连接 WU 超过 MAX=2^31-1 → FLOW_CONTROL_ERROR | §6.9.1 |
wu_stream_overflow | 会使流 WU 超过 MAX → FLOW_CONTROL_ERROR | §6.9.1 |
settings_iw_overflow | SETTINGS_INITIAL_WINDOW_SIZE 的增量将流推过 MAX | §6.9.2 |
cleanup_overcredit | 排队 DATA 的清理不得使连接窗口超过 MAX;退款后的 WU 防护(CVE-2026-123007 记账类) | §6.9 / CWE-191 |
状态:PASS(不变量成立)、FAIL(不变量被破坏 —— 缺陷类别信号)、 ANOMALY(需要人工复核,并非已确认的 CVE)、 INCONCLUSIVE(探测无法完成 —— 不是 PASS)、SKIP、ERROR。
重型探测 cleanup_overcredit 每个目标约 14 MiB / ~45 秒。可通过
./scripts/run-battery.sh --skip-heavy 或 make battery-light 跳过。
来自 evidence/BATTERY-MATRIX-latest.txt(优雅清理 + 开放流 wu_zero 修复):
probe | nginx-1.31.8 | nginx-http2-off | httpd-2.4.71 | nginx-1.31.9 | caddy-2.10 | envoy-1.32 | go-nethttp | nghttpd
h2_alpn | PASS | PASS | PASS | PASS | PASS | PASS | PASS | PASS
wu_zero_conn | PASS | - | PASS | PASS | PASS | ANOMALY | PASS | PASS
wu_zero_stream | PASS | - | PASS | PASS | ANOMALY | ANOMALY | ANOMALY | PASS
wu_conn_overflow | PASS | - | PASS | PASS | PASS | ANOMALY | PASS | PASS
wu_stream_overflow | FAIL | - | ANOMALY | FAIL | ANOMALY | ANOMALY | ANOMALY | ANOMALY
settings_iw_overflow | FAIL | - | ANOMALY | FAIL | PASS | ANOMALY | PASS | ANOMALY
cleanup_overcredit | FAIL | - | PASS | PASS | PASS | PASS | PASS | PASS
cleanup_overcredit 现在在全部 8 个 h2 目标上完成(没有 Broken-pipe 软 PASS)。
caddy/envoy/go/nghttpd 使用 key_updates=0 / carrier=200000(完整的 KeyUpdate 压力
在这些栈上会触发 Broken pipe)。参见 evidence/MANUAL-REVIEW-NOTES.txt。
wu_zero_stream 之前在 Apache/Envoy/nghttpd 上的 FAIL 是探测伪影
(END_STREAM 之后的 WU)。开放流(与 h2spec 对齐)探测 + 字节捕获 +
h2spec http2/6.9/1+2 交叉校验记录位于 evidence/zero-wu/ 下(可选二进制;参见 bin/README.md)。
cleanup_overcredit 是目前唯一真正的 CVE 级判别项。
它在 nginx 1.31.8 上 FAIL,在已修补的 nginx 1.31.9 以及 Apache
在完整 KeyUpdate 压力配置下 PASS。与公开的 arkrwn --safe 一致。
不要将其他 FAIL/ANOMALY 行视为 CVE。key_updates=0)下完成。
未完成的运行是 INCONCLUSIVE,绝不是伪造的 PASS。evidence/MANUAL-REVIEW-NOTES.txt,标记为"需要人工审查",绝不作为发现项。最新矩阵:evidence/BATTERY-MATRIX-latest.txt。带日期的副本会一并保留。
h2,
提供一个约 500–8192 字节、支持 Range 的响应体。ours/targets.py 中注册它:TARGETS["my-server"] = Target(
id="my-server",
name="My HTTP/2 server (lab)",
url="https://127.0.0.1:19451/",
role="cross-impl",
image="owner/image@sha256:…",
supports_h2=True,
)
scripts/lab-up-targets.sh / docker-compose.yml / lab-down-targets.sh。./scripts/run-battery.sh --targets my-server(或 make battery)。后续添加新协议 = 新增驱动模块 + 探针;保持 oracle/Status 共享。