Exploit database

GH-77b084c651f84d76fe59d880f4600f96

genaforvena/mishe-tauftauf2shell

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-109618

412 sources

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

Repository files15
genaforvena/mishe-tauftauf2shellRevision 9edba631cfcf

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

lab/php2shell/build-dom-fixed-variant.sh

Shell · 1,628 bytes
#!/bin/bash
# php2shell — make the patch-sensitive "fixed" 129501 binary from the
# dom-enabled 8.5.12-asan build produced by build-dom.sh.
#
# Usage: bash lab/php2shell/build-dom-fixed-variant.sh
#
# Saves the affected CLI as sapi/cli/php-vuln, replaces ext/dom/xml_serializer.c
# with the byte-identical 8.5.13 file, rebuilds only that TU and relinks, and
# saves the result as sapi/cli/php-fixed. This is a real-fix patch-sensitivity
# comparison, NOT a full 8.5.13 build. Run build-dom.sh 8.5.12 first.

set -e
SITE=$(cd "$(dirname "$0")/../.." && pwd)
BUILD="$SITE/lab/build"
DEST="$BUILD/php-8.5.12-asan-dom"
FIXSRC="$BUILD/php-8.5.13/ext/dom/xml_serializer.c"
[ -x "$DEST/sapi/cli/php" ] || { echo "missing $DEST/sapi/cli/php — run build-dom.sh 8.5.12 first"; exit 1; }
[ -f "$FIXSRC" ] || { echo "missing $FIXSRC — run provision.sh first"; exit 1; }

# Always regenerate the affected binary from the pinned 8.5.12 source first:
# on a second run sapi/cli/php is already the fixed build, so copying it to
# php-vuln would silently destroy the vulnerable control.
cp "$BUILD/php-8.5.12/ext/dom/xml_serializer.c" "$DEST/ext/dom/xml_serializer.c"
diff -q "$BUILD/php-8.5.12/ext/dom/xml_serializer.c" "$DEST/ext/dom/xml_serializer.c"
cd "$DEST"
make -j"$(nproc)" >/dev/null
cp sapi/cli/php sapi/cli/php-vuln

# Now swap in the exact 8.5.13 serializer and rebuild only that TU.
cp "$FIXSRC" "$DEST/ext/dom/xml_serializer.c"
diff -q "$FIXSRC" "$DEST/ext/dom/xml_serializer.c"
make -j"$(nproc)" >/dev/null
cp sapi/cli/php sapi/cli/php-fixed
echo "replay: python3 lab/repro/php2shell-cve129501-dom.py <vulnerable> <fixed>"