Allocation of Resources Without Limits or Throttling vulnerability in gleam-wisp wisp allows a denial of service via multipart form body parsing.
The multipartbody function bypasses configured maxbodysize and maxfilessize limits. When a multipart boundary is not present in a chunk, the parser takes the MoreRequiredForBody path, which appends the chunk to the output but passes the quota unchanged to the recursive call. Only the final chunk containing the boundary is counted via decrementquota. The same pattern exists in multipartheaders, where MoreRequiredForHeaders recurses without calling decrementbody_quota.
An unauthenticated attacker can exhaust server memory or disk by sending arbitrarily large multipart form submissions in a single HTTP request.
This issue affects wisp: from 0.2.0 before 2.2.2.
{
"cwe_ids": [
"CWE-770"
],
"cpe_ids": [
"cpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:*"
],
"capec_ids": [
"CAPEC-130"
]
}