coheigea opened a new pull request, #3700: URL: https://github.com/apache/cxf/pull/3700
The boundary search in MimeBodyPartInputStream backtracks on partial matches, so its cost grows with body size times boundary length. The boundary comes from the request (the Content-Type header or the body), so a sender could choose a very long boundary. Reject boundaries longer than the RFC 2046 maximum of 70 characters in AttachmentDeserializer and AttachmentBoundaryDeserializer, and enforce the same limit in the MimeBodyPartInputStream constructor. The limit can be raised with the org.apache.cxf.attachment-max-boundary-length system property. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
