Miggo Logo

CVE-2021-39236: Apache Ozone user impersonation due to non-validation of Ozone S3 tokens

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.66049%
Published
11/23/2021
Updated
12/5/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.hadoop:hadoop-ozone-ozone-managermaven< 1.2.01.2.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from missing authorization checks in S3 token validation. The commit diff shows critical validation logic was added to validateS3AuthInfo, including checking owner != null and owner.equals(awsAccessId). Prior to this patch, these checks were absent, enabling impersonation by manipulating the owner field while having valid S3 credentials. The test modifications further confirm this was the attack vector by demonstrating proper owner setting became required for validation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

In *p**** Ozon* ***or* *.*.*, *ut**nti**t** us*rs wit* v*li* Ozon* S* *r***nti*ls **n *r**t* sp**i*i* OM r*qu*sts, imp*rson*tin* *ny ot**r us*r.

Reasoning

T** vuln*r**ility st*mm** *rom missin* *ut*oriz*tion ****ks in S* tok*n v*li**tion. T** *ommit *i** s*ows *riti**l v*li**tion lo*i* w*s ***** to `v*li**t*S**ut*In*o`, in*lu*in* ****kin* own*r != null *n* own*r.*qu*ls(`*ws****ssI*`). Prior to t*is p*t