1 Click ATO on a public Bugcrowd Program
A shopping subdomain reflected a query parameter without encoding, giving reflected cross-site scripting. Because the session cookie was not marked SameSite, the author reasoned the XSS could read the anti-CSRF token and submit the change-email request, leading to a one-click account takeover.
medium.com
Published on medium.com
In this article I will explain a 1 click account takeover vulnerability I found in a public VDP at Bugcrowd through Chaining XSS and CSRF.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the m query parameter was written into the page without output encoding, and the session cookie lacked the SameSite attribute, so script from another origin could act with the victim's session.
What the attacker needed
Victim clicks a crafted link; victim uses Firefox (SameSite not set); attacker can host a page or link
How it was found
- Fuzz the shopping subdomain and find the admin default page.
- Notice the m query parameter is reflected in the response.
- Insert special characters into m and see them reflected without encoding.
- Use the reflected script to fetch the anti-CSRF token, then submit the change-email request.
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 write-up has not been written yet. The Original tab links to the source.
A reflected cross-site scripting (XSS) bug lets an attacker's JavaScript run on the victim's site when the victim opens a crafted link. The site also had a form to change the account email, protected by a secret token, and the author argued the injected script could fetch that token and then submit the email change as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.