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

   AbstractXmlEncInHandler returned different error messages to the client
   depending on which decryption step failed: "Encrypted key can not be
   decrypted", "Base64 decoding has failed" or the raw exception message
   when unwrapping the key, "Payload can not be decrypted" when decrypting
   the payload, and "Payload document can not be created" when parsing the
   result. Telling these apart lets an attacker use the endpoint as a
   decryption oracle.
   
   Every failure that depends on the encrypted content (private key
   lookup, key unwrapping, payload decryption and parsing of the decrypted
   payload) now returns the same "Payload can not be decrypted" error. The
   specific cause is still logged. Configuration and structure errors,
   such as an unsupported algorithm or a missing element, are unchanged.
   
   The default encryption algorithm is not changed.
   
   Adds tests checking that a payload decryption failure, a parse failure
   of the decrypted payload and two key unwrapping failures all return the
   same error.


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