craftcms/cms · Security
Craft CMS stored XSS in indexedVolumes
- GHSA ID
- GHSA-6qjx-787v-6pxr
- CVE ID
- CVE-2023-33197
- Severity
- medium
- Published
- Updated
- CVSS
- 5.5 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- CVSS v3
- 5.5 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
Description
Summary
XSS can be triggered via the Update Asset Index utility
PoC
- Access setting tab
- Create new assets
- In assets name inject payload: "alert(26)
- Click Utilities tab
- Choose all volumes, or volume trigger xss
- Click Update asset indexes.
XSS will be triggered
Json response volumes name makes triggers the payload
"session":{"id":1,"indexedVolumes":{"1":"\"<script>alert(26)</script>"},
It’s run on every POST request in the utility.
Resolved in https://github.com/craftcms/cms/commit/8c2ad0bd313015b8ee42326af2848ee748f1d766
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-80 · Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
References
- https://github.com/craftcms/cms/security/advisories/GHSA-6qjx-787v-6pxr ↗
- https://github.com/craftcms/cms/commit/8c2ad0bd313015b8ee42326af2848ee748f1d766 ↗
- https://github.com/craftcms/cms/releases/tag/4.4.6 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2023-33197 ↗
- https://github.com/advisories/GHSA-6qjx-787v-6pxr ↗