\n4. Click Utilities tab\n5. Choose all vol", "url": "https://rootscan.ai/vulnerabilities/GHSA-6qjx-787v-6pxr/", "isPartOf": {"@type": "WebSite", "name": "rootscan", "url": "https://rootscan.ai/"}}, {"@type": "Organization", "name": "rootscan", "url": "https://rootscan.ai/", "description": "Automated security testing for small-business websites and web apps. We report findings and suggested fixes; we do not change your site for you.", "logo": "https://rootscan.ai/assets/favicon.svg"}, {"@type": "SoftwareApplication", "name": "rootscan", "applicationCategory": "SecurityApplication", "operatingSystem": "Web", "url": "https://rootscan.ai/", "offers": {"@type": "Offer", "price": "0", "priceCurrency": "USD", "description": "Free public security scan; paid one-off pentest. We report findings and suggested fixes; we do not change your site."}}]}
MediumGHSA-6qjx-787v-6pxr

Craft CMS stored XSS in indexedVolumes

Affected versions4.0.0-RC1 to before 4.4.6 - fixed in 4.4.6

Details

### 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 7. Click Update asset indexes. XSS will be triggered Json response volumes name makes triggers the payload "session":{"id":1,"indexedVolumes":{"1":"\"<script>alert(26)</script>"}, It’s run on every POST request in the utility. Resolved in https://github.com/craftcms/cms/commit/8c2ad0bd313015b8ee42326af2848ee748f1d766

Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected

Inside rootscan

Illustrative rootscan dashboard

Illustrative product preview with sample data. Explore an interactive sample finding

Connect your Shopify store

Connect once. Keep watch.

Enter your store address to prepare your connection.

Website preview: this prepares a connection summary. No app is installed and no scan runs.

Check this website

No account needed for the free scan.

The free public scan needs no account and does not log in to the site. If you later buy a pentest, you will create an account, prove you control the target, and tick a permission checkbox before any active test starts.

Run the free scan Already have an account? Sign in

No active test starts until you authorize it in the app.