Skip to content
Open redirect Write-up Intermediate

Facebook push notification linkshim bypassed

A Facebook push notification link used a linkshim redirect endpoint whose endpoint parameter could be abused to send users to an attacker-controlled site. By adding extra slashes and URL-encoding the target, the author bypassed the linkshim check and the page redirected to their own domain.

Neil Mark Ochea Follow

Published on infosecwriteups.com

when I visited the facebook link something strange the whole facebook page has blank, there’s nothing here hmm so I view the source code and read it to analyze

Neil Mark Ochea / mhl_0xnmo, on infosecwriteups.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 redirect endpoint accepted a user-supplied destination in its endpoint parameter and only performed a weak check that could be bypassed with extra slashes and URL encoding.

Impact

An attacker could craft a Facebook linkshim URL that redirects victims to an arbitrary external site, undermining the malicious-link warning page; the author notes an XSS attempt was blocked by hex encoding.

What the attacker needed

Victim clicks a crafted linkshim link

The fix

The vulnerability was patched by Facebook according to the disclosure timeline.

How it was found

  1. Log in as the test user and open the push notification link that contains the endpoint parameter.
  2. Put an external website address into the endpoint parameter and observe that nothing happens.
  3. Add more slashes and URL-encode the website address, then submit it.
  4. The page redirects to the attacker's domain, bypassing linkshim.

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.

Facebook wraps outgoing links in its own redirect page (called linkshim) so it can warn you about malicious sites. The author found that the address inside that redirect could be changed to point anywhere, and by encoding the address in a special way they got past the safety check. The result is that a link that looks like it belongs to Facebook can quietly send you to someone else's website.

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 Neil Mark Ochea

View all

7 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.