2 matches found
Http-proxy-middleware Smuggles A Second Request When FixRequestBody Runs Before Body Arrival
Summary "fixRequestBody" treats "req.readableLength === 0" as proof that a body parser consumed the request body. The same value is observed before any body byte has arrived. An unauthenticated client can therefore send the request headers first, wait one event-loop turn, and then send a body...
GHSA-VP89-2QRG-8FWC http-proxy-middleware smuggles a second request when fixRequestBody runs before body arrival
Summary fixRequestBody treats req.readableLength === 0 as proof that a body parser consumed the request body. The same value is observed before any body byte has arrived. An unauthenticated client can therefore send the request headers first, wait one event-loop turn, and then send a body...