Skip to content
Access control Disclosed report Beginner

Analytics visible to non member users despite `Only Project Members`

Analytics pages in a public project were accessible to non-members even when the project's analytics visibility was set to 'Only Project Members'. An attacker could directly visit the analytics URLs to view the restricted data.

GitLab

Originally disclosed on GitLab

  • Fixed in 50 days
  • Disclosed after 50 days

HackerOne report #1064645 by ashish_r_padelkar on 2020-12-22, assigned to @dcouture:

Report | Attachments | How To Reproduce

Report

Summary

Hello,

When you set Analytics in public project as Only Project Members, non members should not see the analytics pages.However, they can still see the pages if they directly visit the Analytics URLs.

Steps to reproduce
  1. Create a public project and set Analytics as Only Project Members.
Screenshot_2020-12-22_at_23.46.00.png
Screenshot_2020-12-22_at_23.46.00.png From the original on GitLab
  1. Login as non member and navigate to this public project. You wont see Analytics menu as expected.
  2. Now use these direct URLs and you will be able to see the analytics

/-/graphs/master/charts
insights/#/issues
-/analytics/code_reviews
etc

What is the current bug behavior?

Analytics Pages still visible to non members in public project despite setting as Only Project Members

What is the expected correct behavior?

Analytics pages should not be accessible to non members when such settings are in place.

Output of checks

This bug happens on GitLab.com GitLab Enterprise Edition 13.8.0-pre 2fb64612ef2

Regards,
Ashish

Impact

Analytics pages visible to non members despite setting as Only Project Members

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 analytics pages did not enforce the project's visibility setting, allowing direct URL access without authorisation checks.

Impact

Non-members could view analytics pages that were intended to be restricted to project members.

What the attacker needed

A public project with analytics set to members only; attacker has a non-member account

How it was found

  1. Create a public project and set Analytics as Only Project Members.
  2. Log in as a non-member and navigate to the public project; the Analytics menu is not shown.
  3. Directly visit the analytics URLs to view the analytics pages.

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 owner set analytics to be visible only to project members, but the website did not check this when someone typed the analytics page address directly. So anyone could see the analytics by guessing the web address.

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.