Miggo Logo

CVE-2020-5229: Password Hashing: Do not use MD5

7.7

CVSS Score
3.1

Basic Information

EPSS Score
0.36942%
Published
1/30/2020
Updated
1/9/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.opencastproject:opencast-common-jpa-implmaven< 7.67.6
org.opencastproject:opencast-common-jpa-implmaven>= 8.0, < 8.18.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the use of MD5 with username-based salting for password hashing. The commit diff shows the deletion of 'PasswordEncoder.java', which contained the insecure MD5 implementation. The replacement with 'CustomPasswordEncoder.java' using bcrypt confirms this was the vulnerable component. The encode() method in the removed PasswordEncoder class directly implemented the flawed hashing logic described in the advisory.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t Us*r p*sswor*s *r* stor** in t** **t***s* usin* t** r*t**r out**t** *n* *rypto*r*p*i**lly ins**ur* M** **s* *l*orit*m. *urt**rmor*, t** **s**s *r* s*lt** usin* t** us*rn*m* inst*** o* * r*n*om s*lt, **usin* **s**s *or us*rs wit* t** s*m*

Reasoning

T** vuln*r**ility st*ms *rom t** us* o* M** wit* us*rn*m*-**s** s*ltin* *or p*sswor* **s*in*. T** *ommit *i** s*ows t** **l*tion o* `'P*sswor**n*o**r.j*v*'`, w*i** *ont*in** t** ins**ur* M** impl*m*nt*tion. T** r*pl***m*nt wit* `'*ustomP*sswor**n*o**