Skip to content
Info disclosure Disclosed report Beginner

Users referencing public issues in their private repositories are still shown as participants

A user who links a public issue from a private issue is incorrectly shown as a participant on the public issue, even though they did not comment, edit, or get mentioned. This leaks the identity of the private user to anyone viewing the public issue.

GitLab

Originally disclosed on GitLab

  • Fixed in 27 days
  • Disclosed after 27 days

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #1958705 by jnmrseqbktyhymc on 2023-04-22, assigned to @kmorrison1:

Report | Attachments | How To Reproduce

Report

Summary

Member becomes public participant without commenting, editing, or being mentioned

Steps to reproduce

In short, create an issue in a private project containing a link to a public issue.

  1. Create two users with any username (public_member and private_member)
    • For simplicity, these are named public_member and private_member in this report, but can be anything else
  2. With public_member, create a public project (public_project)
  3. With public_member (or any other new account except private_member), create an issue (public_issue) on public_project with any title/description
  4. With private_member, create a private project (private_project)
  5. With private_member, create an issue (private_issue) on private_project
  6. With private_member, edit private_issue to include a link to public_issue (https://gitlab.com/jnmrseqbktyhymcmain1/demo-public-project/-/issues/1)
  7. Either logged out, or logged into any account other than private_member, view public_issue and note that private_member is listed as a participant (incorrect), but does not show up on activity (correct)

After becoming a participant, there doesn't appear to be a way to un-participate. Even removing the link from private_issue keeps you as a participant to public_issue.

Impact
  • Identity correlation
    • Participants of public issues can be seen by everyone
  • Confidentiality
    • Since it is made in private_issue, I do not expect it to leak into public_issue
    • Supported by the fact that no public activity log entry is generated with a private project,
      but there is one with a public project
Examples
What is the current bug behavior?

private_member can be seen as a participant (attachment: [2.png](https://h1.sec.gitlab.net/a/d83e698a-167d-495f-8cdb-1572ecb64501/2.png): 2.png) for just adding a link of the public issue into private_issue.

What is the expected correct behavior?

private_member cannot be seen as a participant (attachment: [1.png](https://h1.sec.gitlab.net/a/aead0a21-8d06-4460-bf9b-38d267ece957/1.png): 1.png) for adding a link of the public issue into private_issue.

Relevant logs and/or screenshots

If instead of private_issue, the link was added to a different public issue, there would be an activity log entry (attachment: [activity.png](https://h1.sec.gitlab.net/a/bfa22b33-2403-4cf2-b5b7-ca8e8547e400/activity.png): activity.png). Since there is no activity log when using private_issue, this supports the view that they should also not be shown as a participant (anyone can see all participants of a public issue).

Output of checks

This bug happens on GitLab.com

Impact

Examples of impact

HackerOne public project

Most GitLab HackerOne submissions are made anonymously.
After linking to a public issue made for a HackerOne submission from a private project, their identity can be correlated.

Since there doesn't appear to be a way to remove self from the public participants list,
all of the past history on the anonymous account can be permanently linked to the main account too.

Alt account

Since multiple accounts are not forbidden by the terms of service, some users have alt accounts.
For example, they might use them to only open issues on public projects
and have a private list of opened issues on their main account.
Doing so links their main (private) account with their alt (public) accounts.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

Investigation

From comment

It is a regression caused by redefined method read_ability_for from https://gitlab.com/gitlab-org/gitlab/-/merge_requests/98116/diffs#7efdd02a127f378855725acd8f695b0a69325cea_644_645.

Instead of checking an access to private issue it makes the code to check access to current (public issue).

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

Impact

An attacker could correlate a user's private identity with their public activity, and there is no way to remove oneself from the participant list.

What the attacker needed

A GitLab account; ability to create private and public projects; victim links a public issue from a private issue

How it was found

  1. Create two users, one public and one private.
  2. With the public user, create a public project and a public issue.
  3. With the private user, create a private project and a private issue.
  4. Edit the private issue to include a link to the public issue.
  5. View the public issue while logged out or as another user; the private user appears as a participant.

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.

When you link to another issue in GitLab, the system sometimes adds you to the list of 'participants' on that issue. Here, a user linked a public issue from a private issue, and GitLab wrongly added them to the public issue's participant list. That means anyone can see that this person was involved, even though the private issue was supposed to be secret.

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.