Pagination, export and search endpoint exhaustion
Pagination and export options can turn a routine endpoint into an expensive workload. Understanding pagination and export and search endpoint exhaustion helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
Availability controls need to bound the total work an operation can cause, including background jobs, nested queries, retries and paid services. Request size alone is a poor measure of cost when small inputs can trigger expensive processing.
Why it matters
Consider a realistic failure: a small query requests an unbounded result set and a large background export.
Resource abuse can slow legitimate work, increase service costs or leave queues and business state in an unhealthy condition. Assessment should use proportionate workloads and distinguish a missing limit from a demonstrated operational effect.
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
Test result bounds, filter cost, job queues and cancellation.
- Identify expensive operations and downstream dependencies.
- Review time, size, concurrency and cost limits.
- Check retries, cancellation and identity-based quotas.
- Observe useful service behaviour during bounded failure conditions.
How to fix it
Bound result sizes and query work and authorise and limit exports separately.
- Apply end-to-end work budgets and sensible defaults.
- Limit costly operations at relevant identity boundaries.
- Use bounded retries and safe cancellation.
- Monitor meaningful capacity and cost signals.
Load testing and penetration testing have different operational impacts. The test conditions should be agreed so the review can establish control behaviour without unnecessary service disruption.
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.
Related issues
- API rate limits across users, tokens and addresses
- API timeouts, retries and dependency failure handling
- GraphQL query depth, complexity and batching abuse
Read about our methodology or contact pentested.com to discuss your APIs and integrations.