Andrea Cosentino created CAMEL-27775:
----------------------------------------
Summary: camel-xmlsecurity: Enforce configured xmlCipherAlgorithm
during unmarshalling
Key: CAMEL-27775
URL: https://issues.apache.org/jira/browse/CAMEL-27775
Project: Camel
Issue Type: Improvement
Components: camel-xmlsecurity
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
XMLSecurityDataFormat currently initializes XMLCipher.getInstance() without
checking the incoming EncryptedData EncryptionMethod algorithm against the
configured xmlCipherAlgorithm (which defaults to AES_256_GCM).
Update XMLSecurityDataFormat so that when an AEAD/GCM xmlCipherAlgorithm is
configured, unmarshalling rejects non-AEAD data encryption algorithms (such as
CBC or 3DES) unless a non-GCM algorithm is explicitly configured, consistent
with how keyCipherAlgorithm already restricts RSA_v1dot5.
Update affected tests in EncryptionAlgorithmTest and add a migration note to
the upgrade guide.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)