Exploit database

GH-62b515c2860fc6c8f47ee1736467ea66

yusif-v/cve-2026-123007-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-123007

24 sources

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

Repository files2
yusif-v/cve-2026-123007-pocRevision 2297ffae4380

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

sandbox/start-nginx-h2-1.31.8.sh

Shell · 1,949 bytes
#!/usr/bin/env bash
# start-nginx-h2-1.31.8.sh
#
# Start a local nginx 1.31.8 HTTP/2 + TLS server for CVE-2026-123007.
#
# The container is built from the PINED nginx image digest
#   sha256:5ab5b0b01097420873a3f3330f44248e34a3c2a3e8d5ee30658aeae8cb7435da
# (Debian nginx 1.31.8 with --with-http_v2_module and --with-http_ssl_module)
# and binds 127.0.0.1:19443 -> 443/tcp.  The entrypoint generates a
# self-signed certificate (at /tmp/nginx-h2.crt/.key, as referenced by
# sandbox/nginx.conf) and nginx serves the bind-mounted configuration
# (sandbox/nginx.conf, read-only).
#
# Usage:
#   ./start-nginx-h2-1.31.8.sh [PORT]
#
set -euo pipefail

IMAGE="nginx@sha256:5ab5b0b01097420873a3f3330f44248e34a3c2a3e8d5ee30658aeae8cb7435da"
NAME="cve-2026-123007-nginx"
PORT="${1:-19443}"
WORK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# --- 1. Bring any stale instance down --------------------------------------- #
if docker ps -a --format '{{.Names}}' | grep -qx "$NAME"; then
  docker rm -f "$NAME" >/dev/null
fi

# --- 2. Start the container ----------------------------------------------- #
docker run -d \
  --name "$NAME" \
  -p "127.0.0.1:${PORT}:443" \
  -v "${WORK_DIR}/nginx.conf:/etc/nginx/nginx.conf:ro" \
  "${IMAGE}" \
  sh -c "openssl req -x509 -newkey rsa:2048 -nodes -days 30 \
      -keyout /tmp/nginx-h2.key \
      -out /tmp/nginx-h2.crt \
      -subj /CN=localhost \
      -addext subjectAltName=DNS:localhost,IP:127.0.0.1 \
      && exec nginx -g 'daemon off;'"

# --- 3. Wait for the target to answer -------------------------------------- #
for _ in $(seq 1 30); do
  if curl -sk -o /dev/null "https://127.0.0.1:${PORT}/"; then
    echo "nginx 1.31.8 HTTP/2 + TLS target ready at https://127.0.0.1:${PORT}/"
    echo "  image: ${IMAGE}"
    echo "  config: ${WORK_DIR}/nginx.conf"
    exit 0
  fi
  sleep 1
done

echo "ERROR: target did not become ready on 127.0.0.1:${PORT}" >&2
docker logs "$NAME" >&2 || true
exit 1