GHSL-2022-073: Denial of Service (DoS) in Fat Free CRM - CVE-2022-39281
An authenticated user could send a crafted request to a task update endpoint, causing the server to call the Ruby sleep method without a duration, which makes the request thread sleep forever. Repeating this a few times exhausts all worker threads and prevents the application from handling any further requests.
A denial of service vulnerability existed in Fat Free CRM where an authenticated attacker could have prevented the web application from handling any requests.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application passes a user-controlled parameter directly to Ruby's send method, allowing the attacker to invoke arbitrary methods such as sleep.
Impact
The application could be made unavailable to all users, resulting in a denial of service.
What the attacker needed
Authenticated user account
The fix
The application should avoid passing user-controlled input to send and instead use an allowlist of permitted method names.
How it was found
- Authenticate to the application and obtain a valid session cookie and CSRF token.
- Send a PUT request to a task completion endpoint with the bucket parameter set to sleep.
- Repeat the request until all available worker threads are sleeping, causing the application to stop responding.
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 report has not been written yet. The Original tab links to the source.
The application takes a value from the user and uses it to decide which internal function to run. An attacker can choose a function that pauses the server's processing thread indefinitely. By doing this a few times, all threads become stuck and the website stops responding for everyone.
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.