Skip to content
Business logic Disclosed report Beginner

no captcha for register user and weak question attacker can spam email

The registration form lacks a CAPTCHA and uses a simple question that bots can answer, allowing an attacker to repeatedly submit registration requests with the same email address. This lets the attacker spam arbitrary email addresses through the service.

fr0nk Follow

Originally disclosed on HackerOne

  • Triaged in 22 hours
  • Fixed in 2 months
  • Disclosed after 2.4 years

hi in https://demo.weblate.org/accounts/register/ attacker can register with same email and if didnt click on confirm link attacker can make request with infinite loop

so attacker can spam another email with your service

question is so simple any bot that can read source can generate answer for it

you can make fix with if email register in database user cant make register request within 24 hour

good luck

The original report as published on HackerOne, by fr0nk. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is the registration page of the Weblate demo instance, at the URL below.

Text
https://demo.weblate.org/accounts/register/

The researcher reports a problem on that form.

  1. The same email address can be used to register more than once. If the confirmation link in the first email is never clicked, the attacker can keep sending registration requests in an endless loop.
  2. The result is that the service can be used to send mail repeatedly to another email address. In the researcher's words, an attacker can "spam another email with your service".

The second problem is the anti-automation question on the form. The researcher says the question is so simple that any bot able to read the page source can work out the answer and submit it. That removes a barrier that would otherwise slow down repeated submissions.

No request, parameter, header or response body is included in the report, so the exact form fields and the wording of the question are not shown. The report also gives no severity, no CVSS score, no bounty amount and no confirmation that a fix was applied.

The suggested fix is a rate limit keyed on the email address: if an address is already registered in the database, a new registration request for it should be refused for 24 hours.

Text
if email register in database user cant make register request within 24 hour

Root cause

The report points to a design mistake rather than a memory-safety or injection flaw. Two controls that are meant to limit registration abuse are missing or ineffective:

  • There is no per-address throttle on registration attempts, so an address that is already pending or already registered can be submitted again immediately.
  • The challenge that is supposed to separate humans from scripts is a static question whose answer can be derived from the page itself, so it provides no protection against an automated client.

Impact

The impact described is abuse of the mail-sending infrastructure: an attacker can send repeated registration emails to another address. That is unwanted mail for the recipient, sent through the target's service. The report does not claim account takeover, data exposure or access to other users' accounts, and none should be inferred.

How this kind of bug works

Registration flows usually do three things: check whether the address already exists, create a pending record, and send a confirmation message. Each of those steps costs the server something, and the email step costs the target its sending reputation.

A CAPTCHA is meant to make each submission cost human effort. It fails as a control when the challenge is a fixed question with a fixed answer, when the answer is present in the HTML, when the answer can be computed from the question text, or when the challenge token is not bound to the session and can be replayed. In those cases a script solves it once and reuses the result.

The standard defences are layered: a per-address and per-IP rate limit on registration and resend endpoints, a challenge that is generated per request and validated server-side, and a confirmation token that invalidates earlier pending requests for the same address.

How to test for it

Work only against programs that allow this kind of testing, and keep volumes low.

  1. Register with an address you control and note the response. Do not click the confirmation link.
  2. Submit the same address again. A positive result is a second success response and a second email arriving, rather than an error such as "address already registered" or a silent no-op.
  3. Repeat a small number of times, for example three to five, and check whether every attempt produces a message. Stop there; do not run a loop against a live target.
  4. Inspect the anti-automation control. If it is a question, check whether the answer appears in the page source, in a hidden field, in a JavaScript variable, or can be derived from the question text. If it is a token, check whether the same token is accepted twice.
  5. Check the resend-confirmation endpoint separately, since it often lacks the checks the main form has.

Common false positives: the second email is a duplicate of the first and the server deduplicates at send time; the address is accepted but no mail is sent; a rate limit exists but is keyed on IP and your test IP is not yet limited; the challenge is actually validated server-side even though the answer looks guessable.

How it is fixed

  • Reject registration for an address that is already registered or already pending, with a generic response that does not reveal which.
  • Apply a time window, such as the 24 hours suggested here, before another request for the same address is accepted.
  • Rate limit by address and by source IP on both the registration and resend endpoints.
  • Replace static questions with a challenge that is generated per request, validated server-side, single-use and bound to the session.
  • Invalidate earlier pending tokens when a new one is issued, so only the latest link works.

Hunting notes

This class of bug hides in any feature that triggers an outbound message: sign-up, password reset, email change, invitations, contact forms and notification settings. The resend and "change email" paths are the usual weak points, because they are added later and tested less.

Recon signals: a registration form with a plain-text question, a hidden field holding the expected answer, or a CAPTCHA whose token is reused across submissions. Also look for flows where the pending state is not visible in the UI, which often means it is not enforced on the server either.

Keep the demonstration minimal and stop as soon as the behaviour is proven.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

Weblate is a translation platform, and the demo instance at demo.weblate.org lets anyone try it out. The researcher looked at its sign-up page, the place where a new user creates an account. On most sites that page asks for an email address, then sends a message to that address with a link you click to prove the address is yours. Until you click, the account stays unconfirmed.

The page in question is here:

Text
https://demo.weblate.org/accounts/register/

The researcher found a problem on that page.

  1. The same email address can be submitted again and again. If the confirmation link in the first email is never clicked, nothing stops the form from accepting the same address a second time, a third time, and so on. The researcher describes this as an endless loop of registration requests.
  2. The anti-bot question is too easy. The form includes a question meant to tell humans from scripts. The researcher says any bot that can read the page source can work out the answer and submit it.

The result is that someone can use Weblate's mail system to send repeated mail to another address. The researcher puts it as being able to "spam another email with your service". The emails come from Weblate, so the recipient receives unwanted mail.

A few things are worth being clear about. The report does not include the form's fields, the wording of the question, any request or response, or the exact emails that arrived. It gives no severity rating, no CVSS score and no bounty amount, and it does not say whether a fix was applied.

The suggested fix is a time limit tied to the email address: if an address is already in the database, a new registration request for it should be refused for 24 hours.

Text
if email register in database user cant make register request within 24 hour

Why the two problems matter together

A registration form is a small machine with three jobs: check whether the address is already known, create a pending record, and send a confirmation email. Each of those costs the server something, and the email step costs the site its good name with mail providers.

Normally a CAPTCHA, the little puzzle that asks you to prove you are human, is what makes each repeat cost effort. Here the challenge is a simple question whose answer a bot can work out from the page source. A script reads the page, solves the question once, and submits as often as it likes. The one barrier that would have slowed the loop down is not really there.

What the researcher suggests

The proposed fix is simple and cheap: remember the address, and refuse further registration requests for it for a day. That would refuse further registration requests for that address for 24 hours.

In general, how this kind of bug works

This is a design problem, not a memory bug or an injection flaw. Two controls that are supposed to limit sign-up abuse are missing or ineffective: there is no limit per address on how often you can ask for a registration email, and the human-check question can be answered by a machine.

The usual defences come in layers:

  • Rate limits on registration and on the "resend confirmation" button, counted both per email address and per source IP address.
  • A real challenge, generated fresh for each request, checked on the server, usable only once, and tied to your session.
  • Token invalidation, so that when a new confirmation link is issued, older pending links for the same address stop working.

How to test for it safely

Only test programs that explicitly allow this kind of testing, and keep the volume tiny.

  1. Register with an address you control and note the response. Do not click the confirmation link.
  2. Submit the same address again. A problem is confirmed if you get a second success response and a second email, rather than an error such as "address already registered" or nothing at all.
  3. Repeat a small number of times, three to five is plenty, and check whether every attempt produces a message. Then stop. Do not run a loop against a live site.
  4. Look at the anti-automation control. If it is a question, check whether the answer sits in the page source, in a hidden field, in a JavaScript variable, or can be worked out from the question text. If it is a token, check whether the same token is accepted twice.
  5. Test the resend-confirmation path separately, because it is often added later and checked less.

Common false positives: the second email is a duplicate that the server quietly drops at send time; the address is accepted but no mail goes out; a rate limit exists but is counted per IP and your test IP has not hit it yet; the challenge is actually checked on the server even though the answer looks guessable.

How it is fixed

  • Reject registration for an address that is already registered or already pending, with a generic message that does not reveal which.
  • Apply a time window, such as the 24 hours suggested here, before another request for the same address is accepted.
  • Rate limit by address and by source IP on both the registration and resend endpoints.
  • Replace static questions with a challenge generated per request, validated server-side, single-use and bound to the session.
  • Invalidate earlier pending tokens when a new one is issued, so only the latest link works.

Where to look

This class of bug hides in any feature that sends a message out: sign-up, password reset, email change, invitations, contact forms and notification settings. The resend and "change email" paths are the usual weak points.

Signals worth noticing: a registration form with a plain-text question, a hidden field holding the expected answer, or a CAPTCHA whose token can be reused. Also watch for flows where the pending state is invisible in the interface, which often means it is not enforced on the server either.

Keep the demonstration minimal and stop as soon as the behaviour is proven.

Glossary

  • Registration form: the page where you create an account by giving an email address and other details.
  • Confirmation link: a link sent by email that you click to prove the address belongs to you.
  • Pending account: an account created but not yet confirmed, because the link was never clicked.
  • Request: the message your browser sends to a server when you submit a form or open a page.
  • Response: what the server sends back, such as a page, a redirect or an error.
  • Page source: the HTML text a browser receives, which anyone can view.
  • Bot: a program that performs actions on a website automatically, without a human clicking.
  • CAPTCHA: a puzzle meant to be easy for a person and hard for a program.
  • Rate limit: a rule that allows only so many actions in a given time, per address or per IP.
  • IP address: the numeric address a device uses on a network, often shared by many users.
  • Token: a long random value used to prove a request is legitimate or belongs to a particular session.
  • Session: the server's memory of your visit, usually kept alive by a cookie.
  • Cookie: a small piece of data a site stores in your browser so it can recognise you between requests.
  • Endpoint: a specific URL on a site that performs a particular action.
  • Spam: unwanted bulk email sent to someone who did not ask for it.
  • Sending reputation: how much mail providers trust a domain, which suffers when it sends abuse.
  • False positive: a test result that looks like a bug but is not one.
  • CVSS: a standard scoring system for rating the severity of a security flaw.

More from Weblate

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.