Unrestricted Resource Consumption and Lack of Rate Limiting
The /articles endpoint accepted a limit parameter without enforcing a maximum, so a request with a very large limit returned an excessive number of records. An attacker could exhaust server resources and cause a denial of service.
Published on medium.com
Lack of resources and rate limiting are a critical security vulnerability that could lead to Denial of Service(DoS) attacks and security breaches such as brute-force attacks. Ranked #4 in OWASP top 10 API 2019 and in OWASP TOP 10 API 2023 where it’s referred to as Unrestricted resource consumption.
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.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the endpoint did not enforce a maximum value for the limit parameter, allowing unbounded resource consumption.
Impact
A request with a very large limit could deplete server resources and make the application unresponsive, leading to a denial of service.
What the attacker needed
Access to the API endpoint
The fix
The endpoint should enforce a maximum allowed value for the limit parameter and apply rate limiting.
How it was found
- Send a GET request to /articles and observe it returns 10 articles by default.
- Change the limit parameter to 1 and confirm only one article is returned.
- Set the limit parameter to a very large number and observe the response.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
An API endpoint let a user ask for a huge number of records at once. The server did not cap how much work it would do, so a single request could use up memory and processing power. This can make the service slow or unavailable for everyone else.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.