Reflected XSS on https://www.semrush.com/my_reports/externalSource/callback/googleAccountsGMB
The status parameter on a Semrush callback endpoint was reflected into a script block without sanitisation. An attacker could craft a link that executes arbitrary JavaScript in the victim's browser.
- Triaged in under an hour
- Fixed in 21 days
- Paid in under an hour
- Disclosed after 2 months
Summary by the program
Researcher found reflected XSS vulnerability on https://www.semrush.com/my_reports/externalSource/callback/googleAccountsGMB
Report: The parameter status is missing sanitization in the following url:
https://www.semrush.com/my_reports/externalSource/callback/googleAccountsGMB?status=</xss>xss<script>alert()//
Request:
GET /my_reports/externalSource/callback/googleAccountsGMB?status=</xss>xss<script>alert()// HTTP/1.1 Host: www.semrush.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: close Upgrade-Insecure-Requests: 1 Pragma: no-cache Cache-Control: no-cache
code rendered
<main class="srf-layout__body" id="root-content"><script>window.opener.connectExternalSourceCallback({"status":"</xss>xss<script>alert()//","source":"googleAccountsGMB"});</script> </main>
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 application reflected the status parameter into a JavaScript context without encoding or validating it.
Impact
An attacker could execute JavaScript in a victim's browser via the crafted link.
What the attacker needed
Victim clicks a crafted link
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.
When a website takes a value from the URL and puts it directly into the page without cleaning it, an attacker can include code that the browser runs. Here, the status value was placed inside a script tag, so a crafted link could run JavaScript in the victim's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.