Miggo Logo

CVE-2023-33201: Bouncy Castle For Java LDAP injection vulnerability

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.51177%
Published
7/5/2023
Updated
11/4/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.bouncycastle:bcprov-jdk18onmaven< 1.741.74
org.bouncycastle:bcprov-jdk15to18maven< 1.741.74
org.bouncycastle:bcprov-ext-jdk15to18maven< 1.741.74
org.bouncycastle:bcprov-ext-jdk18onmaven< 1.741.74
org.bouncycastle:bcprov-debug-jdk15to18maven< 1.741.74
org.bouncycastle:bcprov-debug-jdk18onmaven< 1.741.74
org.bouncycastle:bcprov-jdk14maven>= 1.49, < 1.741.74
org.bouncycastle:bcprov-ext-jdk14maven>= 1.49, < 1.741.74
org.bouncycastle:bcprov-debug-jdk14maven>= 1.49, < 1.741.74
org.bouncycastle:bcprov-jdk15onmaven>= 1.49, <= 1.70
org.bouncycastle:bcprov-ext-jdk15onmaven>= 1.49, <= 1.70
org.bouncycastle:bcprov-debug-jdk15onmaven>= 1.49, <= 1.70

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from improper LDAP filter construction in the search method. The pre-patch code used 'attributeName + "=" + attributeValue' without escaping, making it susceptible to injection. The commit e8c409a added filterEncode() to sanitize inputs, confirming the vulnerability was in the original filter assembly logic. The search method is the primary point where untrusted certificate data was incorporated into LDAP queries without validation.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*oun*y **stl* provi**s t** `X***L**P**rtStor*Spi.j*v*` *l*ss w*i** **n ** us** in *onjun*tion wit* t** **rtP*t* *PI *or v*li**tin* **rti*i**t* p*t*s. Pr*-*.** t** impl*m*nt*tion *i* not ****k t** X.*** n*m* o* *ny **rti*i**t*, su*j**t, or issu*r **in

Reasoning

T** vuln*r**ility st*mm** *rom improp*r L**P *ilt*r *onstru*tion in t** s**r** m*t*o*. T** pr*-p*t** *o** us** '*ttri*ut*N*m* + "=" + *ttri*ut*V*lu*' wit*out *s**pin*, m*kin* it sus**pti*l* to inj**tion. T** *ommit ******* ***** `*ilt*r*n*o**()` to s