Skip to content
Open redirect Write-up Intermediate

πŸ€―πŸ” Your Domain, My Playground: How I Created Links on Your Site Without Access πŸ‘¨β€πŸ’»πŸ˜ˆ

The Firebase Dynamic Links API allowed anyone with a project's public API key to create short links on that project's domain that redirected to any external URL. An attacker could therefore create legitimate-looking links on a victim's domain that sent users to a malicious site.

Shubhang Borkar Follow

Published on infosecwriteups.com

Non-member? Click to read for free.

Shubhang Borkar, 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 Dynamic Links creation API trusted the client-supplied long link and only required a public API key, without verifying that the caller owned the destination domain or the project.

Impact

Attackers could create trustworthy-looking links on any affected domain that redirected to malicious sites, enabling phishing and brand impersonation; Google later mitigated arbitrary redirection by requiring an allowlist of destination domains.

What the attacker needed

Public API key from the target app; target project uses Firebase Dynamic Links

The fix

Google mitigated the issue by requiring Firebase project owners to configure an allowlist of permitted redirect domains, blocking links to unapproved destinations.

How it was found

  1. Intercept the app's request to the Dynamic Links API and note the API key and domain.
  2. Change the long link in the request to an attacker-controlled URL.
  3. Send the modified request and receive a short link on the victim's domain.
  4. Visit the short link and confirm it redirects to the attacker's URL.

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 short link is a compact URL that redirects to a longer one. Firebase Dynamic Links let app owners create such links on their own domain, but the service did not check that the person creating the link actually owned the destination. So anyone who extracted the app's public API key could make a link on the victim's domain that pointed anywhere.

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 Shubhang Borkar

View all

2 more disclosed reports, best first.

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.