Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Verify email after solving CAPTCHA #14764

Open
charlespick opened this issue Jan 2, 2023 · 3 comments
Open

Verify email after solving CAPTCHA #14764

charlespick opened this issue Jan 2, 2023 · 3 comments
Labels
A-Email-Push Email notifications O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Major functionality / product severely impaired, no satisfactory workaround. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@charlespick
Copy link

Description:
When a new user registers through a client like Element with 3pid email and recaptcha turned on, the email verification gets sent immediately, before the user (or bot) has solved the captcha. This opens up the email infrastructure backing the synapse instance to abuse. Lots of smtp relays have monthly limits as well as monitoring of bounced emails and complaints. If you run your own mail system then you can get your ip blocked or a nasty email from your ISP. There is no reason to send the verification email before verifying that the user is a human and presenting both of these tasks to the user at the same time is a sloppy user experience too.

@coolsantino
Copy link

Can confirm, mail sent before registration complete.

@ankit-pn
Copy link

ankit-pn commented Jan 2, 2023

I think there is issues on these lines
synapse/rest/client/register.py

For every flow there are inserting at position 0 , so registration_requires_token and enable_registration_captcha are conflicting.

@ankit-pn
Copy link

ankit-pn commented Jan 2, 2023

Any maintainer pls review and share whether i am right or there is some other issue!

@DMRobertson DMRobertson added S-Major Major functionality / product severely impaired, no satisfactory workaround. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. O-Occasional Affects or can be seen by some users regularly or most users rarely A-Email-Push Email notifications labels Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Email-Push Email notifications O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Major functionality / product severely impaired, no satisfactory workaround. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

No branches or pull requests

4 participants