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

CWE-330: Update BSDUnixDESCryptPasswordImpl so that SecureRandom is used to create the salt instead of ThreadLocalRandom

XMLWordPrintable

      Looking in BSDUnixDESCryptPasswordImpl, we can see that there are a few places where the salt is created using ThreadLocalRandom.current().nextInt() (e.g., see https://github.com/wildfly-security/wildfly-elytron/blob/2.x/password/impl/src/main/java/org/wildfly/security/password/impl/BSDUnixDESCryptPasswordImpl.java#L75).

      We should update BSDUnixDESCryptPasswordImpl so that SecureRandom is used to create the salt instead of ThreadLocalRandom.

              thofman Tomas Hofman
              fjuma1@redhat.com Farah Juma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: