Jira import status visible of public projects despite no access to issues
A GraphQL query exposed Jira import status, project key, and scheduling details for public projects to any user, even when issues were restricted to team members only. An attacker could learn sensitive import metadata without being a project member.
GitLab
Originally disclosed on GitLab
- Fixed in 24 months
- Disclosed after 24 months
HackerOne report #1027590 by ashish_r_padelkar on 2020-11-05, assigned to @ankelly:
Report | Attachments
Report
Summary
Hello,
When project owner imports the issues from Jira, One of the following Graphql is executed.
[{"operationName":null,"variables":{"fullPath":"groupnew321/project_1"},"query":"query ($fullPath: ID!) {\n project(fullPath: $fullPath) {\n jiraImportStatus\n jiraImports {\n nodes {\n ...JiraImport\n __typename\n }\n __typename\n }\n services(active: true, type: JIRA_SERVICE) {\n nodes {\n ... on JiraService {\n projects {\n nodes {\n key\n name\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n\nfragment JiraImport on JiraImport {\n jiraProjectKey\n scheduledAt\n scheduledBy {\n name\n __typename\n }\n __typename\n}\n"}]
In response, you can see the import status, jiraProjectKey etc. These info should not be visible to users without project membership( Should be visible only to Project Maintainer/owners) and particularly when issues are set as Team Members only. However, anyone can run the above Graphql request and obtain these information even when they are not a member of the project and issues are set as Team member only.
Steps to reproduce
- Create a public project and set issues as Team Members only so that only team members can see the issue.
- As an owner of the project, connect/integrate the project with Jira at
/-/services/jira/edit - Once you integrate, you can now import the Jira issues at
/-/issues

- Import the issues 2-3 times.
- Login as another user who doesnt have membership in above project.
- Just run the below GraphQL query
[{"operationName":null,"variables":{"fullPath":"groupnew321/project_1"},"query":"query ($fullPath: ID!) {\n project(fullPath: $fullPath) {\n jiraImportStatus\n jiraImports {\n nodes {\n ...JiraImport\n __typename\n }\n __typename\n }\n services(active: true, type: JIRA_SERVICE) {\n nodes {\n ... on JiraService {\n projects {\n nodes {\n key\n name\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n}\n\nfragment JiraImport on JiraImport {\n jiraProjectKey\n scheduledAt\n scheduledBy {\n name\n __typename\n }\n __typename\n}\n"}]
- You should see the Jira Import status, jiraProjectKey, how and at what time the import was done .
Examples
You can run above query to reproduce the issue as it is from my test project from gitlab.com. It should show you some information about jira import although you can not see the issues from that project when you browse.
What is the current bug behavior?
JIra import information visible to non members from public projects despite no access to issues
What is the expected correct behavior?
These info should not be visible to anyone except Maintainers/owners of the project. Currently it shows without permissions to any users on gitlab.
Output of checks
This bug happens on GitLab.com
Regards,
Ashish
Impact
Jira import information visible to users despite limited access to public projects
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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 GraphQL resolver for the project's Jira import fields did not enforce the same access control as the issues themselves, allowing any authenticated user to query them.
Impact
A user without project membership could view Jira import metadata (status, project key, scheduling details) for public projects, even when issues were restricted to team members only.
What the attacker needed
Public project; issues set to Team Members only; Jira integration configured; at least one import performed
How it was found
- Create a public project and set issues visibility to Team Members only.
- As project owner, integrate the project with Jira.
- Import Jira issues multiple times.
- Log in as a user with no membership in the project.
- Run the provided GraphQL query.
- Observe the Jira import status, project key, and scheduling details.
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 GraphQL query is a way to ask a server for specific data. The server did not check if the person asking was allowed to see that data, so anyone could see when and how Jira issues were imported into a project, even if they were not a member of that project.
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.