What is Phabricator?
A Mozilla Phabricator API token and a Bugzilla token were found exposed in a public GitHub repository. An attacker with the token could impersonate a Mozilla account and interact with Phabricator as that user.
wunderwuzzi23.github.io
Published on wunderwuzzi23.github.io
Last month I did some research on Firefox, specifically I was learning more about it’s remote debugging features. As part of that I was reading Bugzilla bug information and learned more about Mozilla’s infrastructure.
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
Impact
An attacker could impersonate a Mozilla account and use the token to interact with Phabricator; the text does not state what specific actions were possible.
What the attacker needed
Public GitHub repository; token committed to the repo
The fix
The issue was fixed by Mozilla after being reported.
How it was found
- Learn that Mozilla uses Phabricator and that API tokens often start with 'api-' or 'cli-'.
- Search GitHub for tokens matching that pattern.
- Find a repository containing a Mozilla Phabricator API token and a Bugzilla token.
- Validate the token using the Phabricator whoami API endpoint.
- Confirm the token impersonates a Mozilla account.
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.
An API token is like a password that lets a program talk to a service without a person logging in. Here, someone had put such a token in a public code repository, so anyone who found it could use it to act as that Mozilla user. The researcher found it by searching for the known token format.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.