CVE-2020-5229
Password Hashing: Do not use MD5
Description
### Impact User passwords are stored in the database using the rather outdated and cryptographically insecure MD5 hash algorithm. Furthermore, the hashes are salted using the username instead of a random salt, causing hashes for users with the same username and password to collide which is problematic especially for popular users like the default `admin` user. This essentially means that for an attacker, it might be feasible to reconstruct a user's password given access to these hashes. Note that attackers needing access to the hashes means that they must gain access to the database in which these are stored first to be able to start cracking the passwords. ### Patches The problem is addressed in Opencast 8.1 which now uses the modern and much stronger bcrypt password hashing algorithm for storing passwords. Note, that old hashes remain MD5 until the password is updated. For a list of users whose password hashes are stored using MD5, take a look at the `/user-utils/users/md5.json` REST endpoint. ### Workarounds There is no workaround. ### References - [MD5 (Wikipedia)](https://en.wikipedia.org/wiki/MD5) - [bcrypt (Wikipedia)](https://en.wikipedia.org/wiki/Bcrypt) - [How weak is MD5 as a password hashing function?](https://security.stackexchange.com/q/52461) ### For more information If you have any questions or comments about this advisory: - Open an issue in [opencast/opencast](https://github.com/opencast/opencast/issues) - For security-relevant information, email us at [email protected]
How to fix CVE-2020-5229
To remediate CVE-2020-5229, upgrade the affected package to a fixed version below.
- —upgrade to 7.6 or later
Is CVE-2020-5229 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 7.6