| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|---|---|
| craftcms/cms | ≥ 3.0.0, < 3.8.6≥ 4.0.0-RC1, < 4.4.6 | 3.8.64.4.6 |
| craft cms | ≥ 3.0.0, < 3.8.6≥ 4.0.1, < 4.4.6 | 3.8.64.4.6 |
| craftercms | = 4.0.0 |
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.
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
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí