Facebook iOS address bar spoofing
The Facebook for iOS in-app browser (WebView) failed to update the address bar when a page redirected to a URL on a non-responsive port, so the displayed HTTPS address did not match the content shown. An attacker could make the bar show a trusted site such as instagram.com while the page body came from the attacker's own server.
Published on servicenger.com
Created two files and host it on server: 1. red.php : <html><head><title>Instagram</title> </head> <body> <a href=”/loc.php?url=https://instagram.com:1234/“></a> <script> document.querySelector(“a”).click(); </script> <div id=”1″><font size=”15″>FBInbox : Rahul Kankrale</font></div> </body> </html>
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 WebView updated the displayed URL before the redirect target finished loading, and a redirect to a port that never responds left the bar showing the new address while the old page content stayed on screen.
Impact
A victim could be shown a trusted HTTPS address while viewing attacker-controlled content, which could be used for phishing; the report does not claim any further compromise.
What the attacker needed
Facebook for iOS app; victim taps attacker link in a thread; attacker hosts two pages
The fix
The issue was fixed by Facebook for iOS, as the timeline states.
How it was found
- Send the attacker's page link to the victim in a message.
- Copy the thread link from the mobile Facebook site for the victim's thread.
- Post the copied thread link on the victim's wall.
- The victim, using Facebook for iOS, taps the posted link so the thread opens inside the app.
- The victim taps the attacker's page link from the opened thread.
- The address bar shows instagram.com while the content comes from the attacker's server.
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.
When you tap a link inside an app, the app often opens it in a small built-in browser rather than Safari. That browser shows an address bar so you can check which site you are on. Here the bar kept showing one site's address while the page actually displayed another site's content, so a user could be tricked into trusting the wrong 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.