Skip to content

CraftCMS stored XSS in Quick Post widget error message

Low severity GitHub Reviewed Published May 25, 2023 in craftcms/cms • Updated Nov 8, 2023

Package

composer craftcms/cms (Composer)

Affected versions

>= 4.0.0-RC1, < 4.4.6
>= 3.0.0, <= 3.8.5

Patched versions

4.4.6
3.8.6

Description

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

  1. Login at admin

  2. Go to setting

  3. Create a Section

  4. On Entry page, click Edit label

  5. Inject the XSS payload into the label and save

  6. On the admin dashboard choose new widget -> Quick Post

  7. 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

@angrybrad angrybrad published to craftcms/cms May 25, 2023
Published to the GitHub Advisory Database May 26, 2023
Reviewed May 26, 2023
Published by the National Vulnerability Database May 26, 2023
Last updated Nov 8, 2023

Severity

Low
3.7
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:L

CVE ID

CVE-2023-33194

GHSA ID

GHSA-3wxg-w96j-8hq9

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.