CVE-2018-1190: Pivotal Cloud Foundry UAA XSS on UAA OpenID Connect check session iframe endpoint
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.44431%
CWE
Published
5/13/2022
Updated
3/1/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.cloudfoundry.identity:cloudfoundry-identity-server | maven | >= 3.0.0, < 3.20.2 | 3.20.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the SessionController
's session method handling user-controlled input (clientId) without proper escaping. The commit diff shows the fix introduced an escape()
method using JsonUtils.writeValueAsString
to sanitize inputs before adding them to the model. The original vulnerable version (prior to 3.20.2) lacked this escaping, allowing XSS when these parameters were rendered in the session.html
template. The template changes from '[[${clientId}]]' to [[${clientId}]] (without quotes) combined with proper escaping in the controller confirm the vulnerability was in the Java method's output handling.