Skip to main content

Glossary R

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, 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, a knowledge platform and a stock alert application, login attempts are throttled to counter password guessing.

Where the term appears

Sources

  1. API4:2023 Unrestricted Resource Consumption (OWASP API Security Top 10 2023) (opens in a new tab)

    OWASP Foundation (OWASP API Security Project) accessed

  2. 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

  3. Credential Stuffing Prevention Cheat Sheet (opens in a new tab)

    OWASP Foundation (OWASP Cheat Sheet Series) accessed

Share on LinkedIn

Let's talk about your project.

If this term is on your desk right now, a conversation usually helps faster than any definition.

Search the website

Popular topics

All results