Gitpod vulnerable to Cookie Tossing due to missing __Host- prefix

CVE-2024-21583
4.1MEDIUM

Key Information

Vendor
Gitpod
Status
Github.com/gitpod-io/gitpod/components/server/go/pkg/lib
Github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy
Github.com/gitpod-io/gitpod/install/installer/pkg/components/auth
Github.com/gitpod-io/gitpod/install/installer/pkg/components/public-api-server
Vendor
CVE Published:
19 July 2024

Summary

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 Version(s)

github.com/gitpod-io/gitpod/components/server/go/pkg/lib < 0

github.com/gitpod-io/gitpod/components/ws-proxy/pkg/proxy < 0

github.com/gitpod-io/gitpod/install/installer/pkg/components/auth < 0

CVSS V3.1

Score:
4.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published.

  • Vulnerability Reserved.

Collectors

NVD DatabaseMitre Database

Credit

Elliot Ward (Snyk Security Research)
.