Skip to content
Access control Disclosed report Intermediate

Graphql: Sorting the reports by jira_status field resulted to different value

A GraphQL API allowed sorting reports by the jira_status field even for users without Jira access, and the total_count changed depending on the sort field, revealing which reports use Jira. An attacker could infer hidden Jira-related information about reports.

0619 Follow with cwe_discovery and cve-assign

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 16 days
  • Paid in 14 days
  • Disclosed after 16 days

Summary: Sorting the reports by jira_status yield to different result depicting the team is using jira even the user has no access. Description: A user with no access to jira information of any reports can somehow access the jira field using order_by through jira_status Using the 2 graphql below we can see the discrepancies of total_count for the test teams i will mention:

Test Teams:

  1. █████████

order_by:field:id = total_count: 10 order_by field:jira_status= total_count :11 2. ██████████ :

order_by:field:id = total_count: 458 order_by field:jira_status= total_count :466 3. ████

order_by:field:id = total_count: 299 order_by field:jira_status= total_count :309 4. ███

order_by:field:id = total_count: 109 order_by field:jira_status= total_count :110

Graphql Query using field id inorder_by as criteria it will yield same result except for the field of jira_status

{
  reports(where: {team: {handle: {_eq: "██████"}}}, order_by: {direction: ASC, field: id}) {
    total_count
    nodes {
      substate
      jira_escalation_state
      jira_escalation_last_state_change_at
      created_at
      disclosed_at
      extracted_report_data {
        hosts
      }
      title
      url
      team {
        handle
      }
      reporter {
        username
      }
    }
  }
}

Please change the field in sort_by to jira_status to display different result.

Below is part of the response using jira_status as the field, please notice that jira_escalation_stateand jira_escalation_last_state_change_at has null values meaning a ==public user don;t have access to this information.== { "data": { "reports": { =="total_count": 11, == "nodes": [ { "substate": "resolved", "jira_escalation_state": null, "jira_escalation_last_state_change_at": null, "created_at": "2019-09-18T11:57:36.488Z", "disclosed_at": "2020-04-21T02:53:04.699Z", "extracted_report_data": null, "title": "███", "url": "███", "team": { "handle": "████████" }, "reporter": { "username": "█████" } },

Additional information: I dig more on the discrepancies and checked the returned reports 1 by 1 to and compare result, in Team ███████, the report ███████ appeared twice because of the sort_by jira_status.

Thank you. Ariel

Impact

Due to improper access control in the sort_by of jira_status field any user can give an idea which report are using jira even if the user has no access jira information.

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

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 applied the jira_status sort without checking whether the user had permission to see Jira data, and the total_count reflected the sorted set.

Impact

Any user could infer which reports are linked to Jira even without Jira access, leaking limited internal workflow information.

What the attacker needed

A user account; GraphQL API access

How it was found

  1. Send a GraphQL query listing reports for a team, sorted by id, and note the total_count.
  2. Send the same query but sort by jira_status instead.
  3. Compare the two total_count values to see a difference.
  4. Inspect the returned reports to find duplicates or hidden Jira-related entries.

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.

The website lets people list bug reports and sort them. One sorting option was meant to be hidden from ordinary users, but the system still used it when counting results. By comparing counts with and without that sort, someone could tell which reports were linked to an internal tool called Jira.

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 by 0619

View all

4 more disclosed reports, best first.

More from HackerOne

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.