4.1medium
github.com/gitpod-io/gitpod vulnerable to Cookie Tossing
- Severity
- 4.1medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.60% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-8pgc-65mj-53h5GO-2024-2997
Description
Versions of the package github.com/gitpod-io/gitpod/components/server/go/pkg/lib before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/auth before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/server before main-gha.27122; versions of the package @gitpod/gitpod-protocol before 0.1.5-main-gha.27122 are vulnerable to Cookie Tossing due to a missing __Host- prefix on the _gitpod_io_jwt2_ session cookie. This allows an adversary who controls a subdomain to set the value of the cookie on the Gitpod control plane, which can be assigned to an attacker’s own JWT so that specific actions taken by the victim (such as connecting a new Github organization) are actioned by the attackers session.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/gitpod-io/gitpod/components/server/go/pkg/lib | before main-gha.27122 | CVE List |
| github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy | before main-gha.27122 | CVE List |
| github.com/gitpod-io/gitpod/install/installer/pkg/components/auth | before main-gha.27122 | CVE List |
| github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server | before main-gha.27122 | CVE List |
| github.com/gitpod-io/gitpod/install/installer/pkg/components/server | before main-gha.27122 | CVE List |
| @gitpod/gitpod-protocol | before 0.1.5-main-gha.27122 | CVE List |
| github.com/gitpod-io/gitpod (Go) | up to 0.8.0, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/gitpod-io/gitpod/components/server/go (Go) | all versions | Go Vulnerability Database |
| github.com/gitpod-io/gitpod/components/ws-proxy (Go) | all versions | Go Vulnerability Database |
| github.com/gitpod-io/gitpod/install/installer (Go) | all versions | Go Vulnerability Database |
All scores
| snyk | 4.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N/E:P |
| GitHub | 4.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N |
Classification
What each source says
CVE List
Versions of the package github.com/gitpod-io/gitpod/components/server/go/pkg/lib before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/auth before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server before main-gha.27122; versions of the package github.com/gitpod-io/gitpod/install/installer/pkg/components/server before main-gha.27122; versions of the package @gitpod/gitpod-protocol before 0.1.5-main-gha.27122 are vulnerable to Cookie Tossing due to a missing __Host- prefix on the _gitpod_io_jwt2_ session cookie. This allows an adversary who controls a subdomain to set the value of the cookie on the Gitpod control plane, which can be assigned to an attacker’s own JWT so that specific actions taken by the victim (such as connecting a new Github organization) are actioned by the attackers session.
Go Vulnerability Database
CVE-2024-21583 in github.com/gitpod-io/gitpod.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: github.com/gitpod-io/gitpod before v0.1.5-main-gha.27122; github.com/gitpod-io/gitpod/components/server/go before main-gha.27122; github.com/gitpod-io/gitpod/components/ws-proxy before main-gha.27122; github.com/gitpod-io/gitpod/install/installer before main-gha.27122.
NVD (es)
Versiones del paquete github.com/gitpod-io/gitpod/components/server/go/pkg/lib antes de main-gha.27122; versiones del paquete github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy antes de main-gha.27122; versiones del paquete github.com/gitpod-io/gitpod/install/installer/pkg/components/auth antes de main-gha.27122; versiones del paquete github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server antes de main-gha.27122; versiones del paquete github.com/gitpod-io/gitpod/install/installer/pkg/components/server antes de main-gha.27122; Las versiones del paquete @gitpod/gitpod-protocol anteriores a 0.1.5-main-gha.27122 son vulnerables al lanzamiento de cookies debido a que falta un prefijo __Host- en la cookie de sesión _gitpod_io_jwt2_. Esto permite a un adversario que controla un subdominio establecer el valor de la cookie en el plano de control de Gitpod, que puede asignarse al propio JWT de un atacante para que las acciones específicas tomadas por la víctima (como conectar una nueva organización de Github) sean ejecutadas por La sesión de los atacantes.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21583 changed 2024-10-31 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8pgc-65mj-53h5 changed 2024-10-31 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2997 changed 2024-09-06 | CC-BY-4.0 |
| NVD | CVE-2024-21583 changed 2026-06-17 | Public domain |