Skip to content
Access control Disclosed report Beginner

Group Repository Analytics visible for guest users

A guest in a private group could see the Group Repository Analytics menu option and open the analytics page, despite having no repository access.

GitLab

Originally disclosed on GitLab

  • Fixed in 25 days
  • Disclosed after 25 days

HackerOne report #995975 by ashish_r_padelkar on 2020-10-01, assigned to @ankelly:

Report

Report

Summary

Hello,

Group Repository Analytics menu option is visible for guest users in private group. This happens despite guest having no access repositories. This works correctly in projects where repository analytics is hidden from guest users but not in groups!

Also, it is mentioned here https://docs.gitlab.com/ee/user/analytics/repository_analytics.html that It’s available to anyone who has permission to clone the repository. and i dont think Guest user does!

Steps to reproduce
  1. Login as a guest user in private group
  2. Directly visit https://gitlab.com/groups/<GroupName>/-/analytics/repository_analytics and it should be accessible.
  3. It can directly seen in UI too!
What is the current bug behavior?

Guest users are able to view Repository Analytics menu option despite no access to repositories of projects in private group!

What is the expected correct behavior?

Repository Analytics menu option should not be visible to guest users

Output of checks

This bug happens on GitLab.com GitLab Enterprise Edition 13.5.0-pre a9762e8ca14

Regards,
Ashish

Impact

Guest users in private group able to see Repository Analytics despite no access to repositories from projects!

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 a missing permission check on the group repository analytics page, allowing guest users to access it despite lacking repository access.

Impact

Guest users in a private group could see the Repository Analytics menu option and page despite having no repository access.

What the attacker needed

A guest account in a private group

How it was found

  1. Log in as a guest user in a private group.
  2. Directly visit the group's repository analytics URL.
  3. Observe that the analytics page is accessible.

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.

In GitLab, a guest in a private group should not see repository analytics, but the menu option and page were accessible to them.

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.