Skip to content
Open redirect Disclosed report Beginner

[Repository Import] Open Redirect via "continue[to]" parameter

The `continue[to]` parameter in GitLab's repository import feature accepted a double-slash prefix, allowing an open redirect to an external site. An attacker could craft a link that redirects a user who can view a repository to a malicious domain.

ysx Follow

Originally disclosed on HackerOne

  • Triaged in 8 hours
  • Fixed in 12 days
  • Disclosed after 12 days

Hi,

While experimenting with Repository Import functionality on a fresh GitLab 9.0 CE install, I noticed that the continue[to] parameter can be used to perform an Open Redirect through the inclusion of a double-slash prefix.

Proof of Concept

The following Proof of Concept URL enables a malicious actor to execute this redirect against any user โ€“ as long as they have permissions to view a certain repository.

http://<instance>/<user>/<repository>/import?continue[to]=//google.com

Observation

I first noticed the continue[to] parameter while receiving the You're not allowed to make changes to this project directly message โ€“ demonstrating that edit-level access to the repository in question is not required.

Thanks!

The original report as published on HackerOne, by ysx. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 application did not validate that the redirect target was a local path and treated a protocol-relative URL as safe.

Impact

A user with permission to view a repository could be redirected to an attacker-controlled site, which may be used for phishing; the text does not claim any further impact.

What the attacker needed

Victim can view the target repository; victim clicks a crafted link

How it was found

  1. Visit a repository's import page with the `continue[to]` parameter set to a double-slash external address.
  2. The application redirects the user to that external site.

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.

An open redirect is when a website takes a link parameter and sends you to another site without checking it. Here, the import page's `continue[to]` setting could be set to a web address starting with two slashes, which the browser treats as a full external address. A victim who clicks the crafted link ends up on the attacker's site, which can be used for phishing.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by ysx

View all

25 more disclosed reports, best first.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.