Skip to content
Access control Disclosed report Intermediate

JQL Injection in Jira REST API allows unauthenticated users to access information only admin and sysadmins should access

A JQL injection in the Jira REST API search endpoint let an unauthenticated user list members of groups that should only be visible to admins. The attacker could enumerate administrators and other group names for further attacks.

Atlassian

Originally disclosed on Bugcrowd

  • Accepted in 18 days
  • Fixed in 2 months
  • Disclosed after 3.1 years

Summary by Atlassian

JQL injection vulnerability in Jira Cloud

Summary by s3cur1t3

JQL Injection in the Jira REST API allows unauthenticated users to access information only admin and sysadmins should access. The REST API search function allows JQL to be submitted as part of the search.

An JQL injection attack, analogous to SQL Injection can be used to allow an unauthenticated user to access information normally restricted to admin and sysadmins only.

From the Jira REST API documentation (https://docs.atlassian.com/software/jira/docs/api/REST/8.9.0/#api/2/group-getUsersFromGroup) only admin or sysadmin users should be able to list the members in a group.

This attack allows an unauthenticated user to list members of a group.

How the attack works:

The JIRA search API is called with a specially crafted JQL query that:

causes an error (now() function almost certainly would return a value that would not match any id in the system) executes the membersOf() function as part of the query expansion (this execution is what runs with more privileges internally to the query system) due to the error in 1, and expansion in 2, returns the list of members. An example would be to call https://bugbounty-test-s3cur1t3.atlassian.net/rest/api/2/search?jql=id%20in(membersOf(%22jira-software-users%22),now()) which lists all the group members of the jira-software-users group.

The same can be done for the jira-administrators group, which would allow an unauthenticated user to get a list of all the administrators, to be used in further attacks.

The same expansion can be used to also try to brute force likely group names such as QA-testers or Approvers or whatever.

This has now been fixed by Atlassian.

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

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 the search endpoint expanded JQL functions such as membersOf() with elevated internal privileges without checking the caller's authorisation.

Impact

An unauthenticated user could list members of groups such as jira-software-users and jira-administrators, and could try to brute force other group names.

What the attacker needed

No authentication required; knowledge of a group name

The fix

It was fixed by Atlassian.

How it was found

  1. Send a search request with a crafted JQL query that includes a function causing an error and the membersOf() function.
  2. The error combined with the expansion returns the list of group members.

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.

Jira lets users search issues with a query language called JQL. The search endpoint did not properly check who was running the query, so a crafted query could make the system reveal group membership lists that are normally restricted to administrators.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Atlassian

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.