Skip to content
XSS Disclosed report Beginner

XSS on [/concrete/concrete/elements/dashboard/sitemap.php]

The sitemap.php file echoes the 'callback' parameter without sanitisation, allowing an attacker to inject a script via a crafted URL. This could let an attacker execute arbitrary JavaScript in a victim's browser.

gsalazar Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 4 months
  • Disclosed after 5 months

Alright, here's the other bug I said I would report. I have found the file that is affected by this bug, which is outlined in the title. The affected file is here - /concrete/concrete/elements/dashboard/sitemap.php

On line 40, this section:

<div id="tree" sitemap-wrapper="1" sitemap-select-callback="<?php echo $callback?>"

PHP echoes the $callback without filtering any user input. Here is the PoC link -

http://localhost/concrete/index.php/tools/required/pages/search_dialog?sitemap_select_mode=%22%3E%3Cscript%3Ealert%280%29%3C/script%3E

Change localhost/ to wherever you're hosting your concrete installation.

That might not be the source of the problem, but I used grep to find the place where it was echoed.

Thank you.

The original report as published on HackerOne, by gsalazar. 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

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Craft a URL with a malicious script in the sitemap_select_mode parameter.
  2. Visit the URL in a browser to trigger the script.

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.

This is a cross-site scripting (XSS) bug. The website takes a value from the URL and puts it directly into the page without cleaning it, so an attacker can make the page run their own JavaScript code.

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 gsalazar

View all

1 more disclosed report, 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.