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.
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
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
- Log in to Facebook as a user.
- Open the Facebook link that contains the back URI parameter.
- Click the back button in the top left header.
- 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.