One-Click Workspace Takeover: Exploiting XSS and CSRF + WAF Bypass (F*ck HttpOnly)
A reflected HTML injection in a contentType parameter allowed JavaScript execution in Chrome via an unfiltered event handler, bypassing the WAF. Because session cookies were sent with same-origin requests, the XSS could perform a state-changing PUT request to change the workspace email, leading to workspace takeover.
Published on medium.com
These days, finding a proper CSRF vulnerability is rare. Modern browsers default cookies to SameSite=Lax, which means cookies aren’t sent in hidden GET requests, though they are still sent when clicking on links.
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 application reflected user input into an HTML context without proper output encoding, and the WAF's event-handler blocklist missed a Chrome-specific handler.
Impact
An attacker could change the workspace email of an authenticated victim, leading to full workspace takeover; the exploit worked only in Chrome and required the victim to visit a crafted link.
What the attacker needed
Victim uses Chrome; victim is authenticated; victim clicks a crafted link
How it was found
- Visit the image-upload endpoint with a crafted contentType parameter containing an HTML input element with a Chrome-specific event handler.
- The event handler fires and executes JavaScript in the victim's browser.
- The JavaScript sends a PUT request to the workspace management endpoint with a new email address, using the victim's cookies.
- The workspace email is changed, resulting in takeover.
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.
The website took a value from the URL and put it into the page without cleaning it, so an attacker could make the page run their own JavaScript. The attacker then used that JavaScript to send a request that changed the workspace email, because the victim's browser automatically included their login cookie.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.