Skip to content
Info disclosure Disclosed report Beginner

Issues Related branches of private projects are visible to reporters when issue is moved

When an issue is moved from one private project to another, system notes on the issue still show branch names from the original private project. A reporter in the destination project, who has no access to the source project, can see those branch names.

GitLab

Originally disclosed on GitLab

  • Fixed in 26 days
  • Disclosed after 26 days

HackerOne report #848864 by ashish_r_padelkar on 2020-04-13, assigned to @cmaxim:

Summary

Hello,

When issue is moved from one private project to another, the related branches of the issue are visible to the reporters (and higher) which actually belongs to the private project

Steps to reproduce

  1. Create a new issue in private projectA.
  2. Add 2-3 branches to this issue using Create merge request option from an issue. Only create branches not merge requests.
  3. Now move this issue in some other projectB.
  4. Login as Reporter in the projectB (but no access to projectA) and see the issue. You should see the branches created on this issue through system notes. This actually belongs to old private project where it was moved from.

What is the current bug behavior?

Related branches of the issue are visible to reporters of new project where the issue is moved to.

What is the expected correct behavior?

System notes which reveals branches from a source project should be removed when issue is moved

Output of checks

This bug happens on GitLab.com

Regards,
Ashish

Impact

System notes reveals related branches of issue which is moved from private project for the reporters

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 system notes that record branch creation are not removed or filtered when an issue is moved to another project, so they leak information from the source project.

Impact

A reporter in the destination project could see branch names from the source private project.

What the attacker needed

Two projects with different access levels; Reporter role in destination project; No access to source project

How it was found

  1. Create a new issue in a private project.
  2. Add branches to the issue using the 'Create merge request' option, creating only branches and not merge requests.
  3. Move the issue to another project.
  4. Log in as a Reporter in the destination project (with no access to the source project) and view the issue.
  5. Observe that the branches created on the issue are visible through system notes.

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, an issue can be moved between projects. When you create a branch from an issue, GitLab adds a note to the issue saying which branch was created. This report found that after moving the issue to a different project, those notes remain, so people in the new project can see branch names from the old private project even though they should not have access to it.

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.