Skip to content
Info disclosure Disclosed report Intermediate

Status page integration renders arbitrary GFM references to private/confidential ressorces

The status page integration rendered GitLab Flavored Markdown (GFM) references to private or confidential resources, including their titles, on a publicly visible status page. An attacker could set up a status page project and reference arbitrary issues to leak titles of confidential issues from any project.

GitLab

Originally disclosed on GitLab

Critical View original
  • Fixed in 20 days
  • Disclosed after 20 days

HackerOne report #843151 by xanbanx on 2020-04-08, assigned to @cmaxim:

Hi GitLab Security Team,

Summary

GitLab recently added a status page integration (btw, a cool feature). In a status page, the content of issues is exportet to an external site hosting a status page. GitLab currently supports AWS as the external site. In this setting, GitLab's issue tracker acts as an incident list for the status page. When creating a new issue in this project, this issue is populated to the external status page, which is publically visible.

Here comes the problem now. When having a reference to a private or confidential ressource in the issue, then the status page automatically renders this and includes the title of that ressource in the resulting status page.

  • An attacker can simply use that to scan arbitrary project for confidential issues, e.g., for the gitlab repository
  • It can be used to scan issues of private projects
  • It can be used to scan issues of projects with restricted access

This does not only apply to issues. It also renders every other markdown reference, e.g., MRs, Epics, Snippets...

Steps to reproduce

As a normal user:

  1. Create public project and then create a confidential issue inside. It's GFM reference is now namespace/public-project#1

As an attacker:

  1. Setup an AWS bucket and deploy the status page. I used https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26751/diffs for the documentation.
  2. Create a private status page project, e.g., named status-page
  3. Enable the status page integration and connect it to an AWS S3 account
  4. Create a new issue on the status-page issue tracker and reference the issue from above. Just include namespace/public-project#1 in the issue body.

This now gets published to the status page. Visit the status page deployed on the AWS page. This now renders the GFM ressource to that confidential issue and thus leaking the title of the confidential issue.

Impact

The status page integration renders all GFM references, even if the user does not have any access to that.
An attacker can simply set up the status page integration and thus get access to all private issue titles including confidential issues for every project. Even if the user does not have access to that project (private project).

As an attacker, I could for example set up a status page project on gitlab.com and then scan through all issues of the gitlab-org/gitlab project and thus leaking their titles!

Examples

I tested this on gitlab.com. I integrated the status page and then used to scan one oy my previous H1 reports.
See the screenshot below, which is referencing the confidential issue of #824773

leak.png
leak.png From the original on GitLab

Here you see in the tooltip the title of that confidential issue.

What is the current bug behavior?

The status page integration renders arbitrary markdown. This includes references to ressources where the user does not have access to.

What is the expected correct behavior?

The user cannot add references to private ressources and those then get rendered.

Output of checks

This bug happens on GitLab.com

Best regards,
Xanbanx

Impact

See above

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 status page integration rendered GFM references without checking whether the user had permission to view the referenced resource.

Impact

An attacker could leak the titles of private or confidential issues from any project, even without access, by setting up a status page integration.

What the attacker needed

GitLab account; AWS S3 bucket; Ability to create a project

How it was found

  1. Create a public project and a confidential issue inside it.
  2. Set up an AWS bucket and deploy the status page.
  3. Create a private status page project.
  4. Enable the status page integration and connect it to an AWS S3 account.
  5. Create a new issue in the status page project and include the GFM reference to the confidential issue.
  6. Visit the deployed status page to see the leaked title.

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.

GitLab issues can be linked using special text like 'project#123'. When a project is connected to an external status page, the issue content is copied there. The bug meant that even links to private issues were turned into visible titles on the public status page, so anyone could learn the titles of secret issues.

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.