Full access to InDrive jira panel via exposed API token
A Jira API token was exposed in a public GitHub repository. An attacker could use it to access the company's Jira instance and view projects, tasks, comments, and other stored information.
- Disclosed after 7 months
Summary by the program
The token disclosure vulnerability was discovered, revealing the Jira API token being exposed in the company’s GitHub repository. Wrongdoers with the compromised API token could view the projects, tasks, comments, and other information stored in Jira.
The report
Description
Hello!
Browsing through GitHub I found the following repository:
███
Looking for interesting keywords, the following file popped up:
███████
package ru.indriver.jira.api
object Constants {
const val jiraHost = "https://indriver.atlassian.net"
const val baseUrl = "$jiraHost/rest"
const val token = "██████"
███
// const val token = "██████=="
}
The repository wasn't updated in a while, but I still decided to give it a change and try to make an API call with the auth token:
curl -i -s -k -X $'GET'
-H $'Host: indriver.atlassian.net' -H $'Cache-Control: max-age=0' -H $'Authorization: Basic ████' -H $'Content-Type: application/json' -H $'Sec-Ch-Ua: "Google Chrome";v="107", "Chromium";v="107", "Not=A?Brand";v="24"' -H $'Sec-Ch-Ua-Mobile: ?0' -H $'Sec-Ch-Ua-Platform: "macOS"' -H $'Upgrade-Insecure-Requests: 1' -H $'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36' -H $'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9' -H $'Sec-Fetch-Site: none' -H $'Sec-Fetch-Mode: navigate' -H $'Sec-Fetch-User: ?1' -H $'Sec-Fetch-Dest: document' -H $'Accept-Encoding: gzip, deflate' -H $'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8,de;q=0.7'
-b $'atlassian.xsrf.token=450f5681-becb-48d1-a8bc-efc045d75244_08e86700250ae917acc90fead0122eca3628f5a5_lout'
$'https://indriver.atlassian.net/rest/api/2/issue/67212'
Surprisingly, this was sucessfull and I was able to fetch a random issue ID, which normally I wouldn't have access to because you're instantly getting redirect to the atlassian OAuth flow if you're visiting https://indriver.atlassian.net/
Steps to reproduce:
- Do the following cURL:
curl -i -s -k -X $'GET' \
-H $'Host: indriver.atlassian.net' -H $'Cache-Control: max-age=0' -H $'Authorization: Basic ████████' -H $'Content-Type: application/json' -H $'Sec-Ch-Ua: \"Google Chrome\";v=\"107\", \"Chromium\";v=\"107\", \"Not=A?Brand\";v=\"24\"' -H $'Sec-Ch-Ua-Mobile: ?0' -H $'Sec-Ch-Ua-Platform: \"macOS\"' -H $'Upgrade-Insecure-Requests: 1' -H $'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36' -H $'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' -H $'Sec-Fetch-Site: none' -H $'Sec-Fetch-Mode: navigate' -H $'Sec-Fetch-User: ?1' -H $'Sec-Fetch-Dest: document' -H $'Accept-Encoding: gzip, deflate' -H $'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8,de;q=0.7' \
-b $'atlassian.xsrf.token=450f5681-becb-48d1-a8bc-efc045d75244_08e86700250ae917acc90fead0122eca3628f5a5_lout' \
$'https://indriver.atlassian.net/rest/api/2/issue/67212'
Notice the response:
███████
We have full access to the InDrive Atlassian panel, ability to fetch sensitive information.
Impact
Sensitive information disclosure - full access to the Atlassian panel - projects/issues/accounts etc.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, a hardcoded API token was committed to a public GitHub repository, and the token remained valid.
Impact
An attacker could view sensitive information such as projects, issues, and accounts in the company's Jira instance.
What the attacker needed
Public GitHub repository; valid API token
How it was found
- Find the public GitHub repository and locate the file containing the Jira API token.
- Send an authenticated request to the Jira REST API using the token.
- Observe that the request succeeds and returns issue data.
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 report has not been written yet. The Original tab links to the source.
A secret key for a company's issue tracker was accidentally left in a public code repository. Anyone who found it could use it to read internal project data, like tasks and comments, without needing a password.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.