apple / HomeKitADK

Apache License 2.0
2.55k stars 232 forks source link

Fix vulnerability in SRP #91

Closed ddealmei closed 3 years ago

ddealmei commented 3 years ago

Calling BN_mod_exp with a small base, and no constant time flag fallback on an insecure implementation with OpenSSL. The resulting leakage can be used by an attacker to recover enough information on the password to perform an offline dictionary attack. A simple fix is to set the appropriate flag before computing the verifier.

This fix issue #87