Headline
GHSA-3wxg-w96j-8hq9: CraftCMS stored XSS in Quick Post widget error message
Summary
The platform does not filter input and encode output in Quick Post validation error message, which can deliver an XSS payload.
Details
Old CVE fixed the XSS in label HTML but didn’t fix it when clicking save.
PoC
Login at admin
Go to setting
Create a Section
On Entry page, click Edit label
Inject the XSS payload into the label and save
On the admin dashboard choose new widget -> Quick Post
In Quick Post, click save with blank slug; The XSS will be executed
"errors":{"title":[“<script>alert(‘nono’)</script> cannot be blank.”],"slug":[“Slug cannot be blank.”]
Fixed in https://github.com/craftcms/cms/commit/9d0cd0bda7c8a830a3373f8c0f06943e519ac888
- GitHub Advisory Database
- GitHub Reviewed
- CVE-2023-33194
CraftCMS stored XSS in Quick Post widget error message
Low severity GitHub Reviewed Published May 25, 2023 in craftcms/cms • Updated May 26, 2023
Package
Affected versions
>= 4.0.0-RC1, < 4.4.6
>= 3.0.0, <= 3.8.5
Patched versions
4.4.6
3.8.6
Summary
The platform does not filter input and encode output in Quick Post validation error message, which can deliver an XSS payload.
Details
Old CVE fixed the XSS in label HTML but didn’t fix it when clicking save.
PoC
Login at admin
Go to setting
Create a Section
On Entry page, click Edit label
Inject the XSS payload into the label and save
On the admin dashboard choose new widget -> Quick Post
In Quick Post, click save with blank slug; The XSS will be executed
"errors":{"title":[“<script>alert(‘nono’)</script> cannot be blank.”],"slug":[“Slug cannot be blank.”]
Fixed in craftcms/cms@9d0cd0b
References
- GHSA-3wxg-w96j-8hq9
- https://github.com/craftcms/cms/releases/tag/4.4.6
Published to the GitHub Advisory Database
May 26, 2023
Last updated
May 26, 2023
Related news
Craft is a CMS for creating custom digital experiences on the web.The platform does not filter input and encode output in Quick Post validation error message, which can deliver an XSS payload. Old CVE fixed the XSS in label HTML but didn’t fix it when clicking save. This issue was patched in version 4.4.6.