Lucene search

K
osvGoogleOSV:GHSA-6QJX-787V-6PXR
HistoryMay 26, 2023 - 1:56 p.m.

Craft CMS stored XSS in indexedVolumes

2023-05-2613:56:26
Google
osv.dev
7
craft cms
stored xss
indexedvolumes
update asset index
asset index utility
json response
security patch

CVSS3

5.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

EPSS

0.001

Percentile

29.1%

Summary

XSS can be triggered via the Update Asset Index utility

PoC

  1. Access setting tab
  2. Create new assets
  3. In assets name inject payload: "<script>alert(26)</script>
  4. Click Utilities tab
  5. Choose all volumes, or volume trigger xss
  6. Click Update asset indexes.

XSS will be triggered

Json response volumes name makes triggers the payload

"session":{"id":1,"indexedVolumes":{"1":"\"&lt;script&gt;alert(26)&lt;/script&gt;"},

It’s run on every POST request in the utility.

Resolved in https://github.com/craftcms/cms/commit/8c2ad0bd313015b8ee42326af2848ee748f1d766

CVSS3

5.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

EPSS

0.001

Percentile

29.1%

Related for OSV:GHSA-6QJX-787V-6PXR