CVE-2022-32170: Bytebase allows low-privilege users to view admin projects
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.25548%
CWE
Published
9/29/2022
Updated
4/24/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/bytebase/bytebase | go | >= 0.1.0, <= 1.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the frontend's project store module where the fetchProjectListByUser function directly uses user-controlled userId parameters in API requests. The code shows the endpoint is constructed as /api/project?user=${userId}
without server-side validation of the requesting user's permissions to access projects for that specific userId. This matches the PoC where modifying the userId parameter exposes admin projects, indicating missing authorization checks in the associated backend/frontend interaction.