Skip to content
Misconfiguration Write-up Intermediate

Your Domain, My Playground: Hijacking Your Link Previews ‍

Firebase Dynamic Links allowed attackers to create short links on any domain that had the service enabled, and to set custom metadata (title, description, thumbnail) for those links. Even after Google added an Allowed Domains list to restrict redirect targets, an attacker could still create links on a trusted domain that pointed to a safe destination but displayed deceptive previews, enabling phishing and brand abuse.

shubhangborkar Follow

Published on shubhangborkar.medium.com

Non-member? Click to read for free.

Shubhang Borkar, on shubhangborkar.medium.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 service allowed any user to create links on any domain that had Dynamic Links enabled, and to set arbitrary metadata for those links, without verifying domain ownership or providing a way for domain owners to monitor or revoke such links.

Impact

Attackers could craft links on trusted domains with fake previews to phish users or damage brand reputation, and domain owners had no visibility of these links in the console and no way to revoke them.

What the attacker needed

Domain uses Firebase Dynamic Links; Attacker can access the FDL API; Victim clicks the link

The fix

The metadata manipulation vulnerability remains unpatched; Google should provide domain owners with visibility and control over all links created on their domain, including the ability to revoke them.

How it was found

  1. Identify a domain that uses Firebase Dynamic Links and is on the Allowed Domains list.
  2. Use the Firebase Dynamic Links API to create a short link on that domain, setting a custom title, description, and thumbnail image.
  3. Share the link; the preview shows the attacker-controlled metadata while the URL displays the trusted domain.
  4. The link redirects to a legitimate destination within the allowed list, but the deceptive preview tricks users.

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.

Firebase Dynamic Links is a service that creates short links which can open apps or websites. The service lets anyone who knows a domain name create links on that domain, and they can also set the preview text and image that appear when the link is shared. This means an attacker can make a link that looks like an official promotion from a trusted company, even though the link actually goes to the real company site, tricking people into believing a fake offer.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.