Skip to content
DoS Disclosed report Beginner

Application-Level DoS (Thread Exhaustion) via Integer Overflow on POST /users/{id}/follows

The application did not validate the user ID parameter on a follow endpoint, so an extremely large integer caused the backend to block a worker thread for about 25 seconds before timing out. A small number of concurrent requests could exhaust the thread pool and make the application unavailable to legitimate users.

ob_vr Follow

Originally disclosed on Bugcrowd

  • Accepted in 5 days
  • Fixed in 5 days
  • Disclosed after 3 months

Summary by Genius

After investigation, we discovered that when the fix for CVE-2022-44566 was backported to Rails 3 by the Rails LTS team, there were some paths inside the arel library where the fix was not correctly applied. These paths remained vulnerable to integer overflow. Further obscuring the issue was the fact that when the Genius engineering team was first notified of CVE-2022-44566 and evaluated the patches, we only evaluated the Rails 2 LTS versions of the patches, which did not have the same issue. When the Genius website was subsequently upgraded from Rails 2 LTS to Rails 3 LTS in 2025, this vulnerability was unknowingly introduced. We then worked with the Rails LTS team to correctly fix the integer overflow protection on all application paths, which were released as Rails LTS version 3.2.22.53.

Summary by ob_vr

Summary

The application fails to validate the {id} parameter, allowing excessively large integer inputs.

When such input is processed, the backend performs expensive operations instead of rejecting it, causing a worker thread to block for ~25 seconds.

Technical Details

  • Endpoint: /users/{id}/follows

  • Method: POST

  • Payload: 999999999999999999999999999999

  • Issue: Lack of bounds validation on {id}

  • Behavior:

    • Request is accepted and processed
    • Backend attempts integer casting / database query
    • Worker thread becomes blocked (~25 seconds)
    • Eventually returns 500 Internal Server Error due to timeout
    • X-Runtime header confirms prolonged execution

Impact

  • Each malicious request occupies one worker thread for ~25 seconds
  • A small number of concurrent requests can exhaust the thread pool
  • Results in complete application unavailability for legitimate users
  • No high traffic required → low-effort DoS

The original report as published on Bugcrowd, by Genius. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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

Likely the endpoint accepted an unbounded integer for the user ID and passed it into expensive casting or database operations without a range check.

Impact

Each malicious request could occupy one worker thread for about 25 seconds, so a small number of concurrent requests could exhaust the thread pool and cause complete application unavailability for legitimate users.

What the attacker needed

Ability to send POST requests to the endpoint; no authentication stated

The fix

The integer overflow protection was fixed on all application paths and released as Rails LTS version 3.2.22.53.

How it was found

  1. Send a POST request to the follows endpoint for a user, replacing the user ID with an extremely large integer.
  2. Observe that the request is accepted and processed rather than rejected.
  3. Note that the worker thread blocks for about 25 seconds and then returns a 500 error due to timeout.

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.

A web server has a limited number of workers that handle incoming requests. If a request makes one worker busy for a long time, that worker cannot help other visitors. Here, sending a very large number as the user ID made the server do slow work for about 25 seconds, so a few such requests could tie up all workers and take the site offline 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.

More from Genius

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.