Skip to content
Open redirect Write-up Beginner

Open Redirect In Target Via Google Sign In

The Google sign-in flow on the target site accepted a user-supplied URL in a state parameter and redirected the browser to that arbitrary address. An attacker could craft a link that sends victims to a malicious site after they click the Google sign-in button.

Shreya Talukdar Follow

Published on infosecwriteups.com

Now, I will share how I got an Open Redirect Vulnerabilityin the target (let’s say abc.com, without disclosing the target) .

Shreya Talukdar, on infosecwriteups.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 passed the state parameter from the Google sign-in URL straight into a redirect without validating that the destination was a trusted internal address.

Impact

An attacker could use the trusted sign-in link to send victims to a malicious page, which may support phishing; the author notes this variant is rated more severely than a plain GET-based redirect.

What the attacker needed

Victim clicks a crafted sign-in link

How it was found

  1. Open the target site's login page and copy the link behind the Google sign-in button.
  2. Paste that link into a new browser tab.
  3. Change the value of the Google state parameter to an external website address.
  4. Load the modified link and observe that the browser is redirected to the 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 write-up has not been written yet. The Original tab links to the source.

An open redirect is when a website lets you put any web address into a link and then sends visitors there. Here, the sign-in link contained a setting that the site did not check, so changing it made the site forward people to a page the attacker chose. That can be used to make a phishing link look like it belongs to the real 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 Shreya Talukdar

View all

3 more disclosed reports, best first.

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.