FastChat Uncontrolled Resource Consumption vulnerability
The FastChat server processes extra characters appended to multipart boundaries in an infinite loop, causing excessive resource consumption. An unauthenticated attacker can send malformed multipart requests to trigger a complete denial of service for all users.
fschat
Originally disclosed on huntr
In lm-sys/fastchat Release v0.2.36, the server fails to handle excessive characters appended to the end of multipart boundaries. This flaw can be exploited by sending malformed multipart requests with arbitrary characters at the end of the boundary. Each extra character is processed in an infinite loop, leading to excessive resource consumption and a complete denial of service (DoS) for all users. The vulnerability is unauthenticated, meaning no user login or interaction is required for an attacker to exploit this issue.
From the GitHub Advisory Database (GHSA-qg86-f892-m4hj, CC BY 4.0).
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 server does not properly validate or limit the length of multipart boundaries, causing an infinite loop when extra characters are present.
Impact
An unauthenticated attacker can cause a complete denial of service, making the service unavailable to all users.
What the attacker needed
No authentication required; ability to send HTTP requests
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 multipart request is a way to send data to a server, often used for file uploads. The server has a bug where if you add extra characters after a certain marker (the boundary), it gets stuck in an endless loop and uses up all its resources, so it can't respond to anyone else. This means an attacker can easily knock the service 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.