Skip to content
Access control Disclosed report Beginner

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
<p> <details> <summary>Issue as reported from HackerOne</summary> **[HackerOne report #459034](https://hackerone.com/reports/459034)** by ashish_r_padelkar on 2018-12-08:

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/&lt;PipelineId&gt;/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:

  1. As any user try to access security dashboard /security/dashboard of public project and you will get access denied 403

  2. Now go to any successful pipeline of default branch and click on security tab /pipelines/&lt;PipelineId&gt;/security and 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

  1. In a public project, set Settings > General > Project Visibility > Pipelines to Everyone with access.
  2. In the same project, set Settings > CI/CD > Public Pipelines as unchecked.
  3. 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

Setting Screenshots

Resolution

Fix bug and update documentation

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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

  1. In a public project, set project visibility pipelines to 'Everyone with access'.
  2. In the same project, uncheck 'Public Pipelines' under CI/CD settings.
  3. 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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.