Skip to content
XSS Disclosed report Beginner

stored XSS in concrete5 5.7.2.1

A user with file upload permission could store a malicious filename or file title containing HTML and JavaScript, which executed when another user opened the delete or properties page in the file manager. This allowed script execution in the victim's browser, potentially exposing cookies.

yujitounai Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 6 days
  • Disclosed after 17 months

Hello.

I found stored XSS in concrete5 5.7.2.1.

If the user have file upload permission the user can upload the file named like "><img src=0 onerror=confirm(document.cookie)>.txt or change title like below <svg onload=confirm(document.cookie)> on the properties page.

and when other user access the file manager page, and open the delete page or open the properties page, Javascript execute.

I reported same issue in 5.7.0.4. and fixed [#30019] but this fix is not sufficient.

Regards.

Attachments

__________2014-12-10_9.15.07.png
__________2014-12-10_9.15.07.png From the original on HackerOne
__________2014-12-10_10.13.12.png
__________2014-12-10_10.13.12.png

The original report as published on HackerOne, by yujitounai. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the file name and title were saved and later rendered into the file manager pages without proper HTML encoding, so the injected markup was treated as code.

Impact

An attacker with upload permission could run script in another user's session when that user viewed the affected file manager pages, which could expose the victim's cookies.

What the attacker needed

File upload permission; victim opens file manager delete or properties page

The fix

The text says an earlier fix for the same issue was not sufficient; it does not state how to fix it.

How it was found

  1. As a user with file upload permission, upload a file whose name contains HTML and JavaScript.
  2. Alternatively, change the file title on the properties page to contain HTML and JavaScript.
  3. Have another user open the file manager page and then open the delete page or the properties page.
  4. The injected JavaScript executes in that user's browser.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Stored cross-site scripting (XSS) happens when a website saves text a user typed, such as a file name, and later shows it to someone else without cleaning it. Here the saved text included HTML and JavaScript, so the browser ran that script when another person viewed the file manager. The script could read the victim's cookies, which are small pieces of data a site uses to remember who is logged in.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by yujitounai

View all

3 more disclosed reports, best first.

More from Concrete CMS

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.