Miggo Logo

CVE-2022-23554: Alpine allows Authentication Filter bypass

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.25892%
Published
8/5/2024
Updated
8/5/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
us.springett:alpinemaven< 1.10.41.10.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the use of request.getRequestUri().getPath().contains("/api/swagger") in the AuthenticationFilter's filter method. This check fails to account for URL-encoded path parameters and path normalization, allowing attackers to craft URLs that satisfy the contains() condition while bypassing intended access controls. The direct match between the described bypass technique and the code structure confirms this function as the root cause.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*lpin* is * s****ol*in* li*r*ry in J*v*. *lpin* prior to v*rsion *.**.* *llows *ut**nti**tion *ilt*r *yp*ss. T** *ut**nti**tion*ilt*r r*li*s on t** r*qu*st URI to *v*lu*t* i* t** us*r is ****ssin* t** sw****r *n*point. *y ****ssin* * URL wit* * p*t*

Reasoning

T** vuln*r**ility st*ms *rom t** us* o* r*qu*st.**tR*qu*stUri().**tP*t*().*ont*ins("/*pi/sw****r") in t** *ut**nti**tion*ilt*r's *ilt*r m*t*o*. T*is ****k **ils to ***ount *or URL-*n*o*** p*t* p*r*m*t*rs *n* p*t* norm*liz*tion, *llowin* *tt**k*rs to