Latest ESAPI downloaded 25 June 2009 from
http://owasp-esapi-java.googlecode.com/files/owasp-esapi-java-src-1.4.zip
The verifyPasswordStrength calculates number of character sets using binary
searches like this:
Arrays.binarySearch(DefaultEncoder.CHAR_LOWERS, newPassword.charAt(i)) > 0
However, if newPassword.charAt(i) = 'a', the result of the binary search
will be 0 and the greater than comparison will return false.
Tests should be greater than or equal like this:
Arrays.binarySearch(DefaultEncoder.CHAR_LOWERS, newPassword.charAt(i)) >= 0
Original issue reported on code.google.com by stuart.l...@gmail.com on 25 Jun 2009 at 11:14
Original issue reported on code.google.com by
stuart.l...@gmail.com
on 25 Jun 2009 at 11:14