Skip to content
Info disclosure Disclosed report Intermediate

Private project names exposed in GraphiQL queries

A GraphQL query on a public group's epic notes revealed the name of a private project to unauthorised users. An attacker could learn private project names by querying epic notes via GraphiQL.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 months

HackerOne report #714386 by ashish_r_padelkar on 2019-10-15, assigned to @jeremymatos:

Summary

Hello,

I reported this #640962 but it was duplicate and i see that original has been marked as resolved. But there still few cases which discloses some info to unauthorised users

Steps to reproduce

  1. Create a Public group
  2. Create private project underneath
  3. Create a issue inside private project
  4. create 2 EPICs in public groups
  5. In issue, apply the EPIC1 to the issue . This should be done using issue i.e apply EPIC to issue and not the other way.
  6. Now change the EPIC from EPIC1 to EPIC 2 with in issue itself.
  7. Now if you check go to EPIC and see the timeline, you will see something like this
Screenshot_2019-10-15_at_14.20.17.png
Screenshot_2019-10-15_at_14.20.17.png From the original on GitLab
  1. If any non member see the EPIC, they wont see this info in UI as they are not the members.

9 But using below graphiQL query, they can see this info which reveals the private project name

Go to https://gitlab.com/-/graphql-explorer

query ($group_path: ID!) {  
  group(fullPath: $group_path) {  
 epic(iid:"1"){notes{edges{node{body}}}}  
}
}  

Query Variables

{"group_path": "newgroup_1"}  

The response would be like

{
  "data": {  
    "group": {  
      "epic": {  
        "notes": {  
          "edges": [  
            {  
              "node": {  
                "body": "moved issue privateproject_1#2 to epic &2"  
              }  
            }  
          ]  
        }  
      }  
    }  
  }  
}

Examples

You can use my above example. I have set the group as public and you wont see any private projects i it because you are not a member. However, using graphql, you will notice above response which i posted which reveals the private project name to you

What is the current bug behavior?

Discloses private project name to unauthorised users

What is the expected correct behavior?

Authorised users should see the private project related info

Output of checks

This bug happens on GitLab.com and might be on omnibus installations too.

Regards,
Ashish

Impact

Discloses private project names to unauthorised users using GraphQL

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

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

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 endpoint did not properly filter epic notes based on the viewer's access to the referenced private project.

Impact

Unauthorised users could learn private project names via GraphQL, though only the name is disclosed.

What the attacker needed

A public group with an epic; a private project with an issue; the issue is linked to the epic; attacker is a non-member

How it was found

  1. Create a public group.
  2. Create a private project under that group.
  3. Create an issue inside the private project.
  4. Create two epics in public groups.
  5. In the issue, apply the first epic to the issue.
  6. Change the epic from the first to the second within the issue.

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. Here, a public group's epic notes contained a reference to a private project, and the query returned that note even to non-members, leaking the private project's name.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.