Users can see Security report of public projects
The pipeline security report page was accessible to any user for public projects even when the 'Public Pipelines' setting was disabled. An attacker could view sensitive security scan results that should have been restricted.
GitLab
Originally disclosed on GitLab
- Fixed in 10 months
- Disclosed after 10 months
Summary: Hello,
As per documentation here https://gitlab.com/help/user/permissions, Guest and Reporters are not allowed to see project Security Dashboard.
This report also appears on default branch pipeline security tab at /pipelines/<PipelineId>/security
Description:
This works perfectly for private projects. Security dashboard as well as pipeline security report is not visible for guests
However, for public project this isn't the case. The security dashboard is not accessible but pipeline security report is visible to everyone which i believe is the same information? So this should not be visible for everyone for public projects too
Steps To Reproduce:
-
As any user try to access security dashboard
/security/dashboardof public project and you will get access denied403 -
Now go to any successful pipeline of default branch and click on security tab
/pipelines/<PipelineId>/securityand all the information is displayed!
Regards, Ashish
Impact
Security report is visible for public projects!
</details> </p>Summary
When a public project has Settings > CI/CD > Public Pipeline unchecked, /pipelines/:id/security is still accessible to any user.
Steps to reproduce
- In a public project, set
Settings > General > Project Visibility > PipelinestoEveryone with access. - In the same project, set
Settings > CI/CD > Public Pipelinesas unchecked. - Navigate to
/pipelines/:pipeline_id/security.
Note: pipelines can be made public/private in two different settings. You should follow the steps above to isolate the behavior for the setting with the bug.
What is the current bug behavior?
The pipeline security report is visible.
What is the expected correct behavior?
The pipeline security report should respond with 404. This should match the behavior from when the pipelines visibility setting is controlled by Settings > General > Project Visibility.
Relevant logs and/or screenshots
Resolution
Fix bug and update documentation
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the access control check for the pipeline security report page did not properly consider the 'Public Pipelines' setting, only the project visibility setting.
Impact
Any user could view the security report of a public project even when pipelines were set to private, potentially exposing vulnerability information.
What the attacker needed
Public project; pipelines visibility set to 'Everyone with access'; public pipelines setting unchecked
The fix
The resolution was to fix the bug and update the documentation.
How it was found
- In a public project, set project visibility pipelines to 'Everyone with access'.
- In the same project, uncheck 'Public Pipelines' under CI/CD settings.
- Navigate to the pipeline security report URL.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A security report shows the results of automated checks for vulnerabilities in a project's code. The project had a setting to keep its pipelines private, but the page showing the security report ignored that setting and was visible to anyone. This meant outsiders could see details about weaknesses in the software.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.