Skip to content
Open redirect Write-up Beginner

Beautiful open redirect on Google.com

An open redirect vulnerability was found on the main google.com domain, where the 'q' parameter in the '/url' endpoint could be manipulated to redirect users to an arbitrary external site. An attacker could craft a link that appears to be from Google but leads to a malicious site, potentially for phishing.

biswajeetray7 Follow

Published on biswajeetray7.medium.com

Hello geeks,Biswajeet RayHere, Security Professional, OSINT & Threat Analyst and common human.

Biswajeet Ray, on biswajeetray7.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application failed to validate the destination URL in the 'q' parameter of the '/url' endpoint, allowing arbitrary external redirects.

Impact

An attacker could use the trusted google.com domain to craft phishing links that redirect victims to malicious sites, potentially leading to credential theft or malware distribution.

What the attacker needed

Victim clicks a crafted link

The fix

The vulnerability should be fixed by validating redirect destinations against an allowlist of trusted domains and rejecting external URLs.

How it was found

  1. Collect URLs for google.com using gau and save them.
  2. Filter URLs that contain redirect parameters using gf redirect.
  3. Replace the parameter value with a malicious URL using qsreplace.
  4. Send requests and check if the response redirects to the malicious URL using httpx-toolkit.

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 write-up has not been written yet. The Original tab links to the source.

An open redirect is a flaw where a website sends you to another site without checking if that site is safe. Here, Google's own link could be changed to send people to a fake page that looks like Google, making it easier to steal passwords.

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.

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.