Bypass Google Captcha+Parameter Pollution Leads to send email to any user on behalf of “Organization” with any desired content
The contact form's server-side captcha check could be bypassed by removing the recaptcha parameter, and an extra parameter allowed sending email to any address on behalf of the organisation. An attacker could send arbitrary content to any user from the organisation's email address.
Published on medium.com
Hi folks, I am Viral Bhatt. This is my first write-up so there might be possibilities of numerous mistakes but yeah it’s okay to make mistakes.. as long as you learn from them.
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 server did not validate the captcha response and trusted a user-supplied parameter to set the recipient address.
What the attacker needed
Access to the contact form; ability to intercept and modify requests
The fix
The vulnerability was fixed by the program within a day.
How it was found
- Navigate to the contact page and fill in the details.
- Send the same request again to see the INVALID_CAPTCHA error.
- Remove the recaptcha parameter and its value; the server returns SUCCESS:true.
- Add a toEmail parameter with your own email address; the server returns SUCCESS:true.
- Check your email and receive a message on behalf of the target company.
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 captcha is a test to prove a human is filling a form, but here the server did not properly check it. By removing the captcha field from the request, the server still accepted the form. Then adding an extra field let the attacker choose who received the email, so anyone could be sent a message that looked like it came from the company.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.