OAuth callback open redirect, login-CSRF, and cross-user state leak
NIST has received this entry but not started reviewing it.
In Eclipse Che versions 7.61.0 through 7.124.0 three related defects in the SCM-OAuth flow, chain into a Medium-severity finding: 1. Open redirect (CWE-601) — `EmbeddedOAuthAPI.callback()` and the OAuth1 callback issue `307 Temporary Redirect` to whatever URL was carried in the `redirect_after_login` field of the OAuth `state` parameter. The value is fully attacker-controlled and never compared against an allow-list of permitted hosts. 2. Missing CSRF nonce in OAuth `state` (CWE-352) — `OAuthAuthenticator.prepareState()` builds the `state` parameter solely by URL-encoding the original request's query string. No random nonce is bound to the user's session, so an attacker can pre-compute a callback URL carrying _their own_ SCM authorization `code` and have a logged-in victim open it. `callback()` then stores the attacker's SCM token under the victim's Che identity (`personalAccessTokenManager.store(...)`). 3. Mutable field on a `@Singleton` (CWE-362 / CWE-488) — `EmbeddedOAuthAPI` is `@Singleton` but stores the per-request `redirect_after_login` value into the instance field `private String redirectAfterLogin`. Any user's `authenticate()` call overwrites the field for all concurrent users; the `access_denied` error-path of `callback()` then redirects to the _last writer's_ URL.
Cross-Site Request Forgery CWE-352
An attacker can trick a logged-in person’s browser into performing an action on a site without their knowledge.
The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.
Weakness data: MITRE Common Weakness Enumeration.
Concurrent Execution using Shared Resource with Improper Synchronization CWE-362
Two things happening at nearly the same time can be made to go wrong in a way the attacker controls.
The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
Weakness data: MITRE Common Weakness Enumeration.
Exposure of Data Element to Wrong Session CWE-488
The product does not sufficiently enforce boundaries between the states of different sessions, causing data to be provided to, or used by, the wrong session.
Weakness data: MITRE Common Weakness Enumeration.
URL Redirection to Untrusted Site CWE-601
A link on a trusted site can be made to send visitors to an attacker’s site.
The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Eclipse Foundation Eclipse Che | Software | from 7.61.0, before 7.125.0 | 7.125.0 |
The 8.3 severity score (high) from eclipse.org, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Setup needed on the target | None | No special setup on the target is needed. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | None | The service keeps running. |
| Other systems: data exposed | High | Total loss of confidentiality in other systems the vulnerable one connects to: everything they hold can be read. |
NIST lists 3 sources for this flaw, none tagged as a vendor patch.