Exploit database

GH-ea78ef844e59328b2374b142b7bb01dd

0xh3y3/cve-2026-42533

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-42533

5 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files12
0xh3y3/cve-2026-42533Revision 37f1ceee0769

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

debug/attach.sh

Shell · 1,699 bytes
#!/usr/bin/env bash
# Attach gdbserver (inside the container) to the single nginx worker.
#   usage: ./attach.sh [container] [port]
# After this, on the host run:
#   ./extract-symbols.sh          # one-time: pull binary+source for local gdb
#   gdb -x gdb.py                 # pwndbg + target remote :2333
set -euo pipefail
CTN=${1:-nginx-debug-cve2026}
PORT=${2:-2333}

# worker = child of pid 1 (master), exact name "nginx"
WPID=$(docker exec "$CTN" pgrep -P 1 -x nginx || true)
if [ -z "$WPID" ]; then
    echo "[!] no worker found; is nginx running? trying ps fallback" >&2
    WPID=$(docker exec "$CTN" sh -c "ps -eo pid,ppid,comm | awk '\$3==\"nginx\" && \$2==1 {print \$1; exit}'")
fi
echo "[*] worker pid in container: $WPID"

# kill any stale gdbserver so the port is free, and resume a frozen worker
docker exec "$CTN" sh -c "pkill -f 'gdbserver.*:${PORT}' 2>/dev/null; kill -CONT ${WPID} 2>/dev/null; sleep 0.3"

# Launch gdbserver attached to the worker. We background the `docker exec`
# itself (NOT -d / nohup, which can be reaped early in some environments): the
# exec stays attached and gdbserver runs in its foreground, stable until gdb
# disconnects. The worker is frozen on attach and stays frozen until `continue`.
docker exec "$CTN" gdbserver --attach ":${PORT}" "$WPID" >/tmp/gdbserver.attach.log 2>&1 &
sleep 1
echo "[+] gdbserver.attach.log:"; cat /tmp/gdbserver.attach.log 2>/dev/null
echo "[+] gdbserver listening on ${CTN}:${PORT}  (host: localhost:${PORT})"
echo "[i] if your shell reaps the bg job, run this in a separate terminal instead:"
echo "      docker exec -it ${CTN} gdbserver --attach :${PORT} ${WPID}"
echo "[*] next: ./extract-symbols.sh && gdb -x gdb.py"