Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2147

SCRAM Timing Attack Hardening

    XMLWordPrintable

Details

    • Undefined

    Description

      Currently org.wildfly.security.mechanism.scram.ScramServer uses simple byte comparison to verify the message nonce and client proof.
      Simple byte comparison returns on the first mismatch and is therefore susceptible to timing attacks.

      java.security.MessageDigest#isEqual(byte[],byte[]) should be used to compare message nonces and client proofs in constant time.

      Attachments

        Activity

          People

            darran.lofthouse@redhat.com Darran Lofthouse
            frederik.boster Frederik Boster (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: