Miggo Logo

CVE-2020-28498: Elliptic Uses a Broken or Risky Cryptographic Algorithm

6.8

CVSS Score
3.1

Basic Information

EPSS Score
0.65939%
Published
3/8/2021
Updated
9/6/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
ellipticnpm< 6.5.46.5.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing validation in the ECDH key derivation process. The commit diff shows the vulnerability was fixed by adding 'pub.validate()' check in KeyPair.prototype.derive. The advisory explicitly references this function as the vulnerable location, and the added test case demonstrates how invalid public points could be passed to derive without validation in vulnerable versions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** npm p**k*** `*llipti*` ***or* v*rsion *.*.* *r* vuln*r**l* to *rypto*r*p*i* Issu*s vi* t** s**p***k* impl*m*nt*tion in *llipti*/**/k*y.js. T**r* is no ****k to *on*irm t**t t** pu*li* k*y point p*ss** into t** **riv* *un*tion **tu*lly *xists on t

Reasoning

T** vuln*r**ility st*ms *rom missin* v*li**tion in t** **** k*y **riv*tion pro**ss. T** *ommit *i** s*ows t** vuln*r**ility w*s *ix** *y ***in* 'pu*.v*li**t*()' ****k in K*yP*ir.prototyp*.**riv*. T** **visory *xpli*itly r***r*n**s t*is *un*tion *s t*