Miggo Logo

CVE-2020-1719: Privilege Context Switching Error in wildlfy

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.32301%
Published
6/8/2021
Updated
2/1/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.wildfly.bom:wildflymaven<= 19.1.0.Final20.0.0.Final

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability centers on improper security context restoration after cross-domain EJB calls. Wildfly's security architecture uses SecurityContextInterceptor to manage context switching. The missing context restoration in the 'aroundInvoke' method (specifically in the finally block that should reset the SecurityContextAssociation) directly matches the described vulnerability pattern. This is the core function responsible for pushing/popping security contexts during EJB method invocations.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* *l*w w*s *oun* in wil**ly. T** *J**ont*xt prin*ipl* is not popp** ***k **t*r invokin* *not**r *J* usin* * *i***r*nt S**urity *om*in. T** *i***st t*r**t *rom t*is vuln*r**ility is to **t* *on*i**nti*lity *n* int**rity. V*rsions ***or* wil**ly **.*.*

Reasoning

T** vuln*r**ility **nt*rs on improp*r s**urity *ont*xt r*stor*tion **t*r *ross-*om*in *J* **lls. Wil**ly's s**urity *r**it**tur* us*s `S**urity*ont*xtInt*r**ptor` to m*n*** *ont*xt swit**in*. T** missin* *ont*xt r*stor*tion in t** '*roun*Invok*' m*t*