Glossary · Cross-cutting
Rate limiting
- Area
- Both strands
Rate limiting restricts how often a user or a program may send requests to an application or an interface within a given period.
The OWASP API Security Top 10 recommends such a limit for APIs API An API (application programming interface) is a defined set of functions and rules that lets one piece of software use the features or data of another system or service. Read in the glossary → , capping how often each client may call an API in a set period. How a server signals that the limit has been reached is set out in the Internet Engineering Task Force's RFC 6585. Status code 429 says that the user has sent too many requests within a certain time. The standard leaves open how the server identifies the user and how it counts requests, so both are the operator's decision.
OWASP also recommends throttling individual operations, for example validating a one-time password or requesting a password reset. For organisations that follow IT-Grundschutz, the web application module of the Compendium, Edition 2023 (in German), has two relevant Basic Requirements, though neither uses the term. Under APP.3.1.A1, appropriate thresholds for failed login attempts must be defined. APP.3.1.A7 requires protection against unauthorised automated use; that protection must take account of its effect on authorised users.
OWASP's cheat sheet on credential stuffing describes where rate limiting may fall short. Many toolkits spread their requests over a great many IP addresses, so each address may send too few requests for the limit to take effect.
In two projects we built for pharma logistics Pharma logistics Pharma logistics is the term we use for storing, transporting and delivering medicinal products and other pharma-sector goods, such as promotional material and supplies for patients. Read in the glossary → , a knowledge platform and a stock alert application, login attempts are throttled to counter password guessing.
Where the term appears
See also
-
Credential stuffing
Credential stuffing is an automated attack in which username and password pairs stolen elsewhere are tried in bulk against the login of another service.
E-commerce
-
Denial of service
Denial of service (DoS) is an attack that overloads or disrupts a service such as an online shop so that it is no longer available to its users.
E-commerce
-
Web application firewall
A web application firewall (WAF) is an application-level filter that checks the requests to a web application and the responses it sends, in order to fend off attacks carried in web traffic.
E-commerce
-
API
An API (application programming interface) is a defined set of functions and rules that lets one piece of software use the features or data of another system or service.
Cross-cutting
Sources
-
API4:2023 Unrestricted Resource Consumption (OWASP API Security Top 10 2023) (opens in a new tab)
OWASP Foundation (OWASP API Security Project) accessed
-
RFC 6585: Additional HTTP Status Codes (April 2012, Standards Track) (opens in a new tab)
IETF (RFC Editor) accessed
-
IT-Grundschutz-Kompendium Edition 2023, Baustein APP.3.1 Webanwendungen und Webservices (opens in a new tab)
Bundesamt für Sicherheit in der Informationstechnik (BSI) accessed
-
Credential Stuffing Prevention Cheat Sheet (opens in a new tab)
OWASP Foundation (OWASP Cheat Sheet Series) accessed