Story

In the news · 1 source · first seen 25d ago · Full Disclosure
Apache Struts2 REST Plugin Fails to Properly Parse Chunked Requests

Posted by Daniel Owens via Fulldisclosure on Nov 01 Description The Apache Struts2 REST Plugin's (version 7.4.0 and below) `ContentTypeInterceptor.intercept(ActionInvocation)` only deserialises a request body and enforces the `struts.rest.content.maxLength` bound when `HttpServletRequest#getContentL

Briefing

Written from the coverage below · deepseek-v4.1-flash

Apache Struts2 REST Plugin (7.4.0 and below) only deserializes request bodies and applies the struts.rest.content.maxLength limit when HttpServletRequest.getContentLength() returns a positive value. Chunked requests without a Content-Length header return -1, bypassing both deserialization checks and the length bound.

Why it mattersChunked requests can bypass the REST plugin's body-size limit, exposing Java deserialization and resource-exhaustion paths to unauthenticated attackers.

ActionUpdate to a Struts release that validates chunked bodies, or reject requests lacking Content-Length at the proxy.

Coverage

1 article