Home / Vulnerability Database / Objective-C : Weak hashing algorithm
Objective-C

Objective-C : Weak hashing algorithm

Overview

The used hash function is insecure. Its use can lead to a data confidentiality loss.

The MD2, MD5, SHA1 hash functions have known vulnerabilities. Finding collisions for MD2 and MD5 functions does not require substantial resources; a similar problem for SHA1 was solved. If these functions are used to store valuable information (such as passwords), its confidentiality can be violated.

The hash function used to store passwords not only should be resistant to collisions but also should not be too fast. This complicates the attack by exhaustive search. For this purpose specialized hash functions have been developed: PBKDF2, bcrypt, scrypt.

Suppose that user passwords are stored on the server in encrypted form with the use of insecure hash function (e.g., MD5). A possible attack scenario:

  1. The attacker gets access to the encrypted passwords.
  2. An attacker exploits a vulnerability of hashing algorithm and calculates the string for which the hash algorithm gives the same value as for the user’s password.
  3. The attacker passes the authentication using a calculated string.

Insufficient Cryptography vulnerabilities take the fifth place in the “OWASP Top 10 2016” mobile application vulnerabilities ranking.

CRITICAL

DerScanner Severity Score

Do you want to fix Objective-C : Weak hashing algorithm in your application?

See also

Objective-C

Objective-C : Internal information leak

Objective-C

Objective-C : Unsafe reflection

Objective-C

Objective-C : Weak seed of random number generator