Skip to content
Business logic Disclosed report Beginner

Missing rate limiting on password reset functionality allows to send lot of emails

The password reset endpoint on a Nextcloud-based service lacked effective rate limiting, allowing an attacker to send many reset emails by rotating source IP addresses. This could lead to email service costs, storage exhaustion, and service slowdown.

primebeast Follow

Originally disclosed on HackerOne

Bounty$100 Low 3.7 View original
  • Triaged in 11 days
  • Fixed in 2 months
  • Paid in 2 months
  • Disclosed after 6 months

Summary by the program

https://github.com/nextcloud/security-advisories/security/advisories/GHSA-492h-596q-xr2f

The report

On next cloud after signing up You can reset your password here : https://support.nextcloud.com/#password_reset The mail you will get will redirect you to a website named Wokli. And there you can also reset password using : https://ppp.woelkli.com/login

Here you can bypass the rate limit using IP rotate extension of burp suite.

Steps to reproduce:

  1. Go to https://ppp.woelkli.com/login
  2. Enter your mail and click on reset password and intercept the request. The request will be something like this

POST /lostpassword/email HTTP/2 Host: ppp.woelkli.com Cookie: __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; oc_sessionPassphrase=YbNqNZBiBLj69oHQyf2o9Kcd9jlMXTrBm1Wv0xyF7aY4VI6t%2FTizoufLy8m0lU%2BHZ%2F0mCRK%2FC6VSZYjmztLv%2FQfYbjZxKVA0GtwP2q80D744o7CztCkWEtjQpvBK7jtX; ock6rp1oyjad=44hbnjo8uc6jjih95vtvie80kc User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:103.0) Gecko/20100101 Firefox/103.0 Accept: application/json, text/plain, / Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/json;charset=utf-8 Requesttoken: elTOLCp7a4nWX2tjz/8iSI1fDGEd8Qfqi5GpX/RNPlM=:LX++HX0TDvGabxMXp4taJ9cUVSlvq2XTvaTlHrUOByk= Content-Length: 30 Origin: https://ppp.woelkli.com Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin Te: trailers

{"user":"[email protected]"}

  1. Now send the request to repeater and try to resend it . After 7 to 8 tries it will give a rate limit and a response code of 429.
  2. To bypass it login to your IP rotate and send the above request to intruder and and turn ON IP rotate and set the intruder to null payloads.
  3. You will get lots of emails of reset password.

Solution: I Will Recommend You To Add A ReCaptcha & Sort Of Something Which Requires Manual Human Interaction To Proceed Like You Can Add Captcha Like 2+2=___ so that it cannot be brute forced and you also can have a limit at the backend for particular number upto 5 times a day user can request Forget Password Email or Link something like that will prevent you from someone exploiting this vulnerability

Impact

If You Are Using Any Email Service Software API Or Some Tool Which Costs You For Your Email This Type Of Attack Can Result You In Financial Lose And It Can Also Slow Down Your Services It Can Take Bulk Of Storage In Sent Mail Although If Users Are Affected By This Vulnerability They Can Stop Using Your Services Which Can Lead To Business Risk

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Nextcloud is a self-hosted file sync and collaboration platform. The report concerns the password reset flow of a Nextcloud deployment reachable at https://ppp.woelkli.com/login, which the researcher reached after signing up on Nextcloud and following the password reset link at https://support.nextcloud.com/#password_reset. The reset email redirects the user to a site named Wokli, where the same reset can be performed through the login page above.

The feature under test is the standard "forgot password" endpoint that accepts an email address and triggers a reset email. The program's advisory for this issue is published as GHSA-492h-596q-xr2f in the Nextcloud security advisories repository.

Setup

  • A Nextcloud account created through sign-up, with an email address associated with it.
  • Burp Suite, including Repeater, Intruder and the IP rotate extension.
  • An IP rotation service that Burp's IP rotate extension can drive.
  • No special role or privilege is needed: the reset endpoint is reachable unauthenticated.

Finding it

The researcher noticed that the password reset request could be repeated and that the server eventually responded with a rate limit, returning HTTP 429 after roughly 7 to 8 attempts. The researcher bypassed the limit by rotating the source IP between requests, and each request produced another reset email.

Exploitation

Step 1: Open the login page

Go to https://ppp.woelkli.com/login.

Step 2: Submit a reset and intercept the request

Enter the email address and click reset password, with the proxy intercepting. The captured request looks like this:

HTTP
POST /lostpassword/email HTTP/2
Host: ppp.woelkli.com
Cookie: __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; oc_sessionPassphrase=[redacted]; ock6rp1oyjad=[redacted]
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:103.0) Gecko/20100101 Firefox/103.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json;charset=utf-8
Requesttoken: [redacted]
Content-Length: 30
Origin: https://ppp.woelkli.com
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Te: trailers

{"user":"[redacted]"}

The request targets /lostpassword/email on the host, sends the session cookies and the CSRF Requesttoken header, and carries the target account's email address in the JSON body under the user key. The Content-Type is application/json;charset=utf-8, and the Accept header asks for JSON, so the response is handled by the client-side code rather than a full page render.

Step 3: Resend in Repeater to find the limit

Send the request to Repeater and resend it repeatedly. After 7 to 8 tries the server returns a rate limit response with status code 429.

Step 4: Bypass with IP rotation in Intruder

Send the same request to Intruder, enable IP rotate, and configure Intruder to use null payloads. Each request then originates from a different IP, so the per-client counter is never reached.

Step 5: Observe the result

With the rotation in place, the researcher received many password reset emails for the target address.

Root cause

The rate limit on /lostpassword/email was bypassed by rotating the source IP address between requests. Rotating the source IP between requests means each request is treated as a fresh client, so the counter that produced the 429 after 7 to 8 attempts never accumulates.

The report does not describe the server-side implementation, so the exact key used for the limit is inferred from the behaviour rather than shown.

Impact

The researcher frames the impact around cost and availability. If the deployment uses an email service API or tool that charges per message, this kind of attack can cause financial loss. It can also slow down services and consume bulk storage in the sent mail folder. The researcher also notes a business risk: users affected by the vulnerability may stop using the service.

The severity recorded for the report is low, with a CVSS score of 3.7, and a bounty of 100.00 USD was paid. The attack requires only an email address for the target account and does not by itself give access to the account.

Fix

The researcher recommends two measures:

  1. Add a CAPTCHA or similar challenge that requires manual human interaction, for example a simple arithmetic question such as 2+2=___, so the flow cannot be automated.
  2. Enforce a backend limit per user, for example up to 5 password reset emails per day.

The report does not state which of these, if any, was implemented; the program's summary points to the published advisory GHSA-492h-596q-xr2f for the resolution.

Variants to test

  • Other reset endpoints. Try the same rotation against any endpoint that sends email, such as account confirmation, email change confirmation or invitation flows. A positive result is a 429 that disappears when the source IP changes and a new email arriving for each request.
  • Other rate-limit keys. If the limit is keyed on a header rather than the IP, try varying that header. A positive result is the same pattern: the limit triggers, then stops triggering once the key changes.
  • Session-bound limits. Check whether the limit is tied to the session cookie by dropping the cookie between requests. A positive result is that the 429 no longer appears without any IP change.
  • Per-account versus per-client limits. Send requests for several different addresses from one IP and for one address from many IPs. A positive result is that the per-account counter is absent while the per-client counter is present.

Hunting notes

Password reset and other email-sending endpoints are good candidates because they are unauthenticated, cheap to call and have a visible side effect (the email) that confirms success. During recon, look for endpoints such as /lostpassword/email and any JSON API that accepts an address and returns a status. The signal to watch for is a 429 after a small number of requests: that tells you a limit exists and is worth probing for the key it uses. The researcher demonstrated impact by showing that the limit could be bypassed with IP rotation and that each bypassed request produced another email.

Difficulty

beginner

The technique is a straightforward replay of a captured request with an IP rotation proxy; no custom tooling or deep knowledge of the target's internals is required.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

Nextcloud is a piece of software that organisations install on their own servers to share files and work together, a bit like running your own private version of a cloud drive. One of its everyday features is "forgot password": you type your email address into a login page, the server sends you an email with a link, and you use that link to set a new password.

Sending an email costs the server something, and if someone can make the server send thousands of emails on demand, that is a problem. To prevent this, servers usually count how many times a single visitor asks for a reset and stop answering after a few tries. That stopping mechanism is called rate limiting, and the answer it gives is an HTTP status code 429, which means "too many requests".

The researcher found that the reset page at https://ppp.woelkli.com/login did have such a limit: after roughly 7 to 8 requests it started returning 429. But the limit seemed to count requests per visitor, identified by the visitor's IP address (the numeric address a computer uses on the internet, like a postal address for network traffic). By sending each request from a different IP address, the researcher made every request look like it came from a brand new visitor, so the counter never filled up. The result was a large number of password reset emails sent to one address.

This is a missing or bypassable rate limiting issue. The report is rated low severity, with a CVSS score of 3.7, and a bounty of 100.00 USD was paid. The attack needs only the target's email address and does not give access to the account itself.

The product and the feature

Nextcloud is a self-hosted file sync and collaboration platform. "Self-hosted" means the organisation runs it on its own infrastructure rather than using someone else's service. The deployment in this report is reachable at https://ppp.woelkli.com/login, which the researcher reached after signing up on Nextcloud and following the password reset link at https://support.nextcloud.com/#password_reset. The reset email redirects the user to a site named Wokli, where the same reset can be performed through the login page above.

The feature under test is the standard "forgot password" endpoint. An endpoint is simply a specific address on a server that accepts a particular kind of request, like a counter in a shop that deals with one type of transaction. This endpoint accepts an email address and triggers a reset email. The program's advisory for this issue is published as GHSA-492h-596q-xr2f in the Nextcloud security advisories repository.

What you need before starting

  • A Nextcloud account created through sign-up, with an email address associated with it.
  • Burp Suite, a tool that sits between your browser and the server so you can look at and change the requests your browser sends. It includes Repeater (resend one request by hand, as many times as you like) and Intruder (send a request many times automatically, optionally changing parts of it each time), plus the IP rotate extension.
  • An IP rotation service that Burp's IP rotate extension can drive. This is a service that gives you a different outgoing IP address for each request, like posting letters from a different post office every time.
  • No special role or privilege is needed: the reset endpoint is reachable without logging in.

Finding it

The researcher noticed that the password reset request could be repeated and that the server eventually responded with a rate limit, returning HTTP 429 after roughly 7 to 8 attempts. The researcher bypassed the limit by rotating the source IP between requests, and each request produced another reset email.

Exploitation

Step 1: Open the login page

Go to https://ppp.woelkli.com/login.

This is the ordinary login page of the deployment. Nothing unusual happens here; it is the starting point where the "forgot password" link lives.

Step 2: Submit a reset and intercept the request

Enter the email address and click reset password, with the proxy intercepting. Intercepting means Burp pauses the request before it leaves your computer so you can read it. The captured request looks like this:

HTTP
POST /lostpassword/email HTTP/2
Host: ppp.woelkli.com
Cookie: __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; oc_sessionPassphrase=[redacted]; ock6rp1oyjad=[redacted]
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:103.0) Gecko/20100101 Firefox/103.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json;charset=utf-8
Requesttoken: [redacted]
Content-Length: 30
Origin: https://ppp.woelkli.com
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Te: trailers

{"user":"[redacted]"}

Line by line, in plain words:

  • POST /lostpassword/email HTTP/2: this is the request line. POST is the method used when you are sending data to the server (as opposed to GET, which just asks for a page). /lostpassword/email is the endpoint that handles the forgot-password action. HTTP/2 is the version of the language the browser and server use to talk.
  • Host: ppp.woelkli.com: which website the request is for. One server can host many sites, so the request has to say which one it means.
  • Cookie: ...: cookies are small pieces of text the server asked your browser to store earlier, and the browser sends them back with every request so the server can recognise you. Here they include two __Host-nc_sameSite... cookies (settings that control when cookies are sent), a session passphrase cookie, and a session identifier cookie. A session is the server's memory of your current visit; the cookie is the ticket that lets the server look up that memory.
  • User-Agent: ...: tells the server which browser and operating system you are using. Here it claims Firefox 103 on macOS.
  • Accept: application/json, text/plain, */*: tells the server which formats of answer you can handle. It prefers JSON, a text format for structured data, and will accept anything else as a fallback.
  • Accept-Language: en-US,en;q=0.5: which human languages you prefer, with a rough preference weight.
  • Accept-Encoding: gzip, deflate: which compression methods you can handle, so the server can shrink the answer to save bandwidth.
  • Content-Type: application/json;charset=utf-8: says the body of the request is JSON text, encoded in UTF-8 (a standard way of representing characters).
  • Requesttoken: ...: a CSRF token. CSRF stands for Cross-Site Request Forgery, an attack where another website tricks your browser into sending a request you did not intend. The token is a secret value the server gave your session, and the server checks it to confirm the request really came from its own page. Think of it as a stamped form that only the real office could have issued.
  • Content-Length: 30: the size of the body in bytes, so the server knows how much to read.
  • Origin: https://ppp.woelkli.com: which site the request was sent from. Servers use this to decide whether to allow the request.
  • Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site: modern browser headers that describe the context of the request (what kind of resource it is for, whether it is cross-site, and so on).
  • Te: trailers: tells the server the client can accept trailing headers after the body.
  • The blank line, then {"user":"[redacted]"}: the body. It is a small JSON object with one key, user, whose value is the email address of the account to reset. This is the part that actually says "send a reset email to this address".

The request targets /lostpassword/email on the host, sends the session cookies and the CSRF Requesttoken header, and carries the target account's email address in the JSON body under the user key. The Content-Type is application/json;charset=utf-8, and the Accept header asks for JSON, so the response is handled by the client-side code rather than a full page render. In other words, the page does not reload; a script in the page receives the answer and shows a message.

Step 3: Resend in Repeater to find the limit

Send the request to Repeater and resend it repeatedly. After 7 to 8 tries the server returns a rate limit response with status code 429.

Why do this? Because you want to see whether a limit exists at all, and how many requests it allows before it kicks in. Repeater is perfect for this: it sends exactly the same request again and again, so any change in the answer comes from the server, not from you. The 429 is the server saying "slow down".

Step 4: Bypass with IP rotation in Intruder

Send the same request to Intruder, enable IP rotate, and configure Intruder to use null payloads. Each request then originates from a different IP, so the per-client counter is never reached.

A null payload means Intruder sends the request unchanged, with no inserted values; it is just a way of saying "send this many identical copies". The IP rotate extension makes each copy leave from a different address. If the server counts requests per address, every copy looks like the first request from a new visitor, and the count never reaches the limit.

Step 5: Observe the result

With the rotation in place, the researcher received many password reset emails for the target address. That is the proof: each email is a separate message the server was made to send, and each one costs the service something.

Why it works

The rate limit on /lostpassword/email was bypassed by rotating the source IP address between requests. Rotating the source IP between requests means each request is treated as a fresh client, so the counter that produced the 429 after 7 to 8 attempts never accumulates.

A useful comparison: imagine a shop that gives one free sample per customer, and recognises customers only by the colour of their coat. Change your coat each time and you get as many samples as you like. The shop's rule is real, but the way it identifies a customer is too easy to change.

The report does not describe the server-side implementation, so the exact key used for the limit is inferred from the behaviour rather than shown.

Impact

The researcher frames the impact around cost and availability. If the deployment uses an email service API or tool that charges per message, this kind of attack can cause financial loss. An API here is simply a way for one piece of software to ask another to do something, in this case "send this email". It can also slow down services and consume bulk storage in the sent mail folder. The researcher also notes a business risk: users affected by the vulnerability may stop using the service.

The severity recorded for the report is low, with a CVSS score of 3.7, and a bounty of 100.00 USD was paid. CVSS is a standard scoring system for how serious a vulnerability is. The attack requires only an email address for the target account and does not by itself give access to the account.

Fix

The researcher recommends two measures:

  1. Add a CAPTCHA or similar challenge that requires manual human interaction, for example a simple arithmetic question such as 2+2=___, so the flow cannot be automated. A CAPTCHA is a small puzzle that is easy for a person and hard for a program, which stops scripts from sending requests in bulk.
  2. Enforce a backend limit per user, for example up to 5 password reset emails per day. "Backend" means the server side, where the real checks should live, rather than in the browser where an attacker can change them.

The report does not state which of these, if any, was implemented; the program's summary points to the published advisory GHSA-492h-596q-xr2f for the resolution.

Other places to try the same idea

  • Other reset endpoints. Try the same rotation against any endpoint that sends email, such as account confirmation, email change confirmation or invitation flows. A positive result is a 429 that disappears when the source IP changes and a new email arriving for each request.
  • Other rate-limit keys. If the limit is keyed on a header rather than the IP, try varying that header. A positive result is the same pattern: the limit triggers, then stops triggering once the key changes.
  • Session-bound limits. Check whether the limit is tied to the session cookie by dropping the cookie between requests. A positive result is that the 429 no longer appears without any IP change.
  • Per-account versus per-client limits. Send requests for several different addresses from one IP and for one address from many IPs. A positive result is that the per-account counter is absent while the per-client counter is present.

Notes for your own testing

Password reset and other email-sending endpoints are good candidates because they are unauthenticated, cheap to call and have a visible side effect (the email) that confirms success. During recon, look for endpoints such as /lostpassword/email and any JSON API that accepts an address and returns a status. The signal to watch for is a 429 after a small number of requests: that tells you a limit exists and is worth probing for the key it uses. The researcher demonstrated impact by showing that the limit could be bypassed with IP rotation and that each bypassed request produced another email.

Difficulty

beginner. The technique is a straightforward replay of a captured request with an IP rotation proxy; no custom tooling or deep knowledge of the target's internals is required.

Glossary

  • API: a way for one piece of software to ask another to do something, such as send an email.
  • Backend: the server side of an application, where the real checks and data live.
  • Burp Suite: a tool that sits between your browser and a server so you can inspect and change requests.
  • CAPTCHA: a small puzzle that is easy for a person and hard for a program, used to stop automation.
  • Cookie: a small piece of text a server asks your browser to store and send back with later requests, so the server can recognise you.
  • CSRF (Cross-Site Request Forgery): an attack where another website tricks your browser into sending a request you did not intend.
  • CSRF token: a secret value tied to your session that the server checks to confirm a request came from its own page.
  • CVSS: a standard scoring system for how serious a vulnerability is.
  • Endpoint: a specific address on a server that accepts a particular kind of request.
  • HTTP 429: the status code meaning "too many requests", used when a rate limit is hit.
  • Intruder: the part of Burp Suite that sends a request many times automatically, optionally changing parts of it each time.
  • IP address: the numeric address a computer uses on the internet, like a postal address for network traffic.
  • IP rotation: sending each request from a different IP address, so the server sees each one as a new visitor.
  • JSON: a text format for structured data, made of keys and values.
  • Null payload: an Intruder setting that sends the request unchanged, with no inserted values.
  • Rate limiting: a server rule that stops answering after too many requests in a period.
  • Recon: the early phase of testing where you look around to find interesting endpoints and behaviour.
  • Repeater: the part of Burp Suite that resends one request by hand as many times as you like.
  • Request: the message your browser sends to a server asking it to do something.
  • Response: the message a server sends back.
  • Self-hosted: software an organisation runs on its own infrastructure rather than using someone else's service.
  • Session: the server's memory of your current visit, usually identified by a cookie.
  • User-Agent: a header that tells the server which browser and operating system you are using.
  • UTF-8: a standard way of representing characters as bytes.

More from Nextcloud

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.