API security

API rate limits across users, tokens and addresses

Access lifetime: key, clock, server arranged to illustrate api rate limits across users, tokens and addresses.

Rate limits must match the resource or business risk they are intended to control. Understanding API rate limits across users and tokens and addresses helps establish which security property the feature needs and where that property is actually enforced.

What does this involve?

Session and token controls preserve an authentication decision over time. They need a defined scope, lifetime and invalidation policy. A token should be accepted because a trusted service has verified the relevant properties, not simply because its structure looks familiar.

Why it matters

Consider a realistic failure: changing tokens or addresses bypasses a limit attached only to one identifier.

A reusable credential can let someone continue acting as an account after the intended access should have ended. Long-lived access, excessive token contents and inconsistent revocation can increase the exposure beyond the initial event.

An API review follows the server-side behaviour behind the interface. Direct requests, alternate methods and background operations can reveal boundaries that the normal frontend journey does not exercise.

How penetration testers check for it

Assess relevant account, tenant, operation and downstream cost boundaries.

  • Review token creation, transport, storage and acceptance.
  • Check issuer, intended recipient, lifetime and required claims.
  • Test logout, permission changes and credential replacement.
  • Inspect replay and concurrent use according to the documented design.

How to fix it

Apply layered limits and monitor abuse without treating an address as a reliable user identity.

  • Use appropriately scoped credentials with bounded lifetimes.
  • Validate trusted issuance and relevant claims consistently.
  • Rotate and revoke according to the session model.
  • Keep credentials out of unnecessary URLs, logs and persistent copies.

Some designs intentionally use short-lived credentials without immediate global revocation. Assess the complete lifetime and access model before calling that design a failure.

Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.

Read about our methodology or contact pentested.com to discuss your APIs and integrations.

See your first test report this week.

Book a 30 minute demo. We will verify one of your targets with you and run a test against it, so you can judge the results on your own systems.

Book a demo