Skip to content
Open redirect Disclosed report Beginner

Open redirect vulnerability in index.php

The index.php page on the HackerOne website redirects users based on a path parameter, and by manipulating this parameter an attacker can cause a redirect to an external domain. This allows an attacker to trick users into visiting a malicious website.

yoyobabaji Follow

Originally disclosed on HackerOne

Informational View original
  • Triaged in 2 days
  • Fixed in 23 days
  • Disclosed after 3 months

Summary: `Hello Team i would like to report an open redirect on hackerone.com with reference to report #320376. In report #320376 it shows vulnerability i mitigated but still i am able to reproduce it. so all the summary and description remains the same.

Redirection is performed by HackerOne website when index.php page is visited. The parameter to index.php is used in redirection. By manipulating this parameter, an attacker can redirect victim outside www.hackerone.com

Description:

When a user visit www.hackerone.com/index.php/xyz he/she is redirected to www.hackerone.com/xyz. However, when visiting www.hackerone.com/index.php/index.phpxyz user will be redirected to www.hackerone.comxyz (without a slash between com and xyz).

Further, when visiting www.hackerone.com/index.php/index.php.hacker0ne.com user will be redirected to www.hackerone.com.hacker0ne.com (a subdomain hacker0ne.com)

Steps To Reproduce

1.Visit https://www.hackerone.com/index.php/index.php.hacker0ne.com 2. Notice that the site redirects to https://www.hackerone.com.hacker0ne.com/

Optional: Your Environment (Browser version, Device, etc)

All Browsers

Impact

Attacker can trick users to visit malicious websites.

The original report as published on HackerOne, by yoyobabaji. 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 redirect logic in index.php does not properly validate or sanitise the path parameter before using it in a Location header, allowing manipulation of the host portion.

Impact

An attacker could trick users into visiting malicious websites by sending them links that appear to start with the trusted domain.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Visit the crafted URL with the manipulated index.php path.
  2. Observe that the site redirects to an external domain.

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 user-supplied value and uses it to send the user to another site without checking that the destination is safe. Here, the site's index.php page uses part of the URL to decide where to redirect, and by crafting a special URL an attacker can make it send victims to a site they control. This can be used in phishing because the link starts with the trusted domain.

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 from HackerOne

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.