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

Incorrect validation of ProtectTokens assertion

    XMLWordPrintableJSON

Details

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

    Description

      The streaming code doesn't validate the ProtectTokens assertion properly in the case of a SymmetricBinding. The scenario is that the Signature should reference (sign) the EncryptedKey, and also reference it in the signing KeyInfo. However, the streaming code complains with:

      Original Exception was org.apache.wss4j.policy.stax.PolicyViolationException: Token /

      {http://schemas.xmlsoap.org/soap/envelope/}

      Envelope/

      {http://schemas.xmlsoap.org/soap/envelope/}

      Header/

      {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}

      Security/

      {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}

      BinarySecurityToken must be signed by its signature.

      However, the BinarySecurityToken in question is the certificate used to encrypt the symmetric key, and not the signing credential.

      Attachments

        Activity

          People

            giger Marc Giger
            coheigea Colm O hEigeartaigh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: