coheigea opened a new pull request, #3744:
URL: https://github.com/apache/cxf/pull/3744

   UndertowHTTPHandler wrote Throwable.getMessage() unescaped into the HTML
   body of its "Internal Error 500" page. Exception messages can carry
   request-derived data, so this allowed HTML/script injection into the
   error response and leaked internal details.
   
   The page body is now static by default. If the existing
   exceptionMessageCauseEnabled (Message.EXCEPTION_MESSAGE_CAUSE_ENABLED)
   bus property is set to "true", the exception message is appended,
   HTML-escaped. The exception is logged through java.util.logging instead
   of printStackTrace(), and Content-Length is now computed from the UTF-8
   bytes actually sent. The error handling is moved into a protected
   sendInternalError() method that the test handler reuses.
   
   


-- 
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]

Reply via email to