Miggo Logo

CVE-2016-8746: Apache Ranger policy engine incorrectly matches paths in certain conditions

5.9

CVSS Score
3.0

Basic Information

EPSS Score
0.66578%
Published
10/17/2018
Updated
11/21/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.ranger:ranger-plugins-commonmaven< 0.6.30.6.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from incorrect wildcard handling in resource matchers when policies have recursion enabled but no wildcards. The commit 2fcd7f7 modifies these two functions to: 1) Remove lenient wildcard checks in RangerAbstractResourceMatcher, and 2) Explicitly handle single '*' wildcards in RangerPathResourceMatcher. These changes directly address the path matching logic described in CVE-2016-8746, confirming these functions as the root cause.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*p**** R*n**r ***or* *.*.* poli*y *n*in* in*orr**tly m*t***s p*t*s in **rt*in *on*itions w**n poli*y *o*s not *ont*in wil***r*s *n* **s r**ursion *l** s*t to tru*.

Reasoning

T** vuln*r**ility st*ms *rom in*orr**t wil***r* **n*lin* in r*sour** m*t***rs w**n poli*i*s **v* r**ursion *n**l** *ut no wil***r*s. T** *ommit ******* mo*i*i*s t**s* two *un*tions to: *) R*mov* l*ni*nt wil***r* ****ks in `R*n**r**str**tR*sour**M*t**