Skip to content
Leaked secrets Disclosed report Beginner

Jira Credential Disclosure within Mozilla Slack

A Jira admin API token was hard-coded in a Python script shared in a public Mozilla Slack channel. Anyone who could see the channel could use the token to act with Jira administrator privileges over projects, users and configuration.

griffinf Follow

Originally disclosed on HackerOne

Bounty$1,000 Critical View original
  • Fixed in under an hour
  • Paid in 5 days
  • Disclosed after 6 days

Summary by the program

The reporter who is an NDA'd contributor with access to internal Mozilla slack instance found a Jira admin API token hard-coded in a script which was shared in a public slack channel. The API key was revoked and the script was deleted from the public channel.

The report

Summary:

I was able to find Jira Admin API Keys disclosed within Mozilla's #███ Slack channel which was posted by a staff member of Mozilla.

Steps To Reproduce:

1.Navigate to the following file -█████ 2.Observe the exposed credentials on line 310-312 of the Python Script. 3. Verify Groups with the following CURL request - curl -u "██████:ATATT3xFfGF0V99l_█████████551CCC5D" -H "Content-Type: application/json" https://mozilla-hub.atlassian.net/rest/api/3/user/groups?accountId=████████

  1. Observe the following output which shows that the user is a Jira Administrator, Administrator and Jira Service Desk user etc.

[{"name":"jira-servicedesk-users","groupId":"███","self":"███████:"jira-administrators","groupId":"████████","self":██████:"jira-software-users","groupId":"███","self":██████████:"jira-servicemanagement-customers-mozilla-hub","groupId":"██████████","self":███:"site-admins","groupId":"████████","self":██████:"administrators","groupId":"██████████","self":██████:"Managers","groupId":"█████","self":██████"}]

Impact

Summary:

Admin API credentials provide elevated privileges that can grant access to all projects, user accounts, configurations, and other sensitive data stored in Jira.

The original report as published on HackerOne, by griffinf. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Mozilla runs an internal Slack instance, and one of its public channels (the report redacts the channel name) is used to share scripts and tooling. Jira is the issue tracker behind mozilla-hub.atlassian.net, and its REST API exposes administrative endpoints that require credentials with elevated privileges. The report concerns a Jira admin API token that was hard-coded in a Python script posted to that Slack channel, and the fact that the token could be used to confirm the account behind it held Jira administrator rights.

The weakness is classified as information disclosure, and the program rated it critical. A bounty of 1000.00 USD was paid, and the report was disclosed on 2024-04-23.

Setup

The reporter describes themselves as an NDA'd contributor with access to the internal Mozilla Slack instance. That is the only precondition stated: access to the Slack workspace where the script had been shared. No specific tooling is named beyond curl, which is used to verify the token against the Jira REST API. The script involved is Python, and the credentials appear on lines 310 to 312.

Finding it

While browsing the public Slack channel, the reporter came across a Python script shared by a staff member of Mozilla. Inside that script, on lines 310 to 312, a Jira admin API token was hard-coded. The report notes the script was posted by a staff member of Mozilla.

Exploitation

Step 1: Locate the shared script

The reporter navigated to the file in the Slack channel. The report redacts the file location, so the exact path is not available here.

Step 2: Read the credentials from the script

The exposed credentials sit on lines 310 to 312 of the Python script. The report does not reproduce those lines, only their position.

Step 3: Verify the token against the Jira API

The reporter confirmed the token's privileges with a request to the Jira user groups endpoint, using the account ID of the user the token belonged to:

Bash
curl -u "██████:ATATT3xFfGF0V99l_█████████551CCC5D" -H "Content-Type: application/json" https://mozilla-hub.atlassian.net/rest/api/3/user/groups?accountId=████████

The -u flag supplies the account identifier and the API token as basic authentication credentials. The Content-Type: application/json header sets the request format, and the path /rest/api/3/user/groups with the accountId query parameter asks Jira which groups the given account belongs to. The token value is partially redacted in the report; the visible prefix ATATT3xFfGF0V99l_ is the Atlassian API token format.

Step 4: Read the group membership from the response

The response lists the groups the account belongs to:

JSON
[{"name":"jira-servicedesk-users","groupId":"███","self":"███████:"jira-administrators","groupId":"████████","self":██████:"jira-software-users","groupId":"███","self":██████████:"jira-servicemanagement-customers-mozilla-hub","groupId":"██████████","self":███:"site-admins","groupId":"████████","self":██████:"administrators","groupId":"██████████","self":███:"Managers","groupId":"█████","self":██████}]

The group names show the account is a Jira Administrator, an Administrator, a Jira Service Desk user, and a member of several other groups including site-admins, administrators, Managers, jira-software-users, jira-servicemanagement-customers-mozilla-hub and jira-servicedesk-users. That membership is what turns a leaked token into an administrative compromise rather than a read-only one.

Root cause

A secret was embedded directly in source code that was then shared in a channel readable by a broad audience, including NDA'd contributors. The report does not describe any secret scanning, pre-commit check or channel policy that would have caught the token before or after it was posted. The group lookup returned results, showing the token worked when tested.

Impact

As the report puts it, admin API credentials provide elevated privileges that can grant access to all projects, user accounts, configurations and other sensitive data stored in Jira. The verified group membership confirms the account held Jira Administrator and Administrator roles, so the token carried exactly those privileges. The script was shared in a public Slack channel.

Fix

The program's summary states what was done: the API key was revoked and the script was deleted from the public channel. The program states the API key was revoked and the script was deleted from the public channel.

Variants to test

  • Search public and semi-public chat channels for scripts, notebooks and CI configuration containing strings in the Atlassian token format (ATATT), then validate any hit against /rest/api/3/user/groups with the associated account ID. A positive result is a JSON array of group names, especially jira-administrators, administrators or site-admins.

Hunting notes

This bug lived in a collaboration surface rather than in an application endpoint: a public Slack channel where staff share tooling. The signal during recon is any shared script that contains authentication material, particularly tokens with recognisable prefixes. The reporter demonstrated impact by using the token against a real Jira API endpoint and showing that the account belonged to administrative groups, which is what distinguishes a leaked credential from a leaked but powerless one. The program accepted it as critical and paid a bounty, and the remediation was revocation plus removal of the message.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

What happened, in plain words

Mozilla runs its own internal Slack, a chat tool many companies use for day-to-day conversation. One of the channels in that Slack is public, and people use it to share scripts and small tools. A script is just a text file containing instructions for a computer, and this one was written in Python, a popular programming language.

Inside that script, on lines 310 to 312, someone had written a Jira admin API token directly into the code. Jira is the issue tracker Mozilla uses at mozilla-hub.atlassian.net; it is where teams record tasks, bugs and projects. An API is the way one piece of software talks to another over the internet, and a token is a long string of characters that acts like a password for that conversation. Because the token was written into the script itself, anyone who could open the script could read it.

The reporter, a contributor who had signed a non-disclosure agreement (NDA, a promise to keep internal information private) and therefore had access to the Slack workspace, found the script, read the token, and used it to ask Jira which groups the account behind the token belonged to. The answer showed the account was a Jira Administrator. That means the token was not a harmless leftover: it carried administrative power over Jira.

The program rated the issue critical, paid a bounty of 1000.00 USD, and disclosed the report on 2024-04-23. The token was revoked and the script was deleted from the public channel.

Context

Mozilla's internal Slack has a public channel (the report hides its name) where staff share scripts and tooling. Jira, the issue tracker behind mozilla-hub.atlassian.net, offers a REST API: a set of web addresses that programs can call to read or change data. Some of those addresses are administrative and only work for accounts with high privileges.

The problem here is a Jira admin API token written directly into a Python script posted in that channel, and the fact that the token could be used to prove the account behind it held Jira administrator rights.

The weakness is classified as information disclosure, which simply means sensitive information was exposed to people who should not have seen it. The program rated it critical, paid 1000.00 USD, and disclosed the report on 2024-04-23.

Setup

The reporter says they are an NDA'd contributor with access to the internal Mozilla Slack instance. That is the only precondition mentioned: being able to read the Slack workspace where the script had been shared. The only tool named is curl, a command-line program for sending web requests, used to check the token against the Jira API. The script is Python, and the credentials appear on lines 310 to 312.

Finding it

While browsing the public Slack channel, the reporter came across a Python script shared by a Mozilla staff member. On lines 310 to 312 of that script, a Jira admin API token was hard-coded. "Hard-coded" means the value is typed straight into the source code instead of being stored somewhere safer, such as a password manager or a secret store. The report notes the script was posted by a staff member of Mozilla.

Exploitation

Step 1: Locate the shared script

The reporter opened the file in the Slack channel. The report hides the file location, so the exact path is not shown here. This step matters because the script is the starting point: without finding the file, there is nothing to read.

Step 2: Read the credentials from the script

The exposed credentials sit on lines 310 to 312 of the Python script. The report does not reproduce those lines, only their position. Reading them is enough to obtain the token, because the token is stored as plain text in the file.

Step 3: Verify the token against the Jira API

A leaked string only matters if it still works. To check, the reporter sent a request to the Jira endpoint that lists which groups a user belongs to, using the account ID of the user the token belonged to:

Bash
curl -u "██████:ATATT3xFfGF0V99l_█████████551CCC5D" -H "Content-Type: application/json" https://mozilla-hub.atlassian.net/rest/api/3/user/groups?accountId=████████

Line by line:

  • curl is the program making the request, like a browser doing it from a terminal.
  • -u "██████:ATATT3xFfGF0V99l_█████████551CCC5D" supplies a username and a password in one go. Here the username is the account identifier and the password is the API token. This style of login is called basic authentication: the two values are joined with a colon and sent with the request.
  • -H "Content-Type: application/json" adds a header, which is extra information attached to a request. It tells Jira the request is formatted as JSON, a common text format for structured data.
  • https://mozilla-hub.atlassian.net/rest/api/3/user/groups?accountId=████████ is the address being called. The part /rest/api/3/user/groups is the Jira API endpoint for group membership, and ?accountId=████████ is a query parameter, a value appended to the address that tells Jira which account to look up.

The token value is partly hidden in the report. The visible start, ATATT3xFfGF0V99l_, is the pattern Atlassian API tokens begin with, which is a useful clue when searching for them.

Step 4: Read the group membership from the response

Jira answered with a list of the groups the account belongs to:

JSON
[{"name":"jira-servicedesk-users","groupId":"███","self":"███████:"jira-administrators","groupId":"████████","self":██████:"jira-software-users","groupId":"███","self":██████████:"jira-servicemanagement-customers-mozilla-hub","groupId":"██████████","self":███:"site-admins","groupId":"████████","self":██████:"administrators","groupId":"██████████","self":███:"Managers","groupId":"█████","self":██████}]

What this shows:

  • The outer square brackets [ ... ] mean the answer is a list, here a list of groups.
  • Each entry has a name, the group's name, a groupId, an internal identifier, and a self link pointing back to the group in the API.
  • The names include jira-administrators, administrators, site-admins, Managers, jira-software-users, jira-servicedesk-users and jira-servicemanagement-customers-mozilla-hub.

Those names are what turn a leaked token into an administrative problem rather than a read-only one: the account is a Jira Administrator and an Administrator, not just an ordinary user.

Root cause

A secret was written directly into source code that was then shared in a channel readable by a wide audience, including NDA'd contributors. The report does not describe any secret scanning, pre-commit check or channel policy that would have caught the token before or after it was posted. The group lookup returned results, showing the token worked when tested.

Impact

In the report's words, admin API credentials provide elevated privileges that can grant access to all projects, user accounts, configurations and other sensitive data stored in Jira. The verified group membership confirms the account held Jira Administrator and Administrator roles, so the token carried exactly those privileges. The script was shared in a public Slack channel.

Fix

The program's summary states what was done: the API key was revoked and the script was deleted from the public channel. The program states the API key was revoked and the script was deleted from the public channel.

Variants to test

  • Search public and semi-public chat channels for scripts, notebooks and CI configuration containing strings in the Atlassian token format (ATATT), then check any hit against /rest/api/3/user/groups with the matching account ID. A positive result is a JSON list of group names, especially jira-administrators, administrators or site-admins.

Hunting notes

This bug lived in a collaboration surface rather than in an application endpoint: a public Slack channel where staff share tooling. The signal during recon is any shared script that contains authentication material, particularly tokens with recognisable prefixes. The reporter showed impact by using the token against a real Jira API endpoint and demonstrating that the account belonged to administrative groups, which is what separates a leaked credential from a leaked but powerless one. The program accepted it as critical and paid a bounty, and the remediation was revocation plus removal of the message.

Glossary

  • API: a set of addresses and rules that let one program ask another program for data or actions, like a service counter where you make requests in a fixed format.
  • API token: a long string of characters that works like a password for programmatic access to a service.
  • Atlassian: the company that makes Jira; its API tokens start with ATATT.
  • Basic authentication: a login method where a username and password (or token) are joined with a colon and sent with the request.
  • Bounty: a payment made by a company to someone who reports a security problem to it.
  • CI configuration: files that tell automated build and test systems what to run; they sometimes contain credentials.
  • Critical: the highest severity rating used by the program for this report.
  • curl: a command-line program for sending web requests.
  • Endpoint: a specific address on a server that performs a particular function.
  • Group: a collection of user accounts in Jira that share permissions.
  • Hard-coded: written directly into source code instead of stored in a safer place.
  • Header: extra information attached to a web request, such as the format of its content.
  • Information disclosure: a weakness where sensitive information is exposed to people who should not see it.
  • Jira: an issue tracker made by Atlassian, used to record tasks, bugs and projects.
  • JSON: a text format for structured data, built from lists and key-value pairs.
  • NDA: non-disclosure agreement, a promise to keep internal information private.
  • Python: a popular programming language; scripts written in it are plain text files.
  • Query parameter: a value appended to a web address after a ?, used to pass details to the server.
  • REST API: a style of API built around web addresses and standard request methods.
  • Revoke: to cancel a credential so it stops working.
  • Secret scanning: automated searching of code and messages for credentials.
  • Slack: a chat tool used by companies, organised into channels.
  • Token: see API token.
  • Vulnerability class: the category a security weakness belongs to, such as information disclosure.

More by griffinf

View all

14 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.