Skip to content
Open redirect Disclosed report Beginner

Open redirect on https://blog.fuzzing-project.org

The blog's exit.php script redirects to any URL supplied in the 'url' parameter without validation. An attacker could craft a link that appears to go to the blog but actually sends victims to a malicious site, enabling phishing.

juliocesar Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 48 days
  • Disclosed after 4 months

Summary:

There is an Open Redirect on https://blog.fuzzing-project.org/exit.php?url= due to the application not checking the value passed by the user to the "url" parameter.

Description:

Unchecked redirects occur when an application redirects to a destination controlled by attackers. This often occurs in functionality returning users to a previous page, e.g. after authenticating.

An attacker can control the value of the "url" parameter and make it redirect to a malicious endpoint.

https://blog.fuzzing-project.org/exit.php?url=

Steps To Reproduce:

Here is a proof of concept to demonstrate how an open redirect occurs. Please note that this particular example is not a vulnerability and just here for demonstration purposes.

PoC: https://blog.fuzzing-project.org/exit.php?url=aHR0cHM6Ly93d3cuaW5mb3NlYy5jb20uYnI=

The URL looks like it should go to https://blog.fuzzing-project.org, but you are redirected to https://www.infosec.com.br

Supporting Material/References:

Mitigation:

When possible, do not allow user input to directly control redirect destinations; rather, generate them on the server side (e.g. via ID -> URL mapping). When this is not an option, a strict whitelist is highly recommended. Finally, a last-ditch mitigation can be performed by removing protocol specifiers from user input prior to redirection. This last method will not fix intra-site redirect exploits, but can prevent redirects to an attacker-controlled website.

Reference:

https://www.owasp.org/index.php/Unvalidated_Redirects_and_Forwards_Cheat_Sheet

Impact

Attackers may be able to use this to execute believable phishing attacks, bypass authentication, or (in rare circumstances) violate CSRF mitigations.

Attachments

Screencast_2018-06-29_10_00_28.mp4 From the original on HackerOne

The original report as published on HackerOne, by juliocesar. 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

The application does not validate or restrict the destination URL supplied in the 'url' parameter before redirecting.

Impact

Attackers could use this to conduct believable phishing attacks, bypass authentication, or in rare cases violate CSRF mitigations.

What the attacker needed

Victim clicks a crafted link

The fix

The application should avoid letting user input directly control redirect destinations, or use a strict whitelist, or strip protocol specifiers from user input.

How it was found

  1. Craft a URL to the blog's exit.php with a 'url' parameter containing a base64-encoded external address.
  2. Open the crafted URL in a browser.
  3. Observe that the browser is redirected to the external address instead of staying on the blog.

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 address and sends the visitor there without checking it. Here, the blog's exit page accepts a 'url' value and redirects to it, so an attacker can make a link that looks like it belongs to the blog but actually goes to a scam site.

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 juliocesar

View all

7 more disclosed reports, best first.

More from Hanno's projects

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.