-
Notifications
You must be signed in to change notification settings - Fork 135
Closed
simplesamlphp/simplesamlphp
#1377Description
simplsamlphp currently does not support AES in GCM mode.
If an IDP uses AES-GCM for encryption of the ssertions eg:
<saml2:EncryptedAssertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
....
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#aes128-gcm" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"/>
....
this creates an error in form of the following message on a SP running simplesamlphp:
simplesamlphp: 3 Decryption failed: Could not locate key algorithm in encrypted data.
simplesamlphp: 3 SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
simplesamlphp: 3 Backtrace:
simplesamlphp: 3 1 /opt/simplesamlphp/www/_include.php:17 (SimpleSAML_exception_handler)
simplesamlphp: 3 0 (N/A)
simplesamlphp: 3 Caused by: Exception: Failed to decrypt XML element.
simplesamlphp: 3 Backtrace:
simplesamlphp: 3 7 /opt/simplesamlphp/vendor/simplesamlphp/saml2/src/SAML2/Utils.php:575 (SAML2\Utils::decryptElement)
simplesamlphp: 3 6 /opt/simplesamlphp/vendor/simplesamlphp/saml2/src/SAML2/EncryptedAssertion.php:98 (SAML2\EncryptedAssertion::getAssertion)
simplesamlphp: 3 5 /opt/simplesamlphp/modules/saml/lib/Message.php:391 (SimpleSAML\Module\saml\Message::decryptAssertion)
simplesamlphp: 3 4 /opt/simplesamlphp/modules/saml/lib/Message.php:647 (SimpleSAML\Module\saml\Message::processAssertion)
simplesamlphp: 3 3 /opt/simplesamlphp/modules/saml/lib/Message.php:614 (SimpleSAML\Module\saml\Message::processResponse)
simplesamlphp: 3 2 /opt/simplesamlphp/modules/saml/www/sp/saml2-acs.php:134 (require)
simplesamlphp: 3 1 /opt/simplesamlphp/lib/SimpleSAML/Module.php:236 (SimpleSAML\Module::process)
simplesamlphp: 3 0 /opt/simplesamlphp/www/module.php:9 (N/A)
Depending on change in library xmlseclibs (robrichards/xmlseclibs#134)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels