Skip to content
XSS Write-up Intermediate

When I Bypassed Google CAPTCHA: The Epic Exploit of POST-based XS

A subscription form reflected user input in a thank-you message, allowing reflected XSS via a POST request. The CAPTCHA tokens were not tied to the user's session, so an attacker could solve a CAPTCHA separately and replay the tokens in a CSRF form to execute the XSS in a victim's browser.

tinopreter Follow

Published on infosecwriteups.com

🔗Read it for FREE

tinopreter, on infosecwriteups.com

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 without sanitisation and validated CAPTCHA tokens without binding them to the user's session.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser via a crafted link, potentially performing actions on their behalf, though the report does not detail further consequences.

What the attacker needed

Victim visits attacker-controlled page; attacker solves a CAPTCHA separately

The fix

The issue was fixed by the security team after being reported.

How it was found

  1. Open the subscription form and submit it with a script payload in the first name field.
  2. Observe the payload executing in the thank-you message.
  3. Open the form in a private tab, fill it, solve the CAPTCHA, and intercept the submission.
  4. Copy the CAPTCHA parameter values into a CSRF proof-of-concept form.
  5. Host the form and have a victim visit it, causing automatic submission and script execution.

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 name typed into a form and put it directly into the page without cleaning it, so a script could run. Normally this only affects the person typing, but the attacker made a page that automatically submits the form for a victim. The CAPTCHA was supposed to stop automated submissions, but its tokens could be reused from another browser.

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 tinopreter

View all

8 more disclosed reports, best first.

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.