Skip to content
Open redirect Disclosed report Beginner

Vulnerability Name: URL Redirection / Unvalidate Open Redirect

The redirect.php endpoint on reviewnic.com accepts a user-supplied URL parameter and redirects to it without validation. An attacker could craft a link that sends victims to a malicious site while appearing to originate from the legitimate domain.

hasnain_123 Follow

Originally disclosed on HackerOne

  • Disclosed after 6 months

Summary:

[visit this URL it will redirect you to http://bing.com. https://reviewnic.com/redirect.php?url=http://bing.com. Note: Attacker could change http://bing.com to http://evilsite-of-attacker.com and hence can steal user credentials.]

Impact:

[URL Redirection or Invalidate Open Redirect are usually used with phishing attack or in malware delivery, it may confuse the end user on which site they are visiting.

  1. Attacker could redirect victim to vulgar site such as any porn site which can degrade the reputation of your site as the redirection happen from your domain.
  2. Attacker could delivered malware or phishing pages in the name of your website and hence can steal user credentials.

As the front part of URL is legitimate , attacker can easily convince users to click on malicious crafted link, and hence can easily target user of https://reviewnic.com]

Steps To Reproduce:

[add details for how we can reproduce the issue]

  1. [visit this URL it will redirect you to http://bing.com]
  2. [https://reviewnic.com/redirect.php?url=http://bing.com.]
  3. [Attacker could change http://bing.com to http://evilsite-of-attacker.com and hence can steal user credentials]

Supporting Material/References:

[If possible, applications should avoid incorporating user-controllable data into redirection targets. In many cases, this behavior can be avoided in two ways:

-Remove the redirection function from the application, and replace links to it with direct links to the relevant target URLs. -Maintain a server-side list of all URLs that are permitted for redirection. Instead of passing the target URL as a parameter to the redirector, pass an index into this list.

If it is considered unavoidable for the redirection function to receive user-controllable input and incorporate this into the redirection target, one of the following measures should be used to minimise the risk of redirection attacks:

-The application should use relative URLs in all of its redirects, and the redirection function should strictly validate that the URL received is a relative URL. -The application should use URLs relative to the web root for all of its redirects, and the redirection function should validate that the URL received starts with a slash character. It should then prepend http://yourdomainname.com to the URL before issuing the redirect. -The application should use absolute URLs for all of its redirects, and the redirection function should verify that the user-supplied URL begins with http://yourdomainname.com/ before issuing the redirect.]

Impact

  1. Attacker could redirect victim to vulgar site such as any porn site which can degrade the reputation of your site as the redirection happen from your domain.
  2. Attacker could delivered malware or phishing pages in the name of your website and hence can steal user credentials.

The original report as published on HackerOne, by hasnain_123. 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 script takes the target URL directly from the query string and issues a redirect without validating that it points to an allowed domain.

Impact

An attacker could use the legitimate domain to lend credibility to phishing or malware links, potentially stealing credentials, though the report does not demonstrate an actual credential theft.

What the attacker needed

Victim clicks a crafted link

The fix

The application should validate the redirect target against a server-side allowlist or use relative URLs only, as the report's references suggest.

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 a feature where a website sends you to another address given in the link. Here, the site does not check where it is sending you, so an attacker can make a link that looks like it belongs to the real site but actually takes you to a fake login page or malware. Because the first part of the link is the real domain, people are more likely to trust it.

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 Reddit

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.