Exploit databaseDownload repository ZIP
GH-87ed4c64c49a8a4b42d988ffa71f5ecc
nth347/mediawiki-cve-2026-100382
Sources for CVE-2026-100382
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files5
nth347/mediawiki-cve-2026-100382Revision 207c8115eae2
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/up.sh
Shell · 1,022 bytes#!/bin/bash
# Bring up the loopback ExternalData lab. Picks a free host port from 8080 upward,
# binds it to 127.0.0.1, waits until the wiki API responds, then prints the URL.
set -euo pipefail
cd "$(dirname "$0")"
# --- pick a free port from 8080 up ---
port=8080
while ss -ltn 2>/dev/null | grep -q ":$port " || \
docker ps --format '{{.Ports}}' 2>/dev/null | grep -q ":$port->"; do
port=$((port+1))
done
echo "HOST_PORT=$port" > .env
echo "[*] Using host port $port (bound to 127.0.0.1)"
docker compose up -d
URL="http://127.0.0.1:$port"
echo "[*] Waiting for MediaWiki to become ready at $URL ..."
for i in $(seq 1 60); do
if curl -fsS "$URL/api.php?action=query&meta=siteinfo&format=json" >/dev/null 2>&1; then
echo "[+] lab up: $URL (admin: Admin/adminpass123)"
echo "[+] anonymous API parse is enabled — no login needed for the PoC"
exit 0
fi
sleep 3
done
echo "[!] Wiki did not become ready in time. Recent logs:"
docker compose logs --tail=40 mediawiki
exit 1