Miggo Logo

CVE-2021-45458: Use of Hard-coded Credentials in Apache Kylin

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.69866%
Published
1/8/2022
Updated
7/21/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.kylin:kylinmaven< 3.1.33.1.3
org.apache.kylin:kylinmaven= 4.0.04.0.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the use of static cryptographic parameters in PasswordPlaceholderConfigurer. Both encrypt() and decrypt() functions initialize the cipher with hardcoded values (key/IV), as confirmed by the CVE description and patch references. The patches (PR#1781/PR#1782) likely address this by making these parameters configurable. The functions are explicitly tied to the insecure encryption mechanism described.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*p**** Kylin provi**s *n*ryption *l*ss*s P*sswor*Pl****ol**r*on*i*ur*r to **lp us*rs *n*rypt t**ir p*sswor*s. In t** *n*ryption *l*orit*m us** *y t*is *n*ryption *l*ss, t** *ip**r is initi*liz** wit* * **r**o*** k*y *n* IV. I* us*rs us* *l*ss P*sswor

Reasoning

T** vuln*r**ility st*ms *rom t** us* o* st*ti* *rypto*r*p*i* p*r*m*t*rs in `P*sswor*Pl****ol**r*on*i*ur*r`. *ot* `*n*rypt()` *n* `***rypt()` *un*tions initi*liz* t** *ip**r wit* **r**o*** v*lu*s (k*y/IV), *s *on*irm** *y t** *V* **s*ription *n* p*t**