Skip to content
Access control Disclosed report Beginner

Revoking user session in https://hackerone.com/settings/sessions does not revoke the GraphQL query session

Revoking a session did not invalidate GraphQL queries, so the revoked session could still query sensitive bounty and payout information.

japz Follow

Originally disclosed on HackerOne

Bounty$500 Low 3.9 View original
  • Triaged in 40 hours
  • Fixed in 57 days
  • Paid in 11 days
  • Disclosed after 60 days

Hi Team,

Summary:

I have found an Insufficient Session Expiration on implementation of the new Revoke user session feature of HackerOne here: https://hackerone.com/settings/sessions

Description:

The new REVOKE session feature will destroy the session of the selected device, that means any request that requires authorization should not work (POST, GET) BUT i have observed that you forgot the GraphQL query request, i can still query sensitive information despite i already revoke my current session and this can result a sensitive information disclosure

Steps To Reproduce

  1. Login to hackerone.com
  2. Go to sensitive page and capture the GraphQL request , on my case i captured the bounty settings {"query":"query User_bounty_settings_page... etc on this end point: https://hackerone.com/settings/bounties
  3. Send the GraphQL request to repeater
  4. Go to https://hackerone.com/settings/sessions and click Revoke to destroy the current session
  5. You will be logout to your account, means session destroyed
  6. Go back to burp repeater and click Go to repeat the graphql request
  7. Observed that you can still query the graphql User_bounty_settings_page, and it will disclosed the reports that was rewarded, including the amounts, report title, payment method used and other sensitive information.

Below is my sample GraphQL query and response after revoking the session:

{"query":"query User_bounty_settings_page($first_0:Int!,$currency_1:CurrencyCode!,$currency_2:CurrencyCode!) {\n  me {\n    id,\n    ...Fg\n  }\n}\nfragment F0 on PayoutPreferenceInterface {\n  default,\n  id,\n  __typename\n}\nfragment F1 on Node {\n  id,\n  __typename\n}\nfragment F2 on User {\n  tax_form {\n    url,\n    hello_sign_client_id,\n    status,\n    id\n  },\n  email,\n  bounties {\n    total_count\n  },\n  payout_preferences {\n    __typename,\n    ...F0,\n    ...F1\n  },\n  id\n}\nfragment F3 on CoinbasePayoutPreferenceType {\n  email,\n  id\n}\nfragment F4 on PaypalPayoutPreferenceType {\n  email,\n  id\n}\nfragment F5 on HackeronePayrollPayoutPreferenceType {\n  email,\n  id\n}\nfragment F6 on CurrencycloudBankTransferPayoutPreferenceType {\n  name,\n  id\n}\nfragment F7 on User {\n  payout_preferences {\n    __typename,\n    ...F0,\n    ...F3,\n    ...F4,\n    ...F5,\n    ...F6,\n    ...F1\n  },\n  id\n}\nfragment F8 on User {\n  _bounties4glIUB:bounties(first:$first_0) {\n    edges {\n      node {\n        id,\n        _id,\n        awarded_amount,\n        bonus_amount,\n        awarded_currency,\n        created_at,\n        status,\n        report {\n          _id,\n          title,\n          team {\n            name,\n            handle,\n            id\n          },\n          id\n        }\n      },\n      cursor\n    },\n    pageInfo {\n      hasNextPage,\n      hasPreviousPage\n    }\n  },\n  _bounties1CaoNY:bounties(currency:$currency_1) {\n    total_amount\n  },\n  id\n}\nfragment F9 on User {\n  _report_retest_usersixO8i:report_retest_users(completed:true,last:$first_0) {\n    completed_count,\n    edges {\n      node {\n        id,\n        completed_at,\n        report_retest {\n          report {\n            _id,\n            team {\n              handle,\n              name,\n              id\n            },\n            id\n          },\n          id\n        }\n      },\n      cursor\n    },\n    pageInfo {\n      hasNextPage,\n      hasPreviousPage\n    }\n  },\n  id\n}\nfragment Fa on User {\n  tax_form {\n    url,\n    status,\n    signed_at,\n    type,\n    id\n  },\n  id\n}\nfragment Fb on User {\n  id\n}\nfragment Fc on User {\n  _bounties3jJC5o:bounties(currency:$currency_2) {\n    total_amount\n  },\n  lufthansa_account {\n    id\n  },\n  id,\n  ...Fb\n}\nfragment Fd on User {\n  tax_form {\n    id\n  },\n  id,\n  ...Fb\n}\nfragment Fe on User {\n  lufthansa_account {\n    first_name,\n    last_name,\n    number,\n    id\n  },\n  id,\n  ...Fb\n}\nfragment Ff on User {\n  id,\n  ...Fb\n}\nfragment Fg on User {\n  id,\n  tax_form {\n    url,\n    id\n  },\n  ...F2,\n  ...F7,\n  ...F8,\n  ...F9,\n  ...Fa,\n  ...Fc,\n  ...Fd,\n  ...Fe,\n  ...Ff\n}","variables":{"first_0":100,"currency_1":"USD","currency_2":"XLA

Response:

HTTP/1.1 200 OK
Date: Tue, 02 Oct 2018 02:01:20 GMT
Content-Type: application/json; charset=utf-8
Connection: close
Cache-Control: no-cache, no-store
Content-Disposition: inline; filename="response."
X-Request-Id: 5ffd271a-bccd-4105-8991-4ed97769b1a0
Set-Cookie: ███
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Expect-CT: enforce, max-age=86400
Content-Security-Policy: default-src 'none'; base-uri 'self'; child-src www.youtube-nocookie.com b5s.hackerone-ext-content.com; connect-src 'self' www.google-analytics.com errors.hackerone.net; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' data: cover-photos.hackerone-user-content.com hackathon-photos.hackerone-user-content.com profile-photos.hackerone-user-content.com hackerone-us-west-2-production-attachments.s3-us-west-2.amazonaws.com; media-src 'self' hackerone-us-west-2-production-attachments.s3-us-west-2.amazonaws.com; script-src 'self' www.google-analytics.com; style-src 'self' 'unsafe-inline'; report-uri https://errors.hackerone.net/api/30/csp-report/?sentry_key=61c1e2f50d21487c97a071737701f598
Referrer-Policy: strict-origin-when-cross-origin
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: DENY
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
Server: cloudflare
CF-RAY: 4633948f1bbba2f6-HKG
Content-Length: 24732

████

PoC screenshot below:

█████

Impact

Insufficient Session Expiration can result to sensitive information disclosure.

Let me know if anything else is needed.

Regards Japz

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

HackerOne added a Revoke user session feature at https://hackerone.com/settings/sessions. The feature lets the user destroy the session of a selected device. The intended behaviour is that once a session is revoked, any request that requires authorisation, whether POST or GET, stops working for that session.

The researcher found that this expectation did not hold for GraphQL queries. After revoking the current session, a previously captured GraphQL request could still be replayed and would still return sensitive account data. The report classifies this as Insufficient Session Expiration, with sensitive information disclosure as the consequence.

Setup

No special tooling is described beyond a browser and Burp Suite. The researcher:

  1. Logged in to hackerone.com with a normal account.
  2. Used Burp to capture a GraphQL request issued by a sensitive page.
  3. Used Burp Repeater to replay that request after revoking the session.

Finding it

The researcher reasoned from the feature's contract: revoking a session should invalidate every authorised request made with it. Testing that contract showed that the GraphQL query request was not covered. The session was destroyed from the user's point of view (the browser was logged out), yet the captured GraphQL request continued to return data.

Exploitation

Step 1: Log in

Log in to hackerone.com.

Step 2: Capture a GraphQL request from a sensitive page

The researcher visited a sensitive page and captured the GraphQL request it issues. In this case the page was the bounty settings page at https://hackerone.com/settings/bounties, and the captured operation was User_bounty_settings_page.

Step 3: Send the request to Repeater

The captured GraphQL request is moved into Burp Repeater so it can be replayed on demand.

Step 4: Revoke the current session

Go to https://hackerone.com/settings/sessions and click Revoke to destroy the current session.

Step 5: Confirm the logout

The user is logged out of the account, which the researcher takes as confirmation that the session was destroyed.

Step 6: Replay the GraphQL request

Return to Burp Repeater and click Go to repeat the GraphQL request.

Step 7: Observe the data returned

The User_bounty_settings_page query still executes. According to the report it discloses the reports that were rewarded, including the amounts, report title, payment method used and other sensitive information.

The sample query the researcher replayed after revocation:

Text
{"query":"query User_bounty_settings_page($first_0:Int!,$currency_1:CurrencyCode!,$currency_2:CurrencyCode!) {\n  me {\n    id,\n    ...Fg\n  }\n}\nfragment F0 on PayoutPreferenceInterface {\n  default,\n  id,\n  __typename\n}\nfragment F1 on Node {\n  id,\n  __typename\n}\nfragment F2 on User {\n  tax_form {\n    url,\n    hello_sign_client_id,\n    status,\n    id\n  },\n  email,\n  bounties {\n    total_count\n  },\n  payout_preferences {\n    __typename,\n    ...F0,\n    ...F1\n  },\n  id\n}\nfragment F3 on CoinbasePayoutPreferenceType {\n  email,\n  id\n}\nfragment F4 on PaypalPayoutPreferenceType {\n  email,\n  id\n}\nfragment F5 on HackeronePayrollPayoutPreferenceType {\n  email,\n  id\n}\nfragment F6 on CurrencycloudBankTransferPayoutPreferenceType {\n  name,\n  id\n}\nfragment F7 on User {\n  payout_preferences {\n    __typename,\n    ...F0,\n    ...F3,\n    ...F4,\n    ...F5,\n    ...F6,\n    ...F1\n  },\n  id\n}\nfragment F8 on User {\n  _bounties4glIUB:bounties(first:$first_0) {\n    edges {\n      node {\n        id,\n        _id,\n        awarded_amount,\n        bonus_amount,\n        awarded_currency,\n        created_at,\n        status,\n        report {\n          _id,\n          title,\n          team {\n            name,\n            handle,\n            id\n          },\n          id\n        }\n      },\n      cursor\n    },\n    pageInfo {\n      hasNextPage,\n      hasPreviousPage\n    }\n  },\n  _bounties1CaoNY:bounties(currency:$currency_1) {\n    total_amount\n  },\n  id\n}\nfragment F9 on User {\n  _report_retest_usersixO8i:report_retest_users(completed:true,last:$first_0) {\n    completed_count,\n    edges {\n      node {\n        id,\n        completed_at,\n        report_retest {\n          report {\n            _id,\n            team {\n              handle,\n              name,\n              id\n            },\n            id\n          },\n          id\n        }\n      },\n      cursor\n    },\n    pageInfo {\n      hasNextPage,\n      hasPreviousPage\n    }\n  },\n  id\n}\nfragment Fa on User {\n  tax_form {\n    url,\n    status,\n    signed_at,\n    type,\n    id\n  },\n  id\n}\nfragment Fb on User {\n  id\n}\nfragment Fc on User {\n  _bounties3jJC5o:bounties(currency:$currency_2) {\n    total_amount\n  },\n  lufthansa_account {\n    id\n  },\n  id,\n  ...Fb\n}\nfragment Fd on User {\n  tax_form {\n    id\n  },\n  id,\n  ...Fb\n}\nfragment Fe on User {\n  lufthansa_account {\n    first_name,\n    last_name,\n    number,\n    id\n  },\n  id,\n  ...Fb\n}\nfragment Ff on User {\n  id,\n  ...Fb\n}\nfragment Fg on User {\n  id,\n  tax_form {\n    url,\n    id\n  },\n  ...F2,\n  ...F7,\n  ...F8,\n  ...F9,\n  ...Fa,\n  ...Fc,\n  ...Fd,\n  ...Fe,\n  ...Ff\n}","variables":{"first_0":100,"currency_1":"USD","currency_2":"XLA

The operation starts at me, so it resolves against the identity attached to the request. Through the fragments it pulls the user's email, tax_form details (including url, status, signed_at and type), payout_preferences across several payout types (Coinbase, PayPal, HackerOne payroll and Currencycloud bank transfer, each exposing email or name), the bounties connection with awarded_amount, bonus_amount, awarded_currency, created_at, status and the linked report with its title and team, bounty totals per currency, completed report_retest_users, and a lufthansa_account with first_name, last_name and number. The variables request 100 bounties and totals in USD and XLA.

The response the researcher received after revoking the session:

HTTP
HTTP/1.1 200 OK
Date: Tue, 02 Oct 2018 02:01:20 GMT
Content-Type: application/json; charset=utf-8
Connection: close
Cache-Control: no-cache, no-store
Content-Disposition: inline; filename="response."
X-Request-Id: 5ffd271a-bccd-4105-8991-4ed97769b1a0
Set-Cookie: [redacted]
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Expect-CT: enforce, max-age=86400
Content-Security-Policy: default-src 'none'; base-uri 'self'; child-src www.youtube-nocookie.com b5s.hackerone-ext-content.com; connect-src 'self' www.google-analytics.com errors.hackerone.net; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' data: cover-photos.hackerone-user-content.com hackathon-photos.hackerone-user-content.com profile-photos.hackerone-user-content.com hackerone-us-west-2-production-attachments.s3-us-west-2.amazonaws.com; media-src 'self' hackerone-us-west-2-production-attachments.s3-us-west-2.amazonaws.com; script-src 'self' www.google-analytics.com; style-src 'self' 'unsafe-inline'; report-uri https://errors.hackerone.net/api/30/csp-report/?sentry_key=[redacted]
Referrer-Policy: strict-origin-when-cross-origin
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: DENY
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
Server: cloudflare
CF-RAY: 4633948f1bbba2f6-HKG
Content-Length: 24732

[redacted]

The status line is 200 OK and the body is 24732 bytes of JSON, so the query was served rather than rejected. The response also carries a Set-Cookie header, which the researcher redacted in the report.

Root cause

The report does not describe the implementation. What it shows is that the revocation path invalidated the session for ordinary POST and GET requests but not for the GraphQL query request, so the GraphQL endpoint continued to accept the revoked session and resolve me against it. The report does not confirm which.

Impact

Insufficient session expiration leads to sensitive information disclosure. In this case the disclosed data includes rewarded reports with their amounts, report titles, the payment method used and other sensitive information tied to the account. The report does not describe a scenario in which a third party obtains the revoked session; the demonstrated condition is that a session the user believes is destroyed can still be used to query data.

Fix

Variants to test

  1. Revoke a session and replay every request type captured before revocation: REST GET, REST POST, GraphQL queries, GraphQL mutations, file downloads and websocket handshakes. A positive result is any of them returning data or performing an action after the logout is confirmed in the browser.
  2. Revoke one device's session while keeping another active, then replay the revoked device's captured requests. A positive result is the revoked device's requests succeeding while the other session remains valid.
  3. Log out normally (rather than using the revoke control) and replay captured GraphQL requests. A positive result is the same discrepancy between the logout and the API path.
  4. Change a password or perform any other action that is supposed to invalidate sessions, then replay captured requests. A positive result is any request still being served.
  5. Replay the request after a delay to see whether the session eventually expires. A positive result is the request still succeeding well after revocation.

Hunting notes

This kind of bug hides wherever a product has more than one way to authenticate a request. Session management pages, logout flows and password-change flows are the natural places to look, and the signal is a request type that does not go through the same middleware as the rest of the application. GraphQL endpoints are a common candidate because they often have their own resolver and context setup.

The researcher made the impact concrete by choosing a page whose query returns financial and payout data, and by showing the response after revocation. That combination, a clear before-and-after and a sensitive data set in the response, is what turns a session-handling quirk into an accepted report.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 14 min read.

What happened, in plain words

HackerOne is a website where security researchers report bugs to companies and can earn money (bounties) for them. Every account on HackerOne has a settings area, and one of those settings pages lets you see the devices where you are currently logged in and kick any of them out. That feature is called Revoke user session, and it lives at https://hackerone.com/settings/sessions.

The idea is simple: if you think someone else is using your account, or you left yourself logged in on a shared computer, you press Revoke and that session is destroyed. From that moment on, the browser on that device should not be able to do anything that needs you to be logged in.

The researcher found that this promise was only partly kept. The researcher expected ordinary requests to stop working after the revoke, but found that a GraphQL query kept working. Even after the session was destroyed and the browser was logged out, a copy of a GraphQL request that had been saved earlier could be sent again and would still return private account data: bounty amounts, report titles, payout details and more.

This class of problem is called Insufficient Session Expiration. In plain terms: you told the site to end a session, the site said it did, but the session was not really ended everywhere. The consequence here is sensitive information disclosure, which means private data was handed out to someone who should no longer have been allowed to see it.

Background you need first

Before walking through the steps, here are the few ideas the report relies on. None of them require any technical background.

A session. When you log in to a website, the server needs a way to remember who you are on the next page load. It does this by giving your browser a small piece of data, usually stored in a cookie, which the browser sends back with every request. Think of it like a cloakroom ticket: you hand in your coat, you get a ticket, and every time you come back you show the ticket to get your coat. The ticket is the session. If the ticket is cancelled at the desk, it should no longer work.

A request. Every time your browser loads a page, clicks a button or a page quietly fetches data in the background, it sends a request to the server and gets a response back. Requests have types, such as GET (asking for something) and POST (sending something).

An API. Many modern websites are built as a normal-looking page plus a hidden data service behind it. The page you see is drawn by your browser, and the data it shows is fetched from that service. That service is the API. It is like a restaurant: the menu and the dining room are the website, and the kitchen is the API. You do not walk into the kitchen yourself; the waiter carries your order back and forth.

GraphQL. GraphQL is one particular style of API. Instead of many separate addresses for different pieces of data, there is usually one address, and the request describes exactly which fields it wants back. The request is written in a small query language, so it looks a bit like a form you fill in: "give me my email, my payout preferences, my bounties". The server reads that description and returns exactly those fields as JSON, a text format for structured data.

Burp Suite and Repeater. Burp Suite is a tool that sits between your browser and the website and lets you look at, and keep a copy of, every request and response. Repeater is one part of Burp: you paste a request into it and press Go to send it again as many times as you like, without touching the browser. It is like photocopying a letter before posting it, then being able to post the same letter again later.

Why replaying matters. If a session is truly destroyed, then a copy of an old request, sent again later, should be refused. Repeater is the simplest way to test that: capture once, revoke, replay, and see what comes back.

The setup

The researcher used a browser and Burp Suite.

The three things done before the actual test:

  1. Log in to hackerone.com with a normal account.
  2. Use Burp to capture a GraphQL request that a sensitive page sends.
  3. Use Burp Repeater to send that same request again after revoking the session.

Finding it

The researcher started from what the feature promises. If revoking a session destroys it, then every request that needs you to be logged in should stop working, whatever its type. Testing that promise showed that the GraphQL query request was not covered. From the user's point of view the session was gone, because the browser was logged out. Yet the saved GraphQL request still returned data.

Step by step

Step 1: Log in

Log in to hackerone.com. This creates the session that will later be revoked.

Step 2: Capture a GraphQL request from a sensitive page

The researcher opened a page containing private data and captured the GraphQL request that page sends. The page chosen was the bounty settings page at https://hackerone.com/settings/bounties, and the operation it sends is called User_bounty_settings_page. Choosing a page with financial data matters: it makes the later result clearly sensitive rather than a harmless empty answer.

Step 3: Send the request to Repeater

The captured request is moved into Burp Repeater so it can be sent again on demand, at a moment of the researcher's choosing. This is the photocopy of the letter.

Step 4: Revoke the current session

Go to https://hackerone.com/settings/sessions and click Revoke to destroy the current session. This is the action whose effect is being tested.

Step 5: Confirm the logout

The user is logged out of the account. The researcher treats this as confirmation that the session was destroyed. In other words, the website itself says the session is over.

Step 6: Replay the GraphQL request

Return to Burp Repeater and click Go to repeat the GraphQL request. If revocation worked for every request type, this should now be refused.

Step 7: Observe the data returned

The User_bounty_settings_page query still runs. According to the report it returns the reports that were rewarded, including the amounts, the report title, the payment method used and other sensitive information.

Here is the exact query the researcher replayed after revoking the session:

Text
{"query":"query User_bounty_settings_page($first_0:Int!,$currency_1:CurrencyCode!,$currency_2:CurrencyCode!) {\n  me {\n    id,\n    ...Fg\n  }\n}\nfragment F0 on PayoutPreferenceInterface {\n  default,\n  id,\n  __typename\n}\nfragment F1 on Node {\n  id,\n  __typename\n}\nfragment F2 on User {\n  tax_form {\n    url,\n    hello_sign_client_id,\n    status,\n    id\n  },\n  email,\n  bounties {\n    total_count\n  },\n  payout_preferences {\n    __typename,\n    ...F0,\n    ...F1\n  },\n  id\n}\nfragment F3 on CoinbasePayoutPreferenceType {\n  email,\n  id\n}\nfragment F4 on PaypalPayoutPreferenceType {\n  email,\n  id\n}\nfragment F5 on HackeronePayrollPayoutPreferenceType {\n  email,\n  id\n}\nfragment F6 on CurrencycloudBankTransferPayoutPreferenceType {\n  name,\n  id\n}\nfragment F7 on User {\n  payout_preferences {\n    __typename,\n    ...F0,\n    ...F3,\n    ...F4,\n    ...F5,\n    ...F6,\n    ...F1\n  },\n  id\n}\nfragment F8 on User {\n  _bounties4glIUB:bounties(first:$first_0) {\n    edges {\n      node {\n        id,\n        _id,\n        awarded_amount,\n        bonus_amount,\n        awarded_currency,\n        created_at,\n        status,\n        report {\n          _id,\n          title,\n          team {\n            name,\n            handle,\n            id\n          },\n          id\n        }\n      },\n      cursor\n    },\n    pageInfo {\n      hasNextPage,\n      hasPreviousPage\n    }\n  },\n  _bounties1CaoNY:bounties(currency:$currency_1) {\n    total_amount\n  },\n  id\n}\nfragment F9 on User {\n  _report_retest_usersixO8i:report_retest_users(completed:true,last:$first_0) {\n    completed_count,\n    edges {\n      node {\n        id,\n        completed_at,\n        report_retest {\n          report {\n            _id,\n            team {\n              handle,\n              name,\n              id\n            },\n            id\n          },\n          id\n        }\n      },\n      cursor\n    },\n    pageInfo {\n      hasNextPage,\n      hasPreviousPage\n    }\n  },\n  id\n}\nfragment Fa on User {\n  tax_form {\n    url,\n    status,\n    signed_at,\n    type,\n    id\n  },\n  id\n}\nfragment Fb on User {\n  id\n}\nfragment Fc on User {\n  _bounties3jJC5o:bounties(currency:$currency_2) {\n    total_amount\n  },\n  lufthansa_account {\n    id\n  },\n  id,\n  ...Fb\n}\nfragment Fd on User {\n  tax_form {\n    id\n  },\n  id,\n  ...Fb\n}\nfragment Fe on User {\n  lufthansa_account {\n    first_name,\n    last_name,\n    number,\n    id\n  },\n  id,\n  ...Fb\n}\nfragment Ff on User {\n  id,\n  ...Fb\n}\nfragment Fg on User {\n  id,\n  tax_form {\n    url,\n    id\n  },\n  ...F2,\n  ...F7,\n  ...F8,\n  ...F9,\n  ...Fa,\n  ...Fc,\n  ...Fd,\n  ...Fe,\n  ...Ff\n}","variables":{"first_0":100,"currency_1":"USD","currency_2":"XLA

What this block contains, piece by piece:

  • The outer braces hold a JSON object with two keys, query and variables. The query key holds the GraphQL text, and the variables key holds the values that text refers to.
  • query User_bounty_settings_page($first_0:Int!,$currency_1:CurrencyCode!,$currency_2:CurrencyCode!) names the operation and declares three inputs: a whole number first_0, and two currency codes currency_1 and currency_2. The exclamation marks mean the values are required.
  • me { id, ...Fg } is the starting point. me means "the account this request belongs to", which is exactly why the answer depends on the session being valid. ...Fg means "also include everything defined in the fragment called Fg".
  • A fragment is a named bundle of fields that can be reused in several places, so the query does not have to repeat itself. fragment F0 on PayoutPreferenceInterface and the ones after it each define such a bundle, and the on part says which kind of object the fields belong to.
  • F2 asks for tax_form details (url, hello_sign_client_id, status, id), the user's email, a count of bounties, and payout_preferences.
  • F3 to F6 describe the different payout methods: Coinbase, PayPal, HackerOne payroll and Currencycloud bank transfer. Each exposes an email or a name.
  • F7 combines all the payout preference fragments into one list.
  • F8 asks for the bounty list itself: awarded_amount, bonus_amount, awarded_currency, created_at, status, and for each bounty the linked report with its title and its team (name, handle, id). It also asks for bounty totals per currency and for page information (hasNextPage, hasPreviousPage).
  • F9 asks for completed retest records, again with the linked report and team.
  • Fa asks for more tax_form fields: url, status, signed_at, type, id.
  • Fb to Ff are small helper fragments, including a lufthansa_account with first_name, last_name and number.
  • Fg ties everything together by pulling in F2, F7, F8, F9, Fa, Fc, Fd, Fe and Ff.
  • At the end, "variables":{"first_0":100,"currency_1":"USD","currency_2":"XLA sets the inputs: 100 bounties, and totals in USD and XLA.

In short, this one request asks for a large amount of private account data in a single round trip. That is normal for GraphQL, and it is why the result after revocation was serious.

Here is the response the researcher received after revoking the session:

HTTP
HTTP/1.1 200 OK
Date: Tue, 02 Oct 2018 02:01:20 GMT
Content-Type: application/json; charset=utf-8
Connection: close
Cache-Control: no-cache, no-store
Content-Disposition: inline; filename="response."
X-Request-Id: 5ffd271a-bccd-4105-8991-4ed97769b1a0
Set-Cookie: [redacted]
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Expect-CT: enforce, max-age=86400
Content-Security-Policy: default-src 'none'; base-uri 'self'; child-src www.youtube-nocookie.com b5s.hackerone-ext-content.com; connect-src 'self' www.google-analytics.com errors.hackerone.net; font-src 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' data: cover-photos.hackerone-user-content.com hackathon-photos.hackerone-user-content.com profile-photos.hackerone-user-content.com hackerone-us-west-2-production-attachments.s3-us-west-2.amazonaws.com; media-src 'self' hackerone-us-west-2-production-attachments.s3-us-west-2.amazonaws.com; script-src 'self' www.google-analytics.com; style-src 'self' 'unsafe-inline'; report-uri https://errors.hackerone.net/api/30/csp-report/?sentry_key=[redacted]
Referrer-Policy: strict-origin-when-cross-origin
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: DENY
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
Server: cloudflare
CF-RAY: 4633948f1bbba2f6-HKG
Content-Length: 24732

[redacted]

Reading this response line by line:

  • HTTP/1.1 200 OK is the status line. 200 means success. If the session had been properly rejected, this would normally be an error status instead.
  • Date is when the server produced the response.
  • Content-Type: application/json; charset=utf-8 says the body is JSON text.
  • Connection: close tells the client the connection will be closed after this response.
  • Cache-Control: no-cache, no-store tells browsers and caches not to keep a copy of this response. That is a sensible setting for private data, but it does not help here, because the problem is that the data was served at all.
  • Content-Disposition suggests a filename if the response is saved as a file.
  • X-Request-Id is an internal identifier for this one request, useful for support and logging.
  • Set-Cookie is where the server would hand the browser a cookie. The researcher redacted its value in the report.
  • Strict-Transport-Security, Expect-CT, Content-Security-Policy, Referrer-Policy, X-Content-Type-Options, X-Download-Options, X-Frame-Options, X-Permitted-Cross-Domain-Policies and X-XSS-Protection are security-related instructions to the browser. They harden the page in various ways, but none of them decides whether a session is valid.
  • Server: cloudflare and CF-RAY show the response passed through Cloudflare, a content delivery network that sits in front of many websites.
  • Content-Length: 24732 says the body is 24732 bytes long. A body of that size is real data, not an error message.
  • The body itself is redacted in the report.

The key facts are the 200 OK and the 24732-byte JSON body: the query was answered, not refused.

Why it happened

The report does not describe how the site is built. What it shows is that the revoke action ended the session for ordinary POST and GET requests but not for the GraphQL query request, so the GraphQL endpoint kept accepting the revoked session and kept answering me for that account. The report does not confirm which.

Impact

Insufficient session expiration leads to sensitive information disclosure. Here the disclosed data includes rewarded reports with their amounts, report titles, the payment method used and other sensitive information tied to the account. The report does not describe a scenario in which a third party obtains the revoked session; what is demonstrated is that a session the user believes is destroyed can still be used to query data.

Fix

Variants to test

  1. Revoke a session and replay every request type captured before revocation: REST GET, REST POST, GraphQL queries, GraphQL mutations, file downloads and websocket handshakes. A positive result is any of them returning data or performing an action after the logout is confirmed in the browser.
  2. Revoke one device's session while keeping another active, then replay the revoked device's captured requests. A positive result is the revoked device's requests succeeding while the other session remains valid.
  3. Log out normally (rather than using the revoke control) and replay captured GraphQL requests. A positive result is the same discrepancy between the logout and the API path.
  4. Change a password or perform any other action that is supposed to invalidate sessions, then replay captured requests. A positive result is any request still being served.
  5. Replay the request after a delay to see whether the session eventually expires. A positive result is the request still succeeding well after revocation.

Hunting notes

This kind of bug hides wherever a product has more than one way to check who is asking. Session management pages, logout flows and password-change flows are the natural places to look, and the signal is a request type that does not go through the same checking code as the rest of the application. GraphQL endpoints are a common candidate because they often have their own setup for working out who the caller is.

The researcher made the impact concrete by choosing a page whose query returns financial and payout data, and by showing the response after revocation. That combination, a clear before-and-after and a sensitive data set in the response, is what turns a session-handling quirk into an accepted report.

Glossary

  • API: the hidden data service behind a website, which the page asks for information; like the kitchen of a restaurant.
  • Burp Suite: a tool that sits between your browser and a website so you can inspect, save and resend requests.
  • Cookie: a small piece of data a website stores in your browser and your browser sends back with each request, often used to identify your session.
  • Fragment (GraphQL): a named, reusable bundle of fields inside a GraphQL query.
  • GET: a request type used to ask for something, such as a page or data.
  • GraphQL: a style of API where one address accepts a written description of exactly which fields you want back.
  • Insufficient Session Expiration: a flaw where a session that is supposed to be ended still works, at least for some kinds of request.
  • JSON: a text format for structured data, made of keys and values.
  • Mutation (GraphQL): a GraphQL request that changes data rather than only reading it.
  • POST: a request type used to send something to the server, such as a form or an action.
  • Repeater (Burp): the part of Burp Suite where you paste a saved request and press Go to send it again.
  • Request: a message your browser (or a tool) sends to a server asking for something or asking it to do something.
  • Response: the message the server sends back, including a status code, headers and usually a body.
  • REST: a common style of API built from many separate addresses, one per kind of data or action.
  • Sensitive information disclosure: a flaw where private data is shown to someone who should not be allowed to see it.
  • Session: the server's record that you are logged in, usually tied to a cookie; like a cloakroom ticket.
  • Status code: the number at the start of a response, such as 200 for success, that says how the request went.
  • Websocket: a connection that stays open between browser and server so data can flow both ways without a new request each time.

More by japz

View all

43 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.