Skip to content
Open redirect Write-up Beginner

Facebook leak referrer data

A Facebook endpoint with a back URI parameter did not pass the URL through Linkshim, allowing an attacker to redirect users to an external site without the safety interstitial. This could expose users to malicious links that bypass Facebook's warning page.

Neil Mark Ochea Follow

Published on nmochea.medium.com

So I view the source code and read it. After reading it i found out the url endpoint in the source code does not passing by linkshim, so by adding

Neil Mark Ochea / mhl_0xnmo, on nmochea.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

Impact

An attacker could redirect users to an external site without Facebook's Linkshim warning, potentially leading them to malicious content.

What the attacker needed

A Facebook account; victim clicks a crafted link

The fix

The vulnerability was fixed by adding Linkshim to the redirect.

How it was found

  1. Log in to Facebook as a user.
  2. Open the Facebook link that contains the back URI parameter.
  3. Click the back button in the top left header.
  4. Observe that the page redirects without going through Linkshim.

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.

Facebook uses a system called Linkshim to check links before you visit them and show a warning if they might be dangerous. The researcher found a page on Facebook that would redirect you to another site without going through that check, so you could end up on a harmful site without any warning.

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 Neil Mark Ochea

View all

7 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.