Skip to content
Subdomain takeover Disclosed report Beginner

Expiry of herokuapp makes the official Gitlab documentation point to a demo that could have been controlled by malicious cators

A GitLab documentation page linked to an expired Heroku app that could be claimed by an attacker. An attacker could have taken over the app and used it to steal credentials from users who followed the link.

GitLab

Originally disclosed on GitLab

  • Fixed in 7 days
  • Disclosed after 7 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 #1876421 on 2023-02-16, assigned to @cmaxim:

Report | Attachments | How To Reproduce

Report

Summary

Hey! first report to GitLab : )

I was doing some source code reviews lately, I've stumbled upon the following repository of yours:

https://gitlab.com/gitlab-org/gitlab/-/blob/master/vendor/gems/omniauth-salesforce/README.md

The gem was created 5 month ago by your staff engineer, and is classified as the main repository for the gem.

Unfortunately for you, the herokuapp you direct users to experiment with has expired, and malicious actors could have claimed them, make a legitimate use-case for you to enter credentials and very easily steal user auth from a legitimate page of GitLab.

Luckily, I was there to claim it before they did!

Remediation

Claim the Herokuapp from my possession, or either change it to another link under your control

Best,

Impact

Malicious actors could have directed a campaign through legitimate repository gem of GitLab because of domain expiry.

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

How To Reproduce

Please add reproducibility information to this section:

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

Malicious actors could have directed a campaign through a legitimate GitLab repository gem because of domain expiry, potentially stealing user authentication credentials.

What the attacker needed

Victim clicks the documentation link; attacker claims the expired Heroku app

The fix

The Heroku app should be claimed by GitLab or the link changed to another URL under GitLab's control.

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.

A link in GitLab's documentation pointed to a demo website hosted on Heroku. The owner of that Heroku app had let it expire, so anyone could register the same name and take control of the demo. If a malicious person had done that, they could have tricked users into entering their GitLab login details on a page that looked legitimate.

What is Subdomain takeover?

A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.