CVE-2015-8786 writeup: RabbitMQ
The RabbitMQ Management Plugin accepted the query parameters lengths_age and lengths_incr without validating their values, so a request with extreme values made the server allocate excessive memory and crash. Any user with API access, or a logged-in user tricked into loading a crafted page, could take the broker down.
The original lives on httpsonly.blogspot.com
We do not hold its text, 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 API handler passed the user-supplied lengths_age and lengths_incr values straight into memory allocation without any bounds check.
Impact
A single request could crash the broker, and because there is no CSRF token, a logged-in user could be made to send it by visiting a page on any popular website.
What the attacker needed
Legal API access (admin/policymaker/management/monitoring); or a logged-in victim who loads a crafted page
The fix
The issue was fixed in the management plugin by adding validation for these query parameters.
How it was found
- Get legal access to the management API as an admin, policymaker, management or monitoring user.
- Send a single GET request to the queues API endpoint with extreme lengths_age and lengths_incr values.
- The server allocates excessive memory and crashes.
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.
RabbitMQ is a message broker: software that passes messages between programs. Its web admin panel has an API that takes numbers in the URL, and it never checked how big or small those numbers were. Sending absurd values made the server try to reserve a huge amount of memory, so it ran out and stopped working 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.