Skip to content

CVE-2022-51026 Bytebase 0.12.0 before 1.0.1 Authentication Bypass via GitLab Self-Hosted Login

CriticalCVSS 9.3 EPSS 0.61%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

Description

Bytebase 0.12.0 before 1.0.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to log in as any user. The flaw stems from trusting client-supplied GitLab provider configuration in the POST /api/auth/login/GITLAB_SELF_HOST endpoint. Attackers can set instanceUrl to a server they control that returns an active user with a chosen email. Bytebase then issues session tokens for that principal, letting attackers impersonate existing users including the Owner or create new members.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
bytebase github.com/bytebase/bytebase >= 0.12.0, < 1.0.1 1.0.1 Fixed
bytebase github.com/bytebase/bytebase(Go) < 1.0.1; <= 1.0.0 1.0.1 Fixed

Affected products

ProductAffected versionsFixed in
bytebase github.com/bytebase/bytebase(Go) < 1.0.1 1.0.1
bytebase github.com/bytebase/bytebase(Go) <= 1.0.0 No fix listed
bytebase github.com/bytebase/bytebase >= 0.12.0, < 1.0.1 1.0.1

References