Miggo Logo

CVE-2015-4165: Improper Access Control in Elasticsearch

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.84048%
Published
5/14/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.elasticsearch:elasticsearchmaven< 1.6.01.6.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper path validation in snapshot metadata handling. The critical function is createSnapshot in SnapshotsService, which was modified in the patched version to add FileSystemUtils.isSubPath() checks. This indicates the pre-patch version allowed writing metadata files outside repository directories. The function would appear in stack traces during snapshot creation attempts and would process attacker-controlled file paths.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

T** sn*ps*ot *PI in *l*sti*s**r** ***or* *.*.* w**n *not**r *ppli**tion *xists on t** syst*m t**t **n r*** Lu**n* *il*s *n* *x**ut* *o** *rom t**m, is ****ssi*l* *y t** *tt**k*r, *n* t** J*v* VM on w*i** *l*sti*s**r** is runnin* **n writ* to * lo**ti

Reasoning

T** vuln*r**ility st*ms *rom improp*r p*t* v*li**tion in sn*ps*ot m*t***t* **n*lin*. T** *riti**l *un*tion is `*r**t*Sn*ps*ot` in `Sn*ps*otsS*rvi**`, w*i** w*s mo*i*i** in t** p*t**** v*rsion to *** `*il*Syst*mUtils.isSu*P*t*()` ****ks. T*is in*i**t*