Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

Stored Cross-Site Scripting in Craft CMS

Low

Synopsis

A researcher at Tenable discovered a post-authentication stored cross-site scripting (XSS) vulnerability in Craft CMS core.

When creating a new field it is possible to inject html, including script tags, and inject an XSS payload which will be executed by users accessing the “Categories” and “Entries” pages.

Proof of Concept:

1. Create a new field with a name such as <script>alert(document.domain)</script>

2. Create a new category or section and add the field created in step 1.

3. The payload will be executed when accessing the Categories or Entries pages, respectively. 

Solution

Craft CMS has fixed this issue in github commit https://github.com/craftcms/cms/commit/7655e1009ba6cdbfb230e6bb138b775b69fc7bcb which will be included in the next release. 

Disclosure Timeline

18 May, 2023 - Issue reported to Craft CMS
18 May, 2023 - Craft CMS confirms and fixes issue

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

× Contact our sales team