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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-290"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51026.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0.12.0"
},
{
"fixed": "1.0.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "d69e682243b25b51dd52912a26e2f259b5f3db2d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "1.0.1",
"range": [
{
"fixed": "b0163131d4c4701fbfced0cdd8150f049cd1adba"
}
],
"source": "REFERENCES_TAG"
}
]
}