XSLeak de-anonymize Facebook user visiting website
A Facebook endpoint that checks if a visitor is logged in as a specific user could be abused to redirect to an attacker-controlled site via a short URL, enabling an XS-Leak to de-anonymise users. An attacker could determine if a visitor is logged in as a particular Facebook user by observing the redirect behaviour.
Published on mustafa0x2021.medium.com
A redirection endpoint allowed to determine if the user who’s visiting it is logged-in as the target Facebook user
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 redirection endpoint did not properly validate the redirect_url parameter, allowing a bypass using a Facebook short URL that ultimately redirects to an external site.
What the attacker needed
Victim visits a crafted link; attacker knows target Facebook user ID; attacker can create a short URL
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.
This report is about a way to find out if someone is logged into Facebook as a specific person. The trick uses a special link that Facebook uses to confirm your identity, and by adding extra parts to the link, an attacker can make it redirect to their own website. By watching how the link behaves, the attacker can learn if the visitor is logged in as the target user.
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.