Sendy is Insecure: How Not to Implement reCAPTCHA
Sendy's reCAPTCHA verification was only performed when a hidden 'subform' field was set to 'yes', so an attacker could bypass it by omitting that field and submit unlimited fake signups to any email list.
victorzhou.com
Published on victorzhou.com
A few months ago, I switched from Mailchimp to Sendy, a self-hosted email newsletter alternative. I wrote a whole post about why I switched from Mailchimp to Sendy, but the gist is that Mailchimp got too expensive too fast.
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
The reCAPTCHA verification code was placed inside a conditional block that only ran when the hidden 'subform' parameter was set, so omitting that parameter skipped verification.
Impact
An attacker could add unlimited fake email addresses to any Sendy list, potentially causing the list owner to be reported for spam.
What the attacker needed
Sendy instance with reCAPTCHA enabled; Ability to send HTTP requests
The fix
The issue was fixed in Sendy v4.0.3.3; users should upgrade, or manually move the reCAPTCHA check outside the 'subform' conditional.
How it was found
- Inspect the standard Sendy subscribe form and notice the hidden 'subform' field.
- Observe that the form posts to the same endpoint as the Sendy API.
- Send a subscription request without the 'subform' field set to 'yes'.
- The request succeeds without any reCAPTCHA check, allowing spam signups.
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.
reCAPTCHA is a test to prove a human is signing up, not a script. Sendy only checked the reCAPTCHA answer when a special hidden form field was present, so anyone could leave that field out and skip the check entirely. That let a simple script add many fake email addresses to a newsletter list.
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.