Skip to content
Access control Disclosed report Beginner

Security & compliance disabled still Information and Functionality are exposed

A project maintainer disabled the security & compliance feature, but a developer could still access its pages by directly visiting the URLs, allowing them to view sensitive information and delete or edit items such as DAST profiles.

GitLab

Originally disclosed on GitLab

  • Fixed in 27 hours
  • Disclosed after 27 hours

HackerOne report #1100555 by vaib25vicky on 2021-02-11, assigned to @rchan-gitlab:

Report | Attachments | How To Reproduce

Report

Summary

There is a access control issue in security & compliance which allows malicious user to access information as well as delete or edit them.

Steps to reproduce
  • Create a PUBLIC project and disable security & compliance from the Settings > General > Visibility, project features, permissions
s1.png
s1.png From the original on GitLab
  • For simple POC, let us configure a DAST PROFILE https://gitlab.com/<owner>/<project>/-/security/configuration/dast_profiles#site-profiles
s2.png
s2.png From the original on GitLab
  • Go to add member and invite someone with developer access. Lets say Vicky
  • Vicky after going over the project don't see security & compliance tab because it is disable by the maintainer
  • But he can directly access the security & compliance all features by directly going over the URL.

https://gitlab.com/<owner>/<project>/-/security/configuration/dast_profiles
https://gitlab.com/<owner>/<project>/-/security/dashboard
https://gitlab.com/<owner>/<project>/-/security/vulnerability_report
https://gitlab.com/<owner>/<project>/-/on_demand_scans
https://gitlab.com/<owner>/<project>/-/threat_monitoring

  • The Vicky can access sensitive information and he can also DELETE or EDIT them.
  • Go to DAST PROFILE we created in previous step and delete the profile. It will be deleted.
s3.png
s3.png From the original on GitLab
  • The other parts of security & compliance are also effected such as vulnerability report, dashboard, dast profiles etc.
What is the current bug behavior?

Maintainer disabled security & compliance but still dev of the project can ACCESS & DELETE/EDIT them

What is the expected correct behavior?

Disabled security & compliance should not be accessible by anyone.

Output of checks

This bug happens on GitLab.com. (not sure about instance)

Impact

Security & compliance disabled still Information and Functionality are exposed. Attacker can ACCESS as well as DELETE/EDIT them.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

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 application only hid the security & compliance interface from the menu but did not enforce access control on the underlying pages and actions.

Impact

A developer could access sensitive security information and delete or edit items such as DAST profiles even when the feature was disabled.

What the attacker needed

A GitLab.com account; developer access to a project; security & compliance disabled by maintainer

How it was found

  1. Create a public project and disable security & compliance in the project settings.
  2. Configure a DAST profile in the security configuration.
  3. Invite a user with developer access to the project.
  4. As the developer, note that the security & compliance tab is not visible.
  5. Directly visit the security & compliance URLs (e.g., DAST profiles, dashboard, vulnerability report).
  6. Delete the DAST profile to confirm the action is possible.

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 project has a feature called security & compliance that can be turned off. Even when it was off, a user with developer access could still open the feature's web pages by typing the address directly, and could delete or change things there. This is a problem because turning off a feature should stop everyone from using it.

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.