Unrestriced Resource Consumption
Last updated
Was this helpful?
Last updated
Was this helpful?
This can lead to Denial of Service (DoS) attacks, server crashes, or performance degradation, impacting the availability and stability of the application or system.
Implement resource limits and quotas for users or requests, use rate limiting and throttling to control resource usage, and monitor system performance to detect and address excessive resource consumption.
The below example is based on HTB's module.
Lack of limiting user-initiated requests that consume resources can lead to DoS attacks (Figure 1) as well as BF attacks (Figure 2).
There are three main issues here:
The backend does not validate that the file size is within a specified size and since there are no rate-limiting measures, an attacker can consume all the marketplace's disk storage.
There is no check of the file extension or content, which means we can uploiad any file type we want.
The uploaded files are stored within the wwwroot
directory. The web API is developed using ASP.NET Core which means that the static files within wwwroot
are publicly accessible.