Skip to content
Open redirect Write-up Intermediate

Rolling around and Bypassing Facebook’s Linkshim protection on iOS

Facebook's Linkshim protection could be bypassed on iOS by using a custom URI scheme containing a dot, which caused the Facebook app to launch Chrome and navigate to an arbitrary URL without showing a warning. An attacker could send a malicious link that bypasses the interstitial warning page, but only to users who have Chrome installed on their iPhone.

Seif Elsallamy Follow

Published on seekurity.com

Supp!, How are you guys! I hope you’re fine, I’m Seif Elsallamy (again) if you don’t remember me read my previous blog here: Stored XSS in the heart of the Russian email provider giant (Mail.ru)

Seif Elsallamy (@seifelsallamy), on seekurity.com

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 Linkshim URL parser allowed custom URI schemes that contained a dot, and the iOS Facebook app passed such schemes to the operating system, which launched Chrome and navigated to the attacker-controlled URL without an interstitial warning.

Impact

An attacker could bypass Facebook's malicious-link warning and send a link that opens an arbitrary URL in Chrome on iOS, but only for users who have Chrome installed; the report notes Facebook rejected the bug but fixed it.

What the attacker needed

Victim uses Facebook app on iOS; victim has Chrome installed; victim clicks a crafted link

The fix

Facebook fixed the issue after the report was rejected, though the researcher notes that Linkshim still allows dots in URI schemes.

How it was found

  1. Find that Linkshim blocks custom URI schemes without dots but allows those containing a dot.
  2. Decompile the Chrome iOS app to discover a working URI scheme that includes dots.
  3. Craft a Linkshim URL using that scheme and an arbitrary destination.
  4. Click the link in the Facebook app on an iPhone with Chrome installed, which launches Chrome and opens the destination without a warning.

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.

Linkshim is a Facebook feature that checks links before you open them and shows a warning if the link is thought to be malicious. The researcher found that by using a special link format that tells the phone to open the Chrome browser, Facebook's check could be skipped. This only worked on iPhones that had the Chrome app installed.

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.

More by Seif Elsallamy

View all

3 more disclosed reports, best first.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.