В версиях Eclipse Che от 7.61.0 до 7.124.0 три связанных дефекта в потоке SCM-OAuth, цепочка в Medium-severity находит: 1. Открыть перенаправление (CWE-601) — EmbeddedOAuthAPI.callback() и OAuth1 обратный вызов 307 Temporary Redirect к тому, что URL был перенесен в поле redirect_after_login параметра OAuth `state. Значение полностью контролируется злоумышленником и никогда не сравнивается с разрешенным списком разрешенных хостов. 2.
Missing CSRF nonce in OAuth `state (CWE-352) — OAuthAuthenticator.prepareState() — строит параметр state исключительно путем URL-кодирования строки запроса исходного запроса. Никакой случайный случай не связан с сеансом пользователя, поэтому злоумышленник может предварительно вычислить обратный звонок URL, несущий _ их собственную _ авторизацию SCM code, и открыть его зарегистрированной жертвой. callback() затем хранит токен SCM злоумышленника под личностью жертвы Che (personalAccessTokenManager.store(...)). 3. Mutable field on a @Singleton (CWE-362 / CWE-488) — EmbeddedOAuthAPI — это @Singleton, но сохраняет значение по запросу redirect_after_login в поле экземпляра private String redirectAfterLogin.
Любой вызов пользователя authenticate() перезаписывает поле для всех одновременных пользователей; access_denied путь ошибки callback() затем перенаправляет на _последний автор_ URL.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v4.0