Facebook Text Injection Vulnerability: A Creative Approach | Bug Bounty
A text injection vulnerability on an Instagram OAuth error page allowed an attacker to reflect arbitrary text, which was chained with an open redirect to create a convincing phishing message after a user logged in. The attacker could trick users into believing their account had a login issue and contact a malicious support email.
Published on infosecwriteups.com
Ph.Hitachi
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
The attacker could conduct a phishing attack by displaying a fake error message on the legitimate Instagram domain after login, potentially tricking users into contacting a malicious support email; mobile users were particularly vulnerable because the full URL was not visible.
What the attacker needed
Victim clicks a link; victim logs in to Instagram; mobile device (for enhanced impact)
The fix
The next parameter redirection was fixed, but the text injection vulnerability was not fixed according to the author.
How it was found
- Craft a URL to the Instagram OAuth error endpoint with a malicious message in the message parameter.
- Include a next parameter pointing to the crafted URL to redirect the user after authentication.
- Send the link to a victim via Facebook Messenger.
- The victim clicks the link and is redirected to the Instagram login page.
- After successful login, the victim is shown the malicious message on the legitimate Instagram domain.
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 text injection lets an attacker put their own words on a legitimate website page. Here, the error page showed whatever text was in the link, so the attacker made it look like an official Instagram error asking users to email a fake support address. This is dangerous because people trust the real Instagram login and may not notice the fake message.
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.