GHSA-h362-m8f2-5x7c

Suggest an improvement
Source
https://github.com/advisories/GHSA-h362-m8f2-5x7c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/01/GHSA-h362-m8f2-5x7c/GHSA-h362-m8f2-5x7c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-h362-m8f2-5x7c
Aliases
Published
2020-01-30T21:21:58Z
Modified
2023-11-08T04:03:52.108627Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
Summary
Password Hashing: Do not use MD5
Details

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

For more information

If you have any questions or comments about this advisory:

  • Open an issue in opencast/opencast
  • For security-relevant information, email us at security@opencast.org
Database specific
{
    "nvd_published_at": null,
    "github_reviewed_at": "2020-01-30T19:59:06Z",
    "severity": "LOW",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-327"
    ]
}
References

Affected packages

Maven / org.opencastproject:opencast-common-jpa-impl

Package

Name
org.opencastproject:opencast-common-jpa-impl
View open source insights on deps.dev
Purl
pkg:maven/org.opencastproject/opencast-common-jpa-impl

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.6

Affected versions

6.*

6.6

7.*

7.2
7.3
7.4
7.5

Maven / org.opencastproject:opencast-common-jpa-impl

Package

Name
org.opencastproject:opencast-common-jpa-impl
View open source insights on deps.dev
Purl
pkg:maven/org.opencastproject/opencast-common-jpa-impl

Affected ranges

Type
ECOSYSTEM
Events
Introduced
8.0
Fixed
8.1

Affected versions

8.*

8.0