BentoML Denial of Service (DoS) via Multipart Boundary
BentoML v1.3.4post1 is vulnerable to a denial of service attack. An attacker can append characters to a multipart boundary in an HTTP request, causing the server to continuously process each character and exhaust resources, making the service unavailable.
bentoml/bentoml
Originally disclosed on huntr
BentoML version v1.3.4post1 is vulnerable to a Denial of Service (DoS) attack. The vulnerability can be exploited by appending characters, such as dashes (-), to the end of a multipart boundary in an HTTP request. This causes the server to continuously process each character, leading to excessive resource consumption and rendering the service unavailable. The issue is unauthenticated and does not require any user interaction, impacting all users of the service.
From the GitHub Advisory Database (GHSA-hw8j-hw49-752c, 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 multipart parser does not properly limit or validate the boundary length, causing it to process each appended character inefficiently.
Impact
An unauthenticated attacker could make the service unavailable to all users by sending a crafted request, without any user interaction.
What the attacker needed
No authentication needed; no user interaction
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 boundary is a string that separates parts of a file upload or form submission. The server uses it to know where one part ends and the next begins. By adding extra characters to the boundary, an attacker can make the server do a lot of unnecessary work, which can slow it down or crash it 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.