π€―π 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.
Published on infosecwriteups.com
Non-member? Click to read for free.
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
- Intercept the app's request to the Dynamic Links API and note the API key and domain.
- Change the long link in the request to an attacker-controlled URL.
- Send the modified request and receive a short link on the victim's domain.
- 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.