Facebook’s URL spoofing vulnerability
The Facebook Android app's URL bar could be spoofed by repeatedly setting the location to a legitimate Facebook URL while opening a new window with a phishing page, so the address bar showed a trusted HTTPS URL. An attacker could use this to trick users into entering credentials on a fake page.
Published on medium.com
#### Rahul Kankrale
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 app did not properly update or lock the address bar when a new window was opened while the original page's location was being changed repeatedly.
Impact
An attacker could spoof the URL bar of multiple Facebook Android apps to show a legitimate HTTPS Facebook URL while displaying a phishing page, potentially stealing credentials.
What the attacker needed
Victim uses Facebook Android app; victim clicks an image or link; attacker hosts a phishing page
The fix
The issue was fixed after the reporter sent a bypass, and Facebook confirmed the fix completely.
How it was found
- Create an HTML file that repeatedly sets the window location to a Facebook URL using setInterval.
- Add an image with an onclick handler that opens a phishing page in a new window.
- When the user clicks the image, the phishing page opens while the address bar still shows the Facebook 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.
A URL spoofing bug means the address bar shows one website while the page content comes from another. Here, the app could be made to display a real Facebook web address even though a fake login page was shown, so users might trust it and type their password. The attacker needed the victim to click an image that opened the fake page.
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.