Skip to content
Info disclosure Disclosed report Beginner

Users can see number of open merge requests/issue `counts` from public project despite no permissions

A public project's issue and merge request counts were visible on a contributor's profile even when those features were restricted to project members. An attacker could see the number of open issues and merge requests, which should have been hidden.

GitLab

Originally disclosed on GitLab

  • Fixed in 16 months
  • Disclosed after 16 months

HackerOne report #692199 by ashish_r_padelkar on 2019-09-11, assigned to akelly:

Summary

Hello,

When public projects issues and merge requests are set as Only Project Members , none of its information should be publicly visible.
However, anyone can see the open merge requests and issue counts of such projects using user profile who have contributed to such projects.

Steps to reproduce

  1. Set a user profile at https://gitlab.com/profile as public
Screenshot_2019-09-11_at_13.13.02.png
Screenshot_2019-09-11_at_13.13.02.png From the original on GitLab
  1. Create a public project with issue and merge requests as Only project members
  2. Contribute to this project so that it appears on your profile at https://gitlab.com/users/<UserName>/contributed
  3. Login as non member who cant see issues/merge requests from the public project.
  4. Navigate to the user who contributed to that project https://gitlab.com/users/<UserName>/contributed
  5. You will see number of Open merge requests and Open public issue counts from that project which is otherwise not visible.
Screenshot_2019-09-11_at_13.17.34.png
Screenshot_2019-09-11_at_13.17.34.png From the original on GitLab

What is the current bug behavior?

Able to see number of open merge requests and issue counts from public projects which are restricted.

What is the expected correct behavior?

None of the info should be visible when issue and merge requests are accessible only to members

Output of checks

This bug happens on GitLab.com and might be on omnibus installations!

Regards,
Ashish

Impact

Information disclosure of open merge request counts and public issue counts from public projects when issues and merge requests are restricted to project members only.

This is also possible in private projects where guest is able to see open merge requests counts which is not possible otherwise

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 user profile's contributed projects list did not check the project's issue and merge request visibility settings before displaying counts.

Impact

An attacker could learn the number of open issues and merge requests in projects where those features are restricted to members, which is a minor information leak.

What the attacker needed

A GitLab account; victim has a public profile; victim contributed to a restricted project

How it was found

  1. Set your user profile to public.
  2. Create a public project with issues and merge requests set to 'Only project members'.
  3. Contribute to the project so it appears on your profile's contributed projects page.
  4. Log in as a non-member who cannot see the project's issues or merge requests.
  5. Go to the contributor's profile page at /users/<UserName>/contributed.
  6. Observe the open merge request and issue counts for the restricted project.

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.

Some projects on GitLab let you hide their issues and merge requests so only members can see them. However, if you looked at the profile of someone who contributed to that project, it still showed how many open issues and merge requests there were. That is a problem because that number should be secret too.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.