Miggo Logo

CVE-2011-5063: Improper Authentication in Apache Tomcat

4.3

CVSS Score

Basic Information

EPSS Score
0.82673%
Published
5/14/2022
Updated
2/21/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
AV:N/AC:M/Au:N/C:P/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.tomcat:tomcatmaven>= 5.5.0, < 5.5.345.5.34
org.apache.tomcat:tomcatmaven>= 6.0.0, < 6.0.336.0.33
org.apache.tomcat:tomcatmaven>= 7.0.0, < 7.0.127.0.12

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability CVE-2011-5063 stems from improper realm validation in Tomcat's DigestAuthenticator. Analysis of the commit diff shows the vulnerable findPrincipal method was replaced with a new DigestInfo validation class that added realm checks. The original implementation lacked realm comparison logic (comparing request realm against config.getRealmName()), which allowed realm spoofing. The patch explicitly adds realm validation in DigestInfo.validate(), confirming this was the missing security check.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** *TTP *i**st ****ss *ut**nti**tion impl*m*nt*tion in *p**** Tom**t *.*.x ***or* *.*.**, *.x ***or* *.*.**, *n* *.x ***or* *.*.** *o*s not ****k r**lm v*lu*s, w*i** mi**t *llow r*mot* *tt**k*rs to *yp*ss int*n*** ****ss r*stri*tions *y l*v*r**in* t

Reasoning

T** vuln*r**ility *V*-****-**** st*ms *rom improp*r r**lm v*li**tion in Tom**t's `*i**st*ut**nti**tor`. *n*lysis o* t** *ommit *i** s*ows t** vuln*r**l* `*in*Prin*ip*l` m*t*o* w*s r*pl**** wit* * n*w `*i**stIn*o` v*li**tion *l*ss t**t ***** r**lm ***