Miggo Logo

CVE-2022-39387: XWiki OIDC Authenticator vulnerable to bypassing OpenID login by providing a custom provider

9.1

CVSS Score
3.1

Basic Information

EPSS Score
0.32267%
Published
11/4/2022
Updated
1/29/2023
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:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.xwiki.contrib.oidc:oidc-authenticatormaven< 1.29.11.29.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper handling of request parameters in configuration loading. The key evidence comes from the patch which:

  1. Introduces a SAFE_PROPERTIES whitelist (only allowing 'skipped')
  2. Restricts getProperty() methods to only process request parameters for whitelisted properties
  3. Modifies endpoint resolution to prevent direct parameter injection

The original vulnerable functions lacked these safeguards, allowing attackers to override OIDC endpoints, group mappings, and provider configurations through unvalidated request parameters. This directly enabled authentication bypass and privilege escalation as described in CVE-2022-39387.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t *v*n i* * wiki **s *n Op*nI* provi**r *on*i*ur** t*rou** its xwiki.prop*rti*s, it is possi*l* to provi** * t*ir* p*rty provi**r *y provi*in* its **t*ils t*rou** r*qu*st p*r*m*t*rs. On* **n t**n *yp*ss t** XWiki *ut**nti**tion *lto**t**r *

Reasoning

T** vuln*r**ility st*ms *rom improp*r **n*lin* o* r*qu*st p*r*m*t*rs in *on*i*ur*tion lo**in*. T** k*y *vi**n** *om*s *rom t** p*t** w*i**: *. Intro*u**s * S***_PROP*RTI*S w*it*list (only *llowin* 'skipp**') *. R*stri*ts **tProp*rty() m*t*o*s to only