[Bugcrowd] Jira users can get comments from issues that they have no access to
Description
Note: This issue could not be reproduced by QA team, on either QA or PROD environment.
We’ve went through the reproduction steps multiple times but never received the mail after intercepting the /mention request. (Part 2 steps 9-10)
Below is the original description provided by the researcher.
I found that users can create mentions with id of an issue and id of a comment in the issue, even when they have no access to the issue. After that the mentioned user receives an email with the comment content. The attacker must know id of an issue and id of a comment in the issue, but it does not look as a strong restrictions as the ids can be enumerated.
Steps to reproduce:
Part 1. Configuration
-
Log in as admin
-
Go to https://<YOUR_INSTANCE>.atlassian.net/jira/projects?page=1&sortKey=name&sortOrder=ASC -
Click
Create space -
Select any space from
Software developmenttab ->Use template-> Select a team-managed space -
Fill all required fields and set Access value to Private (not available on a free plan, you will see a link to upgrade plan on a free plan):
-
Click
Next -
On the
Bring your team alongdo not invite any users and clickSkip -
Click
Continue -
Create an issue in the created space
-
Open the created issue and add a comment
-
To get required ids add any reaction to the comment
-
Go to requests history and find there a request to
/gateway/api/reactions/reactions. Get id of the comment fromariand id of the issue fromcontainerAri(the values looks likeari:cloud:jira:<CLOUD_UUID>:comment/<COMMENT_ID>andari:cloud:jira:<CLOUD_UUID>:issue/<ISSUE_ID>correspondingly). Note that we need only the integer id
Part 2. The vulnerability
-
Log in as non-admin who has no access to the created project and ensure that you cannot open the issue
-
Open any issue that you have access to, add a comment
-
Click
...in the top right corner ->Create external share -
Copy the url of the share from the top and open it
-
Click My account and log in via Atlassian, click to activate your account
-
Open again the issue and click
Create external shareagain -
Open the
Mentionstab -
Click
Add mention -
Type your email as in the Atlassian account, select any comment (if there is no comments on the issue, add one), click
Add mentionand intercept the request to/api/share/<SHARE_UUID>/mentionin Burp Suite -
Change the
workItemIdto the issue id andcommentIdto the comment id (from step 12 of part 1) and process the request -
Check your email inbox, there will be email with the comment content
QA pass completed. I still could not reproduce the issue, however no regressions were found with mention functionality. We’ll ask researched to double check on their end.
I am not sure if this is something I am doing wrong but I am getting 500 Internal Server Error when I try to send the modified request.