Exploit databaseDownload repository ZIP
GH-c97cc447ad575d5f16bdff2de597d43c
im0xfay/cve-2026-121684
Sources for CVE-2026-121684
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files9
im0xfay/cve-2026-121684Revision 89ea7c0dfbba
- ↑..Parent directory
- patches/
- README.md
- docker-compose.yml
- php.ini
- soledad-install.sh
- up.sh
- variants-setup.sh
- wp-cli.yml
- wp.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/up.sh
Shell · 2,559 bytes#!/usr/bin/env bash
# Bring up the CVE-2026-121684 lab (WordPress + Soledad <= 8.7.7, unauth RCE).
#
# bash up.sh # start db + wordpress + wpcli, then wait for HTTP
# bash up.sh --reset # wipe volumes first (fresh DB + fresh docroot)
# bash up.sh --down # stop and remove the stack (volumes kept)
#
# Exposed: http://127.0.0.1:8210
# After a successful start: bash soledad-install.sh <theme.zip|theme-dir>
#
# This docker daemon needs root, hence the sudo shim. The password never reaches
# stdout/stderr (sudo -S reads it from stdin, and -p '' suppresses the prompt).
set -euo pipefail
cd "$(dirname "$0")"
# Sudo is only needed to copy files into the named containers; set SUDO_PASS
# in the environment if your docker requires a password. Never hardcode it.
SUDO_PASS="${SUDO_PASS:-}"
SDK() { printf '%s\n' "$SUDO_PASS" | sudo -S -p '' "$@"; }
COMPOSE=(docker compose -f docker-compose.yml)
case "${1:-}" in
--down)
echo "[*] stopping stack (volumes kept)"
SDK "${COMPOSE[@]}" down
exit 0
;;
--reset)
echo "[*] wrecking volumes — the current DB and docroot are lost"
SDK "${COMPOSE[@]}" down -v --remove-orphans
;;
--help|-h)
sed -n '2,12p' "$0"; exit 0
;;
esac
# composer/wpscan not needed; only a theme archive or directory, which the user
# supplies to soledad-install.sh.
echo "[*] validating compose file..."
SDK "${COMPOSE[@]}" config >/dev/null
echo "[+] compose config OK"
echo "[*] starting db + wordpress + wpcli..."
SDK "${COMPOSE[@]}" up -d
echo "[*] waiting for http://127.0.0.1:8210 ..."
for i in $(seq 1 60); do
code=$(curl -s -o /dev/null -w '%{http_code}' -m 5 http://127.0.0.1:8210/wp-login.php || true)
case "$code" in
200|301|302) echo "[+] WordPress answering (HTTP $code) after ${i}x2s"; break ;;
esac
if [ "$i" = 60 ]; then
echo "[!] timed out waiting for HTTP. Recent logs:" >&2
SDK "${COMPOSE[@]}" logs --tail=30 wordpress db >&2 || true
exit 1
fi
sleep 2
done
echo "[*] wp-cli smoke test (via the wpcli service):"
SDK "${COMPOSE[@]}" exec -T wpcli wp core version --allow-root --path=/var/www/html \
|| echo "[!] wp core version failed — is the docroot populated?"
echo
echo "[+] lab up -> http://127.0.0.1:8210"
echo " install theme: bash soledad-install.sh /path/to/soledad.zip"
echo " wp shell : echo '$SUDO_PASS' | sudo -S docker compose -f docker-compose.yml exec wpcli wp --allow-root --path=/var/www/html <args>"
SDK docker ps --format '{{.Names}}\t{{.Status}}\t{{.Ports}}' | grep -E '^soledad-' || true