Miggo Logo

CVE-2021-44550: Access Control vulnerability within CoreNLP

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.62825%
Published
2/25/2022
Updated
2/3/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:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
edu.stanford.nlp:stanford-corenlpmaven<= 4.3.24.4.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from NERServlet.java's addResults() method adding response headers (lines 158-159) before validating the 'classifier' parameter. The original code: 1) took user input from request.getParameter('classifier'), 2) immediately set it in response headers, and 3) only later used it for model lookup. This allowed attackers to inject arbitrary headers and potentially access unauthorized models by manipulating the classifier parameter. The patch fixed this by first validating the classifier exists in the model map before setting headers.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*n In*orr**t ****ss *ontrol vuln*r**ility *xists in *or*NLP *.*.* vi* t** *l*ssi*i*r in N*RS*rvl*t.j*v* (lin*s *** *n* ***).

Reasoning

T** vuln*r**ility st*ms *rom `N*RS*rvl*t.j*v*`'s `***R*sults()` m*t*o* ***in* r*spons* *****rs (lin*s ***-***) ***or* v*li**tin* t** '*l*ssi*i*r' p*r*m*t*r. T** ori*in*l *o**: *) took us*r input *rom `r*qu*st.**tP*r*m*t*r('*l*ssi*i*r')`, *) imm**i*t*