Miggo Logo

CVE-2022-32170: Bytebase allows low-privilege users to view admin projects

4.3

CVSS Score
3.1

Basic Information

EPSS Score
0.25548%
Published
9/29/2022
Updated
4/24/2024
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/bytebase/bytebasego>= 0.1.0, <= 1.0.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Ov*rvi*w T** "*yt***s*" *ppli**tion *o*s not r*stri*t low privil*** us*r *rom ****ssin* **min proj**ts ### **t*ils T** "*yt***s*" *ppli**tion *o*s not r*stri*t low privil*** us*r *rom ****ssin* **min proj**ts *or w*i** *n un*ut*oriz** us*r **n v

Reasoning

T** vuln*r**ility st*ms *rom t** *ront*n*'s proj**t stor* mo*ul* w**r* t** **t**Proj**tList*yUs*r *un*tion *ir**tly us*s us*r-*ontroll** us*rI* p*r*m*t*rs in *PI r*qu*sts. T** *o** s*ows t** *n*point is *onstru*t** *s `/*pi/proj**t?us*r=${us*rI*}` wi