Miggo Logo

CVE-2016-6797: Incorrect Authorization in Apache Tomcat

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.59857%
Published
5/13/2022
Updated
2/23/2024
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.tomcat:tomcatmaven>= 9.0.0.M1, <= 9.0.0.M99.0.0.M10
org.apache.tomcat:tomcatmaven>= 8.5.0, <= 8.5.48.5.5
org.apache.tomcat:tomcatmaven>= 8.0.0, <= 8.0.368.0.37
org.apache.tomcat:tomcatmaven>= 7.0.0, < 7.0.727.0.72

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from missing authorization checks in ResourceLinkFactory's lookup logic (getObjectInstance) and improper lifecycle management of resource links in NamingContextListener. The patch added: 1) A validation check in getObjectInstance via validateGlobalResourceAccess, 2) Registration/deregistration hooks in addResourceLink/removeResourceLink to track authorized resources. These changes directly address the root cause of unrestricted JNDI access described in CVE-2016-6797.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** R*sour**Link***tory impl*m*nt*tion in *p**** Tom**t *.*.*.M* to *.*.*.M*, *.*.* to *.*.*, *.*.*.R** to *.*.**, *.*.* to *.*.** *n* *.*.* to *.*.** *i* not limit w** *ppli**tion ****ss to *lo**l JN*I r*sour**s to t*os* r*sour**s *xpli*itly link**

Reasoning

T** vuln*r**ility st*mm** *rom missin* *ut*oriz*tion ****ks in `R*sour**Link***tory`'s lookup lo*i* (`**tO*j**tInst*n**`) *n* improp*r li***y*l* m*n***m*nt o* r*sour** links in `N*min**ont*xtList*n*r`. T** p*t** *****: *) * v*li**tion ****k in `**tO*