Skip to content
CSRF Disclosed report Beginner

Spamming any user from Reset Password Function

The password reset form's authenticity token could be reused many times instead of being single-use, so an attacker who knows a victim's email address could send them repeated reset emails. The reporter suggests this could be automated, possibly combined with CSRF, to send dozens of emails with one click.

coolboss Follow

Originally disclosed on HackerOne

  • Disclosed after 23 months

It is possible to spam any user whose email-id is known.

This can be combined with csrf attack i.e automated to send 50 emails with a click.

This is reset password form --->

<form accept-charset="UTF-8" action="https://hackerone.com/users/password" class="new_user" id="new_user" method="post"><div style=""><input name="utf8" value="✓" type="hidden"><input name="authenticity_token" value="AjjZNIMzdX598CXInx9CMbovtHbiqL+ziw4qTJ7RFnZQh/oub+mYFKjjNb1TXyITVCpkFPJ21ViG4IQz72KbMQ==" type="hidden"></div> <h1 class="narrow-title">Forgot password</h1> <div class="narrow-container"> <p>To retrieve your password enter the email address you used to sign up.</p>
<div class="input-wrapper-small">
  <input autofocus="autofocus" class="input" id="user_email" name="user[email]" placeholder="Email address" type="email">
</div>

<input class="button success is-full-width" data-disable-with="Sending..." name="commit" value="Send" type="submit">
</div> </form>

Here, <input name="authenticity_token" value="AjjZNIMzdX598CXInx9CMbovtHbiqL+ziw4qTJ7RFnZQh/oub+mYFKjjNb1TXyITVCpkFPJ21ViG4IQz72KbMQ==" type="hidden">

authencity token can be used more than one. Users can be spammed heavily by just simple coding a script. Only email-id should be known.

I tried it on my own account. I was able to use the token for more than 5 attempts. This is not best practice. Only one try must be allowed.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server did not invalidate the form's authenticity token after it was used, allowing the same token to authorise repeated password reset submissions.

Impact

An attacker who knows a user's email address could repeatedly trigger password reset emails, potentially flooding the victim's inbox, and the reporter claims this could be automated with a CSRF attack.

What the attacker needed

Knowledge of the victim's email address; ability to submit the reset form

The fix

The reset form should allow only one use per authenticity token.

How it was found

  1. Open the forgot password form and note the hidden authenticity token.
  2. Submit the form with a known email address.
  3. Reuse the same token to submit the form again several times.
  4. Observe that the requests keep succeeding beyond a single attempt.

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 report has not been written yet. The Original tab links to the source.

When you submit a web form, the site often includes a hidden random value called a token to confirm the request really came from its own page. Normally such a token should stop working after one use. Here it kept working, so someone could keep re-sending the 'forgot password' request over and over to fill a person's inbox with reset emails.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by coolboss

View all

13 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.