CVE-2022-32170: Bytebase allows low-privilege users to view admin projects
(updated )
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
- Log in to the application as both “Admin” (
admin@example.com:admin) and Developer “User” (user@admin.com:user) and then click on “Projects”. - 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.
- 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.
- Now “user” can see the “projects” created by “admin”.
References
Code Behaviors & Features
Detect and mitigate CVE-2022-32170 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →