A disabled account's API key still works on BMO's Mojolicious /rest/ routes, including for security-group bugs filed after the disable
The native Mojolicious /rest/ routes authenticated API keys without checking whether the account was still enabled, unlike the legacy REST and web interfaces. An attacker holding a key from a disabled account could keep reading security-restricted bugs and write through PUT /rest/component to hand restricted bugs to another account.
- Triaged in 6 days
- Fixed in 19 days
- Paid in 47 days
- Disclosed after 51 days
Summary by the program
Mozilla's Bugzilla instance had two authentication implementations with inconsistent account status validation. The legacy REST API (rest.cgi) and web interface correctly refused disabled accounts, but the newer REST routes (/rest/search/, /rest/component/) authenticated API keys without checking if the account was still enabled.
The issue was fixed by adding proper account status validation to the REST API authentication flow.
Summary by the researcher
BMO had two authentication paths, and only one of them checked whether an account was still enabled. The legacy stack (rest.cgi and the web UI) refused a disabled account. The Mojolicious bugzilla.login helper serving the native /rest/ V1 routes never called is_enabled.
Disabling an account deleted its login cookies but left its API keys and group memberships in place. So a key minted before the disable kept working on the native routes. Its owner could go on reading security-restricted bugs, including ones filed after the disable, and could still write through PUT /rest/component. Setting a component's triage owner or CC list that way handed restricted bugs to a second account that had never been in the security group. An account flagged to change its password, without being disabled, behaved the same way.
The people in that position are anyone whose account was shut off while they still held a key: offboarded staff, a banned user, or someone who closed their own account.
Mozilla fixed it in mozilla-bteam/bmo#2757, merged 2026-09-23 and shipped in release-20260923.1. The native login path now refuses disabled and password-reset accounts the way the legacy stack does. The affected code is BMO-specific. Upstream bugzilla/bugzilla has no Mojolicious login helper and isn't affected.
Context
Bugzilla is Mozilla's bug tracker, and bugzilla.mozilla.org (BMO) is the public instance. BMO exposes two authentication stacks side by side. The legacy stack is rest.cgi plus the web interface. The newer stack is a set of native /rest/ V1 routes served by a Mojolicious application, including /rest/search/* and /rest/component/*. Both accept API keys, and both are supposed to refuse accounts that are no longer enabled.
The feature at the centre of this report is account disabling. When an account is disabled, its login cookies are deleted, but its API keys and group memberships are left in place. The legacy stack checks whether the account is enabled before letting a request through. The Mojolicious bugzilla.login helper that serves the native routes did not.
Setup
The report does not describe a test environment, tooling or specific versions beyond the fix release. The relevant preconditions are:
- An account that holds at least one API key.
- That account is then disabled, or flagged to change its password without being disabled.
- The account is a member of a group that grants access to security-restricted bugs.
- The API key is used against the native
/rest/V1 routes rather than the legacyrest.cgiendpoints.
The people who end up in this position, as the researcher puts it, are anyone whose account was shut off while they still held a key: offboarded staff, a banned user, or someone who closed their own account.
Finding it
The researcher noticed that BMO had two authentication paths and that only one of them checked whether an account was still enabled. The legacy stack (rest.cgi and the web UI) refused a disabled account. The Mojolicious bugzilla.login helper serving the native /rest/ V1 routes never called is_enabled.
That asymmetry is the signal. If the same credential is accepted by one entry point and rejected by another, the weaker path defines the real access control. Because disabling an account deletes login cookies but leaves API keys and group memberships untouched, a key minted before the disable remains a valid credential on the native routes.
Exploitation
Step 1: obtain an API key while the account is enabled
The report does not show the request used to mint the key. What matters is that the key exists before the account is disabled, and that it is not revoked by the disable operation.
Step 2: have the account disabled
Disabling the account deletes its login cookies. The API key and the account's group memberships survive. The legacy stack now refuses the account; the native routes do not.
Step 3: read security-restricted bugs through the native search routes
Using the surviving key against /rest/search/*, the owner can keep reading security-restricted bugs, including bugs filed after the disable. The report does not include the exact request or response body for this step.
Step 4: write through the component route
With the same key, the owner can still write through PUT /rest/component. The report does not reproduce the request body. The important effect is that setting a component's triage owner or CC list this way hands restricted bugs to a second account that had never been in the security group. That turns a stale credential into a way of granting access to someone else.
Step 5: the password-reset variant
An account flagged to change its password, without being disabled, behaved the same way on the native routes.
Root cause
BMO had two authentication implementations with inconsistent account status validation. The legacy REST API (rest.cgi) and the web interface correctly refused disabled accounts. The newer REST routes authenticated API keys without checking whether the account was still enabled.
Concretely, the Mojolicious bugzilla.login helper serving the native /rest/ V1 routes never called is_enabled. The existing defence, the status check in the legacy stack, did not cover the new code path, so the new path silently became the weaker one. The disable operation itself only removed login cookies, which left API keys and group memberships as live credentials for any path that skipped the check.
The affected code is BMO-specific. Upstream bugzilla/bugzilla has no Mojolicious login helper and is not affected.
Impact
A disabled account's API key kept working on the native /rest/ routes. Its owner could go on reading security-restricted bugs, including ones filed after the disable, and could still write through PUT /rest/component. By setting a component's triage owner or CC list, the owner could hand restricted bugs to a second account that had never been in the security group. Accounts flagged to change their password, without being disabled, behaved the same way.
The exposure applies to anyone whose account was shut off while they still held a key: offboarded staff, a banned user, or someone who closed their own account.
Fix
Mozilla fixed the issue in mozilla-bteam/bmo#2757, merged 2026-09-23 and shipped in release-20260923.1. The native login path now refuses disabled and password-reset accounts the way the legacy stack does. The change adds proper account status validation to the REST API authentication flow.
Variants to test
- Compare every authentication entry point on the same product. Send the same API key to the legacy endpoints and to the newer native routes after disabling the account. A positive result is real data from the new path while the legacy path refuses the same key.
- Test the password-reset state separately from the disabled state. A positive result is a key that still reads restricted data while the account is flagged to change its password.
- Check whether disabling an account revokes its API keys and group memberships. A positive result is a key that survives the disable and still carries the old group access.
- Exercise write routes, not just read routes, with a stale key. A positive result is a successful
PUTthat changes a component's triage owner or CC list. - Use a write to move restricted data to a second account outside the security group. A positive result is that the second account can then see bugs it could not see before.
- Look for other helpers that authenticate without a status check, for example session or token helpers added alongside a newer framework while the legacy stack keeps its own checks.
Hunting notes
This kind of bug tends to hide where a mature application grows a second authentication stack next to an old one. The old stack has years of status checks baked in; the new one is written against the same credential store but reimplements only part of the validation. Recon signals include a mix of legacy CGI endpoints and newer framework routes under the same API prefix, and documentation that lists both. If the product lets users mint API keys and also lets administrators disable accounts, the question to ask is which code path validates the account status.
The impact covers both read and write: restricted bugs filed after the disable remained readable, and a component write could hand those bugs to an account outside the security group. That combination, a stale credential plus a way to widen access to a third party, is what makes the case concrete rather than theoretical.
Timeline
The report records the fix pull request as merged on 2026-09-23 and shipped in release-20260923.1. The report was disclosed on 2026-10-26.
What happened, in plain words
Bugzilla is the software Mozilla uses to keep track of bugs, and bugzilla.mozilla.org (often shortened to BMO) is the public copy of it that anyone can use. BMO lets people log in and, if they are allowed, look at bugs that are kept private for security reasons. To make that possible it has to check who you are every time you ask it for something. That check is called authentication.
BMO had two different ways of doing that check, built at different times. The older one, called the legacy stack, was careful: if an account had been switched off, it said no. The newer one, a set of addresses under /rest/, was not careful: it accepted a key belonging to an account that had been switched off. So a person whose account had been disabled could carry on reading private security bugs, and could even change things, using a key they had been given before the account was shut down.
This is a beginner's walkthrough of how that was found, what it allowed, and how Mozilla fixed it.
Context
What Bugzilla and BMO are
Bugzilla is a bug tracker: a website where a project records problems, tasks and discussions about its software. Each record is a "bug". Mozilla runs a public Bugzilla at bugzilla.mozilla.org, and that instance is what this report is about.
Some bugs are public and anyone can read them. Others are marked as security-restricted: they describe a weakness that has not been fixed yet, so only people in a trusted group can see them. Being in that group is what gives you access to those bugs.
Two front doors
BMO has two ways for a program (rather than a person clicking around) to talk to it. Both are called APIs. An API is simply a set of addresses a program can send requests to, the way a website has pages a browser can open. Instead of returning a web page, an API returns data.
- The legacy stack:
rest.cgiplus the normal web interface. This is the older code, and it has been around long enough to have learned all the safety checks. - The newer stack: a set of native
/rest/V1 routes, including/rest/search/*and/rest/component/*. These are served by a piece of software called Mojolicious, which is a framework for building web applications in the Perl programming language.
Both doors accept API keys, and both are supposed to refuse accounts that are no longer enabled.
What an API key is
When you log in to a website in a browser, the site gives your browser a small piece of data called a cookie, and the browser sends it back with every request so the site remembers who you are. A cookie is like a wristband you get at an event: show it at the door and you are let back in without queueing again.
An API key is the same idea for programs. Instead of a person logging in through a browser, a script is given a long secret string, and it includes that string in each request. Anyone holding the key is treated as the account it belongs to. That is why keys must be kept secret, and why they must stop working when the account behind them is shut down.
The feature at the centre: disabling an account
Sometimes an administrator needs to switch an account off: an employee leaves, a user breaks the rules, or the user closes their own account. BMO has a disable operation for this.
When an account is disabled, BMO deletes its login cookies. But it leaves two things in place: the account's API keys, and its group memberships (the list of trusted groups it belongs to, including the security group).
The older stack checks whether the account is enabled before letting a request through. The newer stack, through a piece of code called the bugzilla.login helper, did not. A helper here just means a small reusable function that several parts of the application call to do a common job, in this case logging a request in.
Setup
The report does not describe a test environment, tooling or specific versions beyond the fix release. What it does describe are the conditions that have to be true for the problem to appear:
- An account that holds at least one API key.
- That account is then disabled, or flagged to change its password without being disabled.
- The account is a member of a group that grants access to security-restricted bugs.
- The API key is used against the native
/rest/V1 routes rather than the legacyrest.cgiendpoints.
The people who end up in this position, as the researcher puts it, are anyone whose account was shut off while they still held a key: offboarded staff, a banned user, or someone who closed their own account.
Finding it
The researcher noticed that BMO had two authentication paths and that only one of them checked whether an account was still enabled. The legacy stack (rest.cgi and the web UI) refused a disabled account. The Mojolicious bugzilla.login helper serving the native /rest/ V1 routes never called is_enabled.
That asymmetry is the signal. If the same credential is accepted by one entry point and rejected by another, the weaker path defines the real access control. Because disabling an account deletes login cookies but leaves API keys and group memberships untouched, a key minted before the disable remains a valid credential on the native routes.
Think of a building with two doors and one guard. The guard at the front door checks your name against a list of people who are no longer allowed in. The side door has no guard at all, just a lock that accepts the same key. The building is only as secure as the side door, no matter how careful the front door is.
Exploitation
Exploitation here means using the weakness on purpose to see what it allows. The steps below follow the order in which the problem unfolds.
Step 1: obtain an API key while the account is enabled
The report does not show the request used to mint the key. What matters is that the key exists before the account is disabled, and that it is not revoked by the disable operation.
In plain terms: while the account is still in good standing, its owner creates a key, the same way you might generate a password for an app. That key is now a working credential.
Step 2: have the account disabled
Disabling the account deletes its login cookies. The API key and the account's group memberships survive. The legacy stack now refuses the account; the native routes do not.
This is the heart of the bug. The disable operation does half the job: it kicks the person out of the browser session, but it leaves the key and the group access behind. On the old door that does not matter, because the old door checks the account status anyway. On the new door it matters a great deal, because the new door only looks at whether the key is valid, not whether the account behind it is still allowed in.
Step 3: read security-restricted bugs through the native search routes
Using the surviving key against /rest/search/*, the owner can keep reading security-restricted bugs, including bugs filed after the disable. The report does not include the exact request or response body for this step.
The /rest/search/* routes are the addresses a program uses to ask BMO for a list of bugs matching some criteria. The * stands for whatever comes after search/ in the address. Because the key still works there, the person whose account was switched off can still pull back private security bugs, even ones created after they were shut out. That is the read half of the impact.
Step 4: write through the component route
With the same key, the owner can still write through PUT /rest/component. The report does not reproduce the request body. The important effect is that setting a component's triage owner or CC list this way hands restricted bugs to a second account that had never been in the security group. That turns a stale credential into a way of granting access to someone else.
A few terms here. PUT is one of the standard request methods: GET asks for data, PUT sends data to create or replace something. A component is a part of a product in Bugzilla, for example a particular area of the browser, and each component has settings attached to it. The triage owner is the person responsible for looking at new bugs filed against that component. The CC list is a list of people who get copied on bugs in that component.
So the write step is not just reading private data, it is changing who is allowed to see it. By naming a second account as triage owner or adding it to the CC list, the holder of the stale key can cause restricted bugs to be shared with someone who was never in the security group. That is the difference between a leak and a way of handing out access.
Step 5: the password-reset variant
An account flagged to change its password, without being disabled, behaved the same way on the native routes.
This is a related state: the account is still enabled, but the system has decided the password must be changed before normal use. The old door treats that as a reason to refuse. The new door did not, so a key belonging to such an account kept working there too.
Root cause
BMO had two authentication implementations with inconsistent account status validation. The legacy REST API (rest.cgi) and the web interface correctly refused disabled accounts. The newer REST routes authenticated API keys without checking whether the account was still enabled.
Concretely, the Mojolicious bugzilla.login helper serving the native /rest/ V1 routes never called is_enabled. The existing defence, the status check in the legacy stack, did not cover the new code path, so the new path silently became the weaker one. The disable operation itself only removed login cookies, which left API keys and group memberships as live credentials for any path that skipped the check.
The affected code is BMO-specific. Upstream bugzilla/bugzilla has no Mojolicious login helper and is not affected.
"Upstream" here means the original open-source Bugzilla project that Mozilla's version is built from. Mozilla's copy added the newer Mojolicious routes, so the mistake lives in Mozilla's additions, not in the shared code that other Bugzilla installations use.
Impact
A disabled account's API key kept working on the native /rest/ routes. Its owner could go on reading security-restricted bugs, including ones filed after the disable, and could still write through PUT /rest/component. By setting a component's triage owner or CC list, the owner could hand restricted bugs to a second account that had never been in the security group. Accounts flagged to change their password, without being disabled, behaved the same way.
The exposure applies to anyone whose account was shut off while they still held a key: offboarded staff, a banned user, or someone who closed their own account.
A bounty is a reward a company pays a researcher who reports a security problem responsibly instead of using it or publishing it.
Fix
Mozilla fixed the issue in mozilla-bteam/bmo#2757, merged 2026-09-23 and shipped in release-20260923.1. The native login path now refuses disabled and password-reset accounts the way the legacy stack does. The change adds proper account status validation to the REST API authentication flow.
In other words, the side door now has the same guard as the front door: before a key is accepted on the native routes, the code checks whether the account behind it is enabled and not waiting on a password change.
Variants to test
These are follow-up checks for anyone learning to look for the same pattern.
- Compare every authentication entry point on the same product. Send the same API key to the legacy endpoints and to the newer native routes after disabling the account. A positive result is real data from the new path while the legacy path refuses the same key.
- Test the password-reset state separately from the disabled state. A positive result is a key that still reads restricted data while the account is flagged to change its password.
- Check whether disabling an account revokes its API keys and group memberships. A positive result is a key that survives the disable and still carries the old group access.
- Exercise write routes, not just read routes, with a stale key. A positive result is a successful
PUTthat changes a component's triage owner or CC list. - Use a write to move restricted data to a second account outside the security group. A positive result is that the second account can then see bugs it could not see before.
- Look for other helpers that authenticate without a status check, for example session or token helpers added alongside a newer framework while the legacy stack keeps its own checks.
A 200 is the standard HTTP status code meaning the request succeeded. A stale key is one that should no longer be accepted but still is.
Hunting notes
This kind of bug tends to hide where a mature application grows a second authentication stack next to an old one. The old stack has years of status checks baked in; the new one is written against the same credential store but reimplements only part of the validation. Recon signals include a mix of legacy CGI endpoints and newer framework routes under the same API prefix, and documentation that lists both. If the product lets users mint API keys and also lets administrators disable accounts, the question to ask is which code path validates the account status.
Recon means the early, quiet stage of looking around a target to understand how it is built before testing anything. CGI is an older way of running programs on a web server, which is why rest.cgi looks different from the newer /rest/ addresses.
The impact covers both read and write: restricted bugs filed after the disable remained readable, and a component write could hand those bugs to an account outside the security group. That combination, a stale credential plus a way to widen access to a third party, is what makes the case concrete rather than theoretical.
Timeline
The report records the fix pull request as merged on 2026-09-23 and shipped in release-20260923.1. The report was disclosed on 2026-10-26.
Glossary
- API: a set of addresses a program can send requests to in order to read or change data, as opposed to pages a person opens in a browser.
- API key: a long secret string that identifies an account to an API, so a program can act as that account without a browser login.
- Authentication: the process of proving who you are to a system, so it can decide what you are allowed to do.
- BMO: bugzilla.mozilla.org, Mozilla's public Bugzilla instance.
- Bug: a record in a bug tracker describing a problem, task or discussion.
- Bugzilla: the bug-tracking software Mozilla uses, and the name of the public site built on it.
- Bounty: a reward paid to a researcher who reports a security problem responsibly.
- CC list: a list of people copied on bugs in a component.
- CGI: an older way of running programs on a web server;
rest.cgiis an address served this way. - Component: a part of a product in Bugzilla, with its own settings such as a triage owner and CC list.
- Cookie: a small piece of data a website gives your browser so it remembers who you are between requests.
- Credential: anything used to prove identity, such as a password, cookie or API key.
- Disabled account: an account that has been switched off and should no longer be able to do anything.
- Endpoint: a specific address on a server that accepts requests, such as
/rest/search/*. - Exploitation: using a weakness on purpose to see what it allows.
- GET: the standard request method for asking a server for data.
- Group membership: belonging to a named group in the system, which grants the permissions attached to that group.
- Helper: a small reusable function that several parts of an application call to do a common job.
- HTTP status code: a number a server returns to say how a request went; 200 means it succeeded.
- Impact: the real-world harm a weakness allows.
is_enabled: the check that asks whether an account is still switched on.- Legacy stack: the older parts of BMO,
rest.cgiand the web interface. - Mojolicious: a framework for building web applications in the Perl programming language.
- Native routes: the newer
/rest/V1 addresses served by the Mojolicious application. - Password-reset state: an account flagged to change its password, without being disabled.
- Perl: the programming language Bugzilla and Mojolicious are written in.
PUT: the standard request method for sending data to create or replace something on a server.- Recon: the early stage of quietly studying a target to understand how it is built.
- Root cause: the underlying reason a weakness exists, as opposed to its symptoms.
- Security-restricted bug: a bug kept private to a trusted group because it describes an unfixed weakness.
- Stale credential: a key or password that should no longer be accepted but still is.
- Triage owner: the person responsible for looking at new bugs filed against a component.
- Upstream: the original open-source project that a company's version is built from.
- Validation: checking that something meets the rules before acting on it, such as checking an account is enabled before accepting its key.
- Variant: a related version of the same weakness, worth testing separately.