Bypassing Firebase authorization to create custom app.goo.gl subdomains
The Firebase console allowed a user to create a custom subdomain on app.goo.gl by changing the domain type in the creation request, even though only Google should be able to register such subdomains. An attacker could therefore create official-looking app.goo.gl short links under their control.
websecblog.com
Published on websecblog.com
Since the support of goo.gl has already ended, I've been looking for ways to shorten URLs using Google services.
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 server trusted the domain type supplied in the create request instead of enforcing that app.goo.gl subdomains can only be created by Google.
Impact
A user could create custom app.goo.gl subdomains that should only be registered by Google, enabling official-looking short links under attacker control.
What the attacker needed
A Firebase project; access to the Firebase console
The fix
The issue was fixed after the report.
How it was found
- Start creating a new short-link subdomain in the Firebase console.
- Observe the check request that validates the desired subdomain.
- Observe the create request that sends the desired subdomain in its body.
- Change the domain type in the create request from page.link to app.goo.gl.
- Send the request and see the app.goo.gl subdomain added to the project.
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 lets people make short web addresses for their apps. Normally you can only pick a name on page.link, while names on app.goo.gl are reserved for Google. The website checked the name but not which kind of address it was, so a user could ask for an app.goo.gl name and get it.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.