Advisory

GHSA-9mmc-27gw-w6mq

Also known as: CVE-2022-32170

Summary

Bytebase allows low-privilege users to view admin projects

Details

Overview
The "Bytebase" application does not restrict low privilege user from accessing admin projects

Details
The "Bytebase" application does not restrict low privilege user from accessing admin projects for which an unauthorized user can view the "projects" created by "Admin". The affected endpoint is /api/project?user=${userId}.

PoC

  1. Log in to the application as both "Admin" ([email protected]:admin) and Developer "User" ([email protected]:user) and then click on "Projects".
  2. Now open "Burp suite" and turn "Intercept on" and from "admin" dashboard click on "projects" and see the "user id" of "admin" in the capture request.
  3. Note the "user id" and "Forward" the request and again capture the request of "projects" from the "user" dashboard and change "user id" to "admin user id" and "Forward" the request.
  4. Now "user" can see the "projects" created by "admin".

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-09-29 00:00 UTC
Modified
2025-05-21 16:43 UTC

Affected packages and fixes

github.com/bytebase/bytebase

Go · All systems

Affected

  • introduced 0.1.0, last affected 1.0.4 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences