نسخههای متأثر
Composercraftcms/cms
- نسخههای متأثر
- >= 5.0.0-RC1, <= 5.8.21
- نسخهٔ اصلاحشده
- 5.8.22
بهرهبرداری
شرح آسیبپذیری
Summary
Stored XSS via Entry Type names. The name is not sanitized when displayed in the Entry Types list.
Proof of Concept
Required Permissions (Attacker)
Admin access (only admins have access to the settings page)
allowAdminChangesis enabled in production, which is against our security recommendations.
Steps to Reproduce
Log in as an attacker.
Go to Settings -> Entry Types (
/admin/settings/entry-types).Create a new Entry Type.
Set Name to:
<img src=x onerror="alert('XSS-EntryTypes')" hidden>
Save the Entry Type, and you’ll be redirected back to the entry types table automatically.
Notice the alert fires when the entry types table renders.
پیوندها
- https://github.com/advisories/GHSA-7pr4-wx9w-mqwr
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/commit/cfd6ba0e2ce1a59a02d75cae6558c4ace1ab8bd4
- https://github.com/craftcms/cms/releases/tag/5.8.22
- https://github.com/craftcms/cms/security/advisories/GHSA-7pr4-wx9w-mqwr
- https://nvd.nist.gov/vuln/detail/CVE-2026-25491
گزارشدهندگان
- mHe4am

