Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-479

Inbound streaming does not handle Symmetric Holder-Of-Key correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      The streaming code has a problem when processing a request which contains a Holder-of-key SAML Assertion with a Subject which has an EncryptedKey in the KeyInfo, and a Signature in the security header which uses HMAC + points to the SAML Assertion.

      The following code in SecurityTokenFactoryImpl:

      if (keyInfoType != null) {
      final SecurityTokenReferenceType securityTokenReferenceType
      = XMLSecurityUtils.getQNameType(keyInfoType.getContent(), WSSConstants.TAG_wsse_SecurityTokenReference);

      ... bypasses the EncryptedKey, and instead only returns a SecurityToken of the (encrypting) certificate. Instead it should detect that the immediate child of KeyInfo is an EncryptedKey + process this accordingly.

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            coheigea Colm O hEigeartaigh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: