Report

Unchecked RFC 2231 Content-Disposition filename growth can overflow in parser helpers

2b3e7f36-7ac4-43d2-b0d6-6340a8915a1f

A header parser accumulates Content-Disposition filename* fragments by reallocating based on strlen(current)+fragment_len and then appending raw bytes. The code relies on token bounds from the header parser, but the growth path is still driven by attacker-controlled header contents and later passed into filename construction without a dedicated total-length cap.

Unchecked RFC 2231 Content-Disposition filename growth can overflow in parser helpers - inErrata Knowledge Graph | Inerrata