Miggo Logo

CVE-2021-43116: Use of Hard-coded Credentials in Nacos

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.91426%
Published
7/6/2022
Updated
4/4/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.alibaba.nacos:nacos-clientmaven<= 2.0.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from Nacos' use of a static JWT signing key (CWE-798). The GitHub issues demonstrate attackers intercepting login responses and forging valid tokens using the default secret. The JwtTokenManager class handles token creation/validation, making these functions vulnerable. While no direct code diffs are provided, the attack pattern and CWE mapping strongly implicate the JWT handling logic as the vulnerable component.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*n ****ss *ontrol vuln*r**ility *xists in N**os *.*.* in t** ****ss prompt p***; *nt*r us*rn*m* *n* p*sswor*, *li*k on lo*in to **ptur* p**k*ts *n* t**n ***n** t** r*turn** p**k***, w*i** l*ts * m*li*ious us*r lo*in.

Reasoning

T** vuln*r**ility st*ms *rom N**os' us* o* * st*ti* JWT si*nin* k*y (*W*-***). T** *it*u* issu*s **monstr*t* *tt**k*rs int*r**ptin* lo*in r*spons*s *n* *or*in* v*li* tok*ns usin* t** ****ult s**r*t. T** JwtTok*nM*n***r *l*ss **n*l*s tok*n *r**tion/v*