Skip to content
Open redirect Write-up Beginner

How Redirects work on Facebook? Technical breakdown

A Facebook endpoint accepted a user-controlled destination parameter and redirected visitors to an arbitrary external site, an open redirect. The author could redirect to an attacker-chosen IP address even though Facebook's Linkshim defence blocked named malicious domains.

Abhisek R Follow

Published on abhisek3122.medium.com

Recently I was been working on Facebook Whitehat program and I wanted to explain a bug which I found โ€” OPEN REDIRECT

Abhisek R, on abhisek3122.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 redirect endpoint did not validate the destination against an allowlist, and the Linkshim protection only matched domain names, so a bare IP address was not recognised as external.

Impact

An attacker could craft a Facebook link that forwards victims to an arbitrary site, which aids phishing; the Linkshim defence blocked named malicious domains but could be bypassed with an IP address.

What the attacker needed

Facebook account or public link; victim clicks the crafted link

How it was found

  1. Capture the requests made while Facebook performs a redirect.
  2. Find the request whose URL contains the destination and change that destination.
  3. Send the modified request and observe the redirect away from the Facebook domain.
  4. Try redirecting to the program's test domain and see Linkshim block it.
  5. Try domain-name variations to bypass Linkshim; none work.
  6. Use an IP address as the destination instead, which succeeds.

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 takes a link from the address bar and sends you to whatever address is in it, without checking that the address belongs to the site. Attackers use this to make a phishing link look like it points at a trusted site, because the trusted site does the forwarding. Here the site's safety check blocked known bad domain names, but the author found that typing a raw IP address slipped past 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 by Abhisek R

View all

2 more disclosed reports, best first.

More from Meta

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.