Skip to content
Business logic Write-up Beginner

P3 — Missing Rate Limiting on Sensitive API Endpoint

A sensitive authentication and verification API endpoint accepted many consecutive requests from the same client without any effective server-side throttling. An attacker who knows the request format could automate repeated requests, which may support credential guessing, account enumeration, OTP guessing or resource exhaustion.

akashmotkar001 Follow

Published on medium.com

Bug Bounty

Akash motkar, on medium.com

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.

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. 6 min read.

Context

The target in this write-up is a sensitive API endpoint that handles authentication-related or account-sensitive requests. The report names the affected functionality as an "Authentication / verification API" and gives the endpoint as:

The endpoint accepts POST requests and, according to the report, is responsible for processing authentication-related or account-sensitive operations. The report does not describe the application's business domain, the product around the endpoint, or what a successful verification response looks like. What it does describe is the behaviour of the endpoint under repeated requests from the same client: it kept processing them.

The issue is filed as P3 / Medium, with the vulnerability type given as "Missing Rate Limiting / Unrestricted Request Attempts" and the weakness mapped to CWE-307, Improper Restriction of Excessive Authentication Attempts. The report quotes a CVSS v3.1 score of 6.5 but explicitly labels it an example, noting that the final score should be calculated according to the actual endpoint and impact.

Setup

The testing setup is deliberately minimal. The preconditions stated in the report are:

  1. A valid test account, used to authenticate to the application if authentication is required for the endpoint.
  2. Burp Suite, used to intercept a legitimate request to the endpoint.
  3. Burp Repeater or Intruder, used to replay the request repeatedly.

No versions of Burp Suite, no specific account roles, and no other tooling are mentioned. The report also does not state whether the endpoint required authentication in the tested case; it only says to authenticate "if authentication is required".

Finding it

During testing, the endpoint was observed to accept a large number of consecutive requests from the same client. The report lists the controls that were absent: effective throttling, temporary blocking, progressive delays, CAPTCHA challenges, and other anti-automation mechanisms.

The reasoning is that an attacker who obtains the required request format could automate repeated requests against the endpoint. Because the endpoint is authentication-related, the report links that automation to credential-guessing, account enumeration, abuse of verification mechanisms, and excessive consumption of backend resources. The classification as P3 / Medium rests on two points: exploitation generally requires an attacker to interact repeatedly with the affected functionality, and the ultimate impact depends on the endpoint's purpose and on whether additional security controls are present.

Exploitation

Step 1: authenticate and capture a legitimate request

Authenticate to the application with a valid test account, if authentication is required, then intercept a legitimate request to the affected endpoint in Burp Suite. The captured request is the baseline: its structure is preserved for every subsequent replay.

Step 2: send the request to Repeater or Intruder

Forward the intercepted request to Repeater or Intruder. Either tool works because the test only needs the same request sent many times from the same source.

Step 3: modify only the relevant test parameter

Keep the original request structure intact and change only the parameter under test. The report does not name that parameter or show the request body, so the exact field being varied is not documented here.

Step 4: send multiple consecutive requests from the same source

Replay the request repeatedly from the same client. The report's proof-of-concept section describes the evidence as a sequence of requests:

Text
Request Request Request ...Request

with corresponding timestamps demonstrating that the requests were processed without meaningful throttling. No actual request or response headers, bodies, status codes or timing figures are reproduced in the report.

Step 5: monitor responses and timing

Watch the HTTP responses and the response timing while the requests go out. The point of watching timing is to catch a delay-based throttle that does not change the status code.

Step 6: push past the point where a threshold should apply

Continue the controlled test until the application's configured request threshold should reasonably have been reached. This is the key judgement in the test: the researcher is not relying on a fixed number of requests but on the expectation that a correctly configured application would have reacted by then.

Step 7: observe the absence of throttling

The server continued accepting requests. It did not return 429 Too Many Requests, did not impose a meaningful delay, did not temporarily block the source, and did not otherwise limit the request rate. The observed result is stated plainly: the application continued processing repeated requests from the same client without enforcing an effective server-side rate limit, and no meaningful throttling mechanism was observed during testing.

Root cause

The report does not examine the application's code, so the root cause is described at the level of behaviour: the endpoint lacks server-side rate limiting for a sensitive operation. The expected behaviour is that, after a defined number of requests within a specified time period, the application applies controls such as:

  • 429 Too Many Requests
  • Temporary source or account throttling
  • Progressive request delays
  • CAPTCHA or equivalent anti-automation controls
  • Account-based and IP-based rate limits
  • Appropriate monitoring and alerting

The report adds an important design point: rate limiting should be enforced server-side rather than relying solely on client-side controls. Any client-side limit can be bypassed by an attacker who talks to the API directly. The report does not analyse why existing defences did not stop the test.

Impact

An attacker could automate requests against the affected functionality at a significantly higher rate than intended. Depending on the endpoint's business purpose, the report says this could potentially enable:

  • Automated authentication attempts
  • Abuse of password-reset or verification workflows
  • User/account enumeration
  • Automated token or OTP guessing
  • Excessive resource consumption
  • Increased feasibility of other application-layer attacks

Each of these is hedged on what the endpoint actually does. The report is explicit that the practical impact should be evaluated together with the functionality exposed by the affected endpoint, and that the P3 / Medium rating reflects the need for repeated interaction and the dependence on the endpoint's purpose and on any additional controls.

Fix

The report recommends implementing robust server-side rate limiting for all sensitive and abuse-prone endpoints, combining multiple controls:

  1. Apply per-IP and per-account rate limits.
  2. Return HTTP 429 Too Many Requests when the configured threshold is exceeded.
  3. Introduce progressive delays for repeated failures.
  4. Apply stricter controls to authentication, password-reset, OTP, and verification functionality.
  5. Consider CAPTCHA or equivalent bot-detection mechanisms where appropriate.
  6. Ensure rate limiting cannot be bypassed simply by modifying client-side parameters.
  7. Log and monitor abnormal request patterns.
  8. Consider distributed rate limiting where the application operates across multiple backend instances.

Variants to test

  • Authentication endpoints. Replay a login request with a wrong password many times from one source. A positive result is a long run of normal responses with no 429, no growing delay and no temporary block.
  • Password-reset and verification workflows. Trigger the reset or verification flow repeatedly for the same account. A positive result is that every request is processed, which points at abuse of the workflow and possible enumeration.
  • OTP and token verification. Submit guesses against the verification endpoint at speed. A positive result is that the endpoint keeps evaluating guesses without a lockout or delay.
  • Per-account versus per-IP limits. Repeat the test from a single IP against one account, then spread requests across accounts from the same IP. A positive result is that one dimension is limited and the other is not, showing a gap in the control.
  • Distributed backends. Send requests through a load-balanced setup and watch whether the counter resets when a different backend instance answers. A positive result is that the effective limit is higher than configured.
  • Client-side-only controls. Strip or modify any client-side throttling parameters and replay. A positive result is that the server accepts the requests anyway, confirming the limit was never enforced server-side.

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. 13 min read.

What happened, in plain words

A security researcher found that one of a website's private, machine-facing addresses (an API endpoint) would keep answering the same request over and over again, no matter how many times it was sent from the same computer. That endpoint was the kind used for checking who you are: logging in, verifying an account, confirming a code. Normally a well-built site notices when one visitor hammers the same door hundreds of times in a row and slows them down, blocks them for a while, or asks them to prove they are human. This one did not. It just kept answering.

That matters because the whole point of such an endpoint is to check secrets: passwords, one-time codes, account names. If nothing limits how fast you can ask, a program can make repeated guesses far faster than a person. The researcher rated the problem P3 / Medium: real, worth fixing, but not the kind of flaw that hands over an account in one shot. It needs an attacker to keep trying, and how bad it gets depends on what the endpoint actually does.

This article walks through the report from the beginning, explaining every term as it appears, so you can follow it with nothing more than a browser and a normal computer.

The basics you need first

Before the details, a handful of ideas that the rest of the article leans on.

  • A website is two halves. There is what you see in the browser (buttons, forms, pages) and there is a server, a computer somewhere else that stores the data and does the work. Your browser asks the server questions and the server answers.
  • An API is the server's question-and-answer service meant for programs rather than people. Think of a restaurant: the dining room is the website you see, and the kitchen door where waiters hand in orders is the API. You never walk into the kitchen yourself, but a program can knock on that door directly, without using the pretty dining room at all. That is exactly what a security tester does.
  • An endpoint is one specific door in that kitchen. It has an address (a URL) and it accepts one kind of knock (an HTTP method such as POST).
  • HTTP methods are verbs. GET means "give me something". POST means "here is some data, do something with it". Login and verification requests are POST because you are sending a password or a code.
  • A request is the message your browser or program sends: which door, which verb, and any data attached. A response is the server's reply, including a status code.
  • Status codes are three-digit numbers. 200 means fine. 429 means "too many requests, slow down". The absence of a 429 is central to this story.
  • Rate limiting is the bouncer at the door counting how many times each person comes in per minute. After a set number, the bouncer says no for a while. Throttling is the same idea: deliberately slowing someone down.
  • A CAPTCHA is the puzzle that asks you to prove you are human. It exists precisely because programs can send requests far faster than people.
  • A token or cookie is a small piece of proof that you already logged in, like a wristband at an event. Your browser shows it on every request so the server knows who you are without asking for your password again.
  • An OTP is a one-time password, the short code sent by text or email. If you can guess it by trying many codes quickly, the code stops protecting anything.
  • Account enumeration means figuring out which usernames or email addresses exist on a site, usually by noticing that the site answers differently for real and fake accounts.
  • Burp Suite is a program used by testers that sits between your browser and the server, letting you see each request, change it, and send it again as many times as you like. Repeater is the part that resends one request on demand. Intruder is the part that sends it many times automatically.
  • CWE-307 is a catalogue number for a known kind of weakness: not restricting how many times someone can try to log in. CVSS is a scoring system that turns a flaw into a number out of ten so teams can compare severity.

The target

The report concerns a sensitive API endpoint that handles authentication-related or account-sensitive requests. The affected functionality is named as an "Authentication / verification API", and the endpoint is given as:

Line by line:

  • POST is the verb: the client is sending data and asking the server to act on it, not just fetching a page.
  • https:// means the connection is encrypted, so nobody in between can read the contents.
  • target.example is a placeholder hostname. The real site's name has been replaced so the report can be published safely.
  • /api/v1/auth/verify is the path to the specific door. api says it is the machine-facing service, v1 is a version number, auth says it is about authentication, and verify says it checks something, most likely a code or a credential.

The endpoint accepts POST requests and, per the report, processes authentication-related or account-sensitive operations. The report does not describe the site's business, the product around the endpoint, or what a successful verification reply looks like. What it does describe is how the endpoint behaved when the same client sent request after request: it kept processing them.

The issue is filed as P3 / Medium, with the vulnerability type "Missing Rate Limiting / Unrestricted Request Attempts" and the weakness mapped to CWE-307, Improper Restriction of Excessive Authentication Attempts. The report quotes a CVSS v3.1 score of 6.5 but labels it an example, noting that the final score should be calculated according to the actual endpoint and impact.

Setting up the test

The setup is deliberately minimal. The report states three preconditions:

  1. A valid test account, used to log in to the application if the endpoint requires it.
  2. Burp Suite, used to intercept a legitimate request to the endpoint.
  3. Burp Repeater or Intruder, used to replay that request repeatedly.

No Burp Suite versions, no specific account roles and no other tools are mentioned. The report also does not say whether the endpoint actually required authentication in the tested case; it only says to log in "if authentication is required".

Why this setup: you cannot test how a door behaves under repeated knocking unless you first capture one real, working knock. Intercepting a genuine request gives you the exact shape the server expects, so every replay is realistic rather than a guess.

Finding it

During testing, the endpoint was seen to accept a large number of consecutive requests from the same client. The report lists the controls that were missing: effective throttling, temporary blocking, progressive delays, CAPTCHA challenges, and other anti-automation mechanisms.

The reasoning is that an attacker who obtains the required request format could automate repeated requests against the endpoint. Because the endpoint is authentication-related, the report ties that automation to credential-guessing, account enumeration, abuse of verification mechanisms, and excessive consumption of backend resources. The P3 / Medium rating rests on two points: exploitation generally requires an attacker to interact repeatedly with the affected functionality, and the ultimate impact depends on the endpoint's purpose and on whether other security controls are present.

Exploitation, step by step

Step 1: log in and capture a legitimate request

Log in to the application with a valid test account, if authentication is required, then intercept a legitimate request to the affected endpoint in Burp Suite. The captured request is the baseline: its structure is preserved for every replay.

Why: the baseline is your template. If you change the shape of the request, the server may reject it for the wrong reason and you learn nothing about rate limiting.

Step 2: send the request to Repeater or Intruder

Forward the intercepted request to Repeater or Intruder. Either works because the test only needs the same request sent many times from the same source.

Why: Repeater is for sending one request again and again by hand, watching each reply. Intruder is for sending it many times automatically. Both answer the same question: does the server ever say stop?

Step 3: change only the relevant test parameter

Keep the original request structure intact and change only the parameter under test. The report does not name that parameter or show the request body, so the exact field being varied is not documented here.

Why: changing one thing at a time is how you know what caused what. If you alter several fields and the server reacts, you cannot tell which change mattered.

Step 4: send many requests in a row from the same source

Replay the request repeatedly from the same client. The report's proof-of-concept section describes the evidence as a sequence of requests:

Text
Request Request Request ...Request

with corresponding timestamps demonstrating that the requests were processed without meaningful throttling. No actual request or response headers, bodies, status codes or timing figures are reproduced in the report.

Line by line:

  • Request Request Request stands for the same captured request being sent over and over.
  • ...Request means the sequence continues for as long as the test needs.
  • The timestamps are the clock readings for each send, which prove how fast the requests went out and that the server kept up.

Why: the evidence for "no rate limit" is simply a long, fast run of requests that all got normal answers. The timestamps are what make that run believable to a reviewer.

Step 5: watch the responses and the timing

Watch the HTTP responses and the response timing while the requests go out. The point of watching timing is to catch a delay-based throttle that does not change the status code.

Why: a server can slow you down without ever saying 429. If replies start taking longer and longer, that is a form of throttling too, and you would miss it if you only looked at status codes.

Step 6: push past the point where a limit should apply

Continue the controlled test until the application's configured request threshold should reasonably have been reached. This is the key judgement in the test: the researcher is not relying on a fixed number of requests but on the expectation that a correctly configured application would have reacted by then.

Why: there is no universal magic number. The tester's argument is that any reasonable limit would have kicked in by this point, and it did not.

Step 7: observe the absence of throttling

The server kept accepting requests. It did not return 429 Too Many Requests, did not impose a meaningful delay, did not temporarily block the source, and did not otherwise limit the request rate. The observed result is stated plainly: the application continued processing repeated requests from the same client without enforcing an effective server-side rate limit, and no meaningful throttling mechanism was observed during testing.

Why it happens

Because the report does not examine the application's code, the root cause is described at the level of behaviour: the endpoint lacks server-side rate limiting for a sensitive operation. The expected behaviour is that, after a defined number of requests within a specified time period, the application applies controls such as:

  • 429 Too Many Requests
  • Temporary source or account throttling
  • Progressive request delays
  • CAPTCHA or equivalent anti-automation controls
  • Account-based and IP-based rate limits
  • Appropriate monitoring and alerting

The report adds an important design point: rate limiting should be enforced server-side rather than relying solely on client-side controls. Any client-side limit can be bypassed by an attacker who talks to the API directly. The report does not analyse why existing defences did not stop the test.

What an attacker could do with it

An attacker could automate requests against the affected functionality at a significantly higher rate than intended. Depending on the endpoint's business purpose, the report says this could potentially enable:

  • Automated authentication attempts
  • Abuse of password-reset or verification workflows
  • User/account enumeration
  • Automated token or OTP guessing
  • Excessive resource consumption
  • Increased feasibility of other application-layer attacks

Each of these is hedged on what the endpoint actually does. The report is explicit that the practical impact should be evaluated together with the functionality exposed by the affected endpoint, and that the P3 / Medium rating reflects the need for repeated interaction and the dependence on the endpoint's purpose and on any additional controls.

The fix

The report recommends implementing robust server-side rate limiting for all sensitive and abuse-prone endpoints, combining multiple controls:

  1. Apply per-IP and per-account rate limits.
  2. Return HTTP 429 Too Many Requests when the configured threshold is exceeded.
  3. Introduce progressive delays for repeated failures.
  4. Apply stricter controls to authentication, password-reset, OTP, and verification functionality.
  5. Consider CAPTCHA or equivalent bot-detection mechanisms where appropriate.
  6. Ensure rate limiting cannot be bypassed simply by modifying client-side parameters.
  7. Log and monitor abnormal request patterns.
  8. Consider distributed rate limiting where the application operates across multiple backend instances.

Other places to try the same test

  • Authentication endpoints. Replay a login request with a wrong password many times from one source. A positive result is a long run of normal responses with no 429, no growing delay and no temporary block.
  • Password-reset and verification workflows. Trigger the reset or verification flow repeatedly for the same account. A positive result is that every request is processed, which points at abuse of the workflow and possible enumeration.
  • OTP and token verification. Submit guesses against the verification endpoint at speed. A positive result is that the endpoint keeps evaluating guesses without a lockout or delay.
  • Per-account versus per-IP limits. Repeat the test from a single IP against one account, then spread requests across accounts from the same IP. A positive result is that one dimension is limited and the other is not, showing a gap in the control.
  • Distributed backends. Send requests through a load-balanced setup and watch whether the counter resets when a different backend instance answers. A positive result is that the effective limit is higher than configured.
  • Client-side-only controls. Strip or modify any client-side throttling parameters and replay. A positive result is that the server accepts the requests anyway, confirming the limit was never enforced server-side.

Glossary

  • API: the part of a website built for programs to talk to, rather than for people clicking pages.
  • Endpoint: one specific address and method on an API that accepts a particular kind of request.
  • HTTP method: the verb of a request, such as GET (fetch) or POST (send data and act on it).
  • Request: the message a browser or program sends to a server.
  • Response: the server's reply to a request, including a status code.
  • Status code: a three-digit number in a response, such as 200 (fine) or 429 (too many requests).
  • 429 Too Many Requests: the status code meaning the server is refusing because you asked too often.
  • Rate limiting: capping how many requests a client may make in a given time.
  • Throttling: deliberately slowing a client down instead of refusing outright.
  • Progressive delay: making each repeated attempt wait a little longer than the last.
  • CAPTCHA: a puzzle meant to prove a human, not a program, is making the request.
  • Anti-automation control: any measure that makes it hard for a program to repeat an action at speed.
  • Server-side: enforced on the server, where the client cannot tamper with it.
  • Client-side: enforced in the browser or app, which an attacker can bypass by talking to the API directly.
  • Cookie: a small piece of data the browser stores and sends back to prove who you are.
  • Token: a piece of proof of identity or permission, similar in role to a cookie.
  • OTP: a one-time password, a short code valid for a single use.
  • Credential guessing: trying many passwords or usernames in the hope one works.
  • Account enumeration: discovering which accounts exist by observing how a site responds.
  • Burp Suite: a tool that sits between browser and server so a tester can view, edit and resend requests.
  • Repeater: the Burp Suite feature for resending one request on demand.
  • Intruder: the Burp Suite feature for sending a request many times automatically.
  • Parameter: one named field inside a request, such as a username or a code.
  • CWE-307: the catalogue entry for not restricting excessive login attempts.
  • CVSS: a scoring system that rates the severity of a security flaw out of ten.
  • P3 / Medium: a priority and severity label meaning a real issue that is not the most urgent.
  • Load balancing: spreading incoming requests across several servers so no single one is overwhelmed.
  • Distributed rate limiting: counting requests across all servers together, so the limit holds no matter which server answers.

More by akashmotkar001

View all

7 more disclosed reports, best first.

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.