# CVE-2018-15761: UAA Privilege Escalation

> An authenticated user can escalate privileges by modifying consent page details to obtain a token with arbitrary scopes.

- **Severity:** Critical 9.9 (`CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 19 Nov 2018
- **Updated:** 17 Sep 2024
- **Also known as:** GHSA-292x-hjr8-226f

## What is CVE-2018-15761?

CVE-2018-15761 is a critical vulnerability in Cloud Foundry UAA, published on 19 Nov 2018. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Cloud Foundry UAA release, versions prior to v64.0, and UAA, versions prior to 4.23.0, contains a validation error which allows for privilege escalation. A remote authenticated user may modify the url and content of a consent page to gain a token with arbitrary scopes that escalates their privileges.

## Which versions are affected by CVE-2018-15761?

2 open source packages ship an affected version, including org.cloudfoundry.identity:cloudfoundry-identity-server. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.cloudfoundry.identity:cloudfoundry-identity-server` | Maven | All versions | 4.23.0 |
| `org.cloudfoundry.identity:cloudfoundry-identity-server` | Maven | All versions | 4.23.0 |

Products: Pivotal Software Cloud Foundry Uaa, Pivotal Software Cloudfoundry Uaa Release.

## How do I fix CVE-2018-15761?

Upgrade org.cloudfoundry.identity:cloudfoundry-identity-server to 4.23.0 or later.

## Is CVE-2018-15761 being exploited?

There is no known exploitation of CVE-2018-15761 in the wild and no public exploit code.

## Other vulnerabilities in Cloud Foundry UAA

- [CVE-2018-11047](https://insights.sbomify.com/CVE-2018-11047/): Cloud Foundry UAA accepts refresh token as access token on admin endpoints (high 7.5)
- [CVE-2019-3794](https://insights.sbomify.com/CVE-2019-3794/): UAA - Login app subject to clickjacking attack (medium 6.5)
- [CVE-2018-11041](https://insights.sbomify.com/CVE-2018-11041/): Cloud Foundry UAA open redirect (medium 6.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2018-15761 and fix it if it is affected.

What it is: CVE-2018-15761 is a critical vulnerability in Cloud Foundry UAA, published on 19 Nov 2018. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2018-15761 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.cloudfoundry.identity:cloudfoundry-identity-server (Maven): affected all versions; fixed in 4.23.0
- org.cloudfoundry.identity:cloudfoundry-identity-server (Maven): affected all versions; fixed in 4.23.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2018-15761/ (Markdown: https://insights.sbomify.com/CVE-2018-15761/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2018-15761
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2018-15761
- OSV: https://osv.dev/vulnerability/CVE-2018-15761

---
From sbomify Insights: https://insights.sbomify.com/CVE-2018-15761/
Summaries are generated and may contain mistakes; the official description above is the record.
