Reflected XSS via wrong permission check in conversion statistics
An incorrect ownership check used the advertiser identifier instead of the website identifier, allowing crafted website input to reach the page output. An attacker could send a crafted URL to an authenticated user and execute JavaScript in that user's browser.
- Fixed in 8 days
- Disclosed after 4 months
Summary by the program
Description
HackerOne community member Patrick Lang (7YR) has reported a reflected XSS vulnerability in the conversion-statistics pages. An incorrect ownership check used the advertiser identifier in place of the website identifier, allowing crafted website input to reach the page output. An attacker can send a crafted URL to an authenticated user and execute JavaScript in that user's browser. A related hour-parameter output issue is addressed by the same fix.
Resolution
Website ownership checks now validate the correct identifier, and the hour parameter is normalised to an integer before formatting.
Security advisory
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 an incorrect ownership check compared the advertiser identifier rather than the website identifier, so untrusted website input was not properly validated before being reflected in the page.
Impact
An attacker could send a crafted URL to an authenticated user and execute JavaScript in that user's browser.
What the attacker needed
Victim is authenticated; victim clicks a crafted link
The fix
Website ownership checks now validate the correct identifier, and the hour parameter is normalised to an integer before formatting.
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.
A web page took some text from the address bar and put it into the page without cleaning it first. Because of a mistake in a permission check, an attacker could make a link that runs their own code in the browser of anyone who clicks it while 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.