Jira Username Enumeration – Introduction
An unauthenticated user could send a JQL query to the issueTable endpoint and tell from the response whether a given username exists, because a valid user returned a normal JSON table while an invalid user returned an error saying the user does not exist. An attacker could therefore enumerate valid usernames on the Jira system.
doyler.net
Published on doyler.net
I got to perform some Jira username enumeration on a recent engagement, and I wanted to share the write-up on it.
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 endpoint returned different responses for existing and non-existing users, and did not require authentication, so the difference revealed valid usernames.
Impact
An unauthenticated attacker could enumerate valid usernames on the Jira system, which could aid further attacks; the text notes that after patching, anonymous users can no longer call the function.
What the attacker needed
Network access to the Jira instance; no authentication required
The fix
The fix was to prevent unauthenticated users from calling the projectsLeadByUser function.
How it was found
- Send a valid JQL query to the issueTable endpoint with a known valid username and observe a normal JSON response.
- Send the same request with an invalid username and observe a 400 error saying the user does not exist.
- Use a username list and send many requests to find valid usernames.
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.
Jira is a bug-tracking tool. A search feature let anyone ask 'which projects does this person lead?'. If the person existed, the site answered normally; if not, it said the user does not exist. That difference let someone test many names and learn which ones are real accounts.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.