Exploit databaseDownload repository ZIP
GH-d1ee921774cce6efeb23697803be60ae
timthebeastnl/nginx2root
Sources for CVE-2026-123007
23 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files9
timthebeastnl/nginx2rootRevision 04c245fb0433
- ↑..Parent directory
- html/
- mail/
- patched/
- vuln/
- README.md
- docker-compose.yml
- gen-certs.sh
- run-lab-test.sh
- version-matrix-test.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/version-matrix-test.sh
Shell · 1,663 bytes#!/usr/bin/env bash
# version-matrix-test.sh — unit test for the NGINX2Root fix-boundary logic.
#
# Sources the real scanner (no Docker needed) and asserts is_patched() over a
# matrix of versions that straddle the fixed releases 1.30.7 (stable) and
# 1.31.9 (mainline). This pins the boundary the NGINX2Root patch introduced.
set -u
SELF_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT="$(cd "$SELF_DIR/.." && pwd)"
# shellcheck disable=SC1090
source "$ROOT/nginx2root-surface.sh" # guarded: loads functions, runs nothing
fail=0
pass=0
expect() { # expect VER patched|exposed
local v="$1" want="$2" got
if is_patched "$v"; then got="patched"; else got="exposed"; fi
if [ "$got" = "$want" ]; then
printf ' PASS %-9s -> %s\n' "$v" "$got"; pass=$((pass+1))
else
printf ' FAIL %-9s -> got %s, want %s\n' "$v" "$got" "$want"; fail=$((fail+1))
fi
}
echo "== fix-boundary matrix (fixed: 1.30.7 stable / 1.31.9 mainline) =="
expect 1.9.4 exposed # predates even the HTTP/2 flaw, but older modules still affected
expect 1.9.5 exposed # first affected by CVE-2026-123007
expect 1.19.7 exposed # CVE-2026-123633 territory
expect 1.25.0 exposed # CVE-2026-121810 territory
expect 1.30.6 exposed # last vulnerable stable
expect 1.30.7 patched # stable fix
expect 1.30.9 patched # later stable keeps the fix
expect 1.31.0 exposed # mainline after the stable fix but before the mainline fix
expect 1.31.8 exposed # last vulnerable mainline
expect 1.31.9 patched # mainline fix
expect 1.32.0 patched # future mainline keeps the fix
echo
echo "result: $pass passed, $fail failed"
exit $(( fail > 0 ? 1 : 0 ))