Skip to content
Access control Disclosed report Beginner

Guests can see number of commits in Cycle Analytics

A guest user in a private project could see the number of commits in the project's Cycle Analytics page, even though they should not have access to commit information. The same issue allowed any logged-in user to see commit counts in a public project where the repository was restricted to project members only.

GitLab

Originally disclosed on GitLab

  • Fixed in 5 months
  • Disclosed after 5 months

HackerOne report #603797 by ashish_r_padelkar on 2019-06-08, assigned to jmatos_bgtvf:

Summary

Hello,

Very low severity issue where guests can see number of commits in a project which they shouldn't.

Steps to reproduce

Login as a guest in private project and navigate to Cycle Analytics and look at the numbers in commits column of Recent Project Activity

Screenshot_2019-06-08_at_11.35.51.png
Screenshot_2019-06-08_at_11.35.51.png From the original on GitLab

Impact

Guests are not allowed to see repository menu in private projects hence they shouldn't see the information related to commits. However, they can see the number of commits that took place in project for last 90 days using cycle analytics!

What is the current bug behavior?

Guest in private project are allowed to see number of commits that took place in last 90 days

This also works for public project where repository is set as Only Project Members yet anybody can see the number of commits

What is the expected correct behavior?

This information related to commits shouldn't be visible to anyone

Output of checks

This bug happens on GitLab.com and should also happen on omnibus installations too!

Regards,
Ashish

Impact

As mentioned above, guest in private project can see these numbers and also any logged in user in public project even when repository settings are set as Only Project Members

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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 Cycle Analytics feature did not properly check the user's permissions before displaying commit counts.

Impact

A guest in a private project could see the number of commits made in the last 90 days, and any logged-in user could see commit counts in a public project even when the repository was set to 'Only Project Members'.

What the attacker needed

A guest account in a private project; or any logged-in user in a public project with repository…

How it was found

  1. Log in as a guest user in a private project.
  2. Navigate to the Cycle Analytics page.
  3. Look at the numbers in the commits column of Recent Project Activity.

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 is a user with limited permissions in a project. They are not supposed to see the code repository or any details about commits. However, a page called Cycle Analytics showed them how many commits were made in the last 90 days, which is information they should not have access to.

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.