Skip to content
Info disclosure Disclosed report Beginner

An invite-only's program submission state is accessible to users no longer part of the program

After a user leaves a private program, the program's submission state remains accessible via the report JSON endpoint, showing whether submissions are open or disabled. An attacker could use this to infer the program's status even though they no longer have access.

d4rk_g1rl Follow with japz

Originally disclosed on HackerOne

Bounty$500 Low 3.8 View original
  • Triaged in 56 days
  • Fixed in 2 months
  • Paid in 56 days
  • Disclosed after 2 months

####Related This Report: #645299

###Steps To Reproduce:

####██████ Private Program:

  1. I was invited by █████: https://hackerone.com/███
  2. Submitted a report/vulnerabilty. https://hackerone.com/reports/519502
  3. Accepted by ████ and mark as resolved.
  4. Try to leave the program.
  5. The █████████ Program is not accessible anymore.
  6. Back to your previous report and capture the request:

####REQUEST:

      GET /reports/519502.json HTTP/1.1
      Host: hackerone.com
      User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
      Accept: application/json, text/javascript, */*; q=0.01
      Accept-Language: en-US,en;q=0.5
      Accept-Encoding: gzip, deflate
      Referer: https://hackerone.com/reports/519502
      X-Requested-With: XMLHttpRequest
      Cookie: __cfduid=████████; _cfuid=█████; _ga=█████████; _mkto_trk=███████; _biz_uid=███████; _biz_nA=14; _biz_pendingA=%5B%5D; _biz_flagsA=████████; __Host-session=█████████████; _gid=GA1.2.1121101145.1582021374
      Connection: close
      Cache-Control: max-age=0

####RESPONSE:

      "team":{"id":██████,"url":"https://hackerone.com/███","handle":"██████████","profile_picture_urls":{"small":"█████████","medium":"████},"permissions":[],"submission_state":"open"

#####The submission_state:open which means the submission still open even the █████ not accessible anymore.

####█████ Private Program:

  1. I was invited by ██████: https://hackerone.com/█████████
  2. Submitted a report/vulnerabilty. https://hackerone.com/reports/668433
  3. Accepted by ███ and mark as resolved.
  4. Try to leave the program. After I leave the program the program still accepting the report ans the submission still open.
  5. The █████████ Program is not accessible anymore.
  6. Few months later, Back to your previous report and capture the request:

####REQUEST:

      GET /reports/668433.json HTTP/1.1
      Host: hackerone.com
      User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
      Accept: application/json, text/javascript, */*; q=0.01
      Accept-Language: en-US,en;q=0.5
      Accept-Encoding: gzip, deflate
      Referer: https://hackerone.com/reports/668433
███████
      X-Requested-With: XMLHttpRequest
██████████
      Connection: close

####RESPONSE:

      "team":{"id":████████,"url":"https://hackerone.com/███████","handle":"███","profile_picture_urls":███,"permissions":[],"submission_state":"disabled",

#####The submission_state:disabled which means the submission was disable even the ██████████ not accessible anymore.

Impact

The user can define whether the submission still OPEN or DISABLE on Private Programs after leaving which not accessible anymore.

Regards,

The original report as published on HackerOne, by d4rk_g1rl. 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. 5 min read.

Context

HackerOne hosts private, invite-only bug bounty programs. A researcher who is invited to such a program can submit reports against it. When the researcher later leaves the program, the program page is no longer reachable for them. The report they submitted, however, remains reachable through its own URL, and the JSON representation of that report still carries a team object describing the program.

That team object includes a submission_state field. The researcher found that this field, returned on a report belonging to a program the user has left, still reflects the program's submission state, even though the program itself is no longer accessible to that user. The report is a low severity information disclosure (CVSS 3.8) and was disclosed on 21 April 2020. It references an earlier report, #645299.

Setup

The researcher needed two things: an invitation to a private program, and at least one report submitted to that program that had been accepted and marked resolved. Two separate private programs were used to confirm the behaviour, one with a report at https://hackerone.com/reports/519502 and another with a report at https://hackerone.com/reports/668433. The requests were captured from a browser using Firefox 60.0 on Linux x86_64, with the JSON view of the report loaded through an XMLHttpRequest.

Finding it

The observation is simple. After leaving a private program, the program page is gone from the researcher's view, but the old report URL still works. Loading that report and inspecting the JSON response shows a team object that still describes the program, including its submission_state. In other words, a user who is no longer part of the program can still read a property of that program through a report they previously submitted.

Exploitation

Step 1: Submit to the first private program

The researcher was invited to a private program, submitted a report at https://hackerone.com/reports/519502, and the report was accepted and marked resolved.

Step 2: Leave the program

After leaving the program, the program page was no longer accessible. The researcher then returned to the previous report and captured the request.

Step 3: Capture the report request

HTTP
GET /reports/519502.json HTTP/1.1
Host: hackerone.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://hackerone.com/reports/519502
X-Requested-With: XMLHttpRequest
Cookie: __cfduid=[redacted]; _cfuid=[redacted]; _ga=[redacted]; _mkto_trk=[redacted]; _biz_uid=[redacted]; _biz_nA=14; _biz_pendingA=%5B%5D; _biz_flagsA=[redacted]; __Host-[redacted] _gid=GA1.2.1121101145.1582021374
Connection: close
Cache-Control: max-age=0

The request is a plain GET for the JSON representation of the report, authenticated with the session cookie. The X-Requested-With: XMLHttpRequest header shows it was issued by the page's own JavaScript rather than by typing the URL.

Step 4: Read the response

The response contains the team object for the program the report belongs to:

Text
"team":{"id":[redacted],"url":"https://hackerone.com/[redacted]","handle":"[redacted]","profile_picture_urls":{"small":"[redacted]","medium":"[redacted]"},"permissions":[],"submission_state":"open"

The key detail is submission_state:"open", meaning the program was still accepting submissions, even though the program was no longer accessible to the researcher. Note also permissions:[]: the user has no permissions on the team, which is consistent with having left it, yet the state is still returned.

Step 5: Repeat against a second private program

The researcher repeated the process on a second private program. The report was submitted at https://hackerone.com/reports/668433, accepted and marked resolved. After leaving the program, the program still accepted reports and the submission remained open. The program page was no longer accessible. A few months later, the researcher returned to the previous report and captured the request again.

Step 6: Read the second response

Here the value is submission_state:"disabled", meaning the program had stopped accepting submissions, again despite the program being inaccessible to the researcher. The two cases show the field returned two different values, open and disabled.

Root cause

The report does not describe the server-side implementation. What the two responses show is that the report JSON endpoint returns the team object, including submission_state, to a user whose permissions array is empty and who can no longer reach the program page. Likely the authorisation check on the report endpoint only verifies that the user may view the report itself, and does not re-check current membership of the program before serialising the team's submission state. The program page is no longer accessible after leaving, while the report JSON keeps working.

Impact

A user who has left a private program can still determine whether that program's submissions are open or disabled, by loading a report they previously submitted and reading submission_state from the JSON. The researcher's summary is that the user can define whether the submission is still open or disabled on private programs after leaving, which are no longer accessible. The exposure is limited to that state value and whatever else the team object carries; the report does not claim access to the program's contents. The program rated it low severity with a CVSS score of 3.8 and paid a bounty of 500.00 USD.

Fix

The report does not state what was changed. The natural fix, given the behaviour described, is to apply the same membership check used for the program page to the team data returned on report JSON, so that a user who is no longer a member does not receive the program's submission state.

Variants to test

  1. Other fields in the team object: check whether handle, url or profile_picture_urls are also returned after leaving, and whether any of them reveal more than the state.
  2. Other report-related endpoints: the report page, any activity or export views, and any endpoint that embeds team data, to see whether the same stale authorisation applies.
  3. Other membership transitions: removal by the program rather than leaving voluntarily, and invitation revocation, to see whether the state is still exposed.
  4. State changes over time: as in the second case, re-check months later to confirm the value tracks the live state rather than a cached one.

A positive result is a response to a user with no remaining membership that still contains a current submission_state value for the program.

Hunting notes

This kind of bug hides where a resource (a report) outlives the relationship (program membership) that originally granted access to related data. The signal is a JSON endpoint that embeds a parent object, here team, alongside the object the user is legitimately allowed to see. When testing, leave or get removed from a program and then replay requests to your old reports, comparing what the UI still shows against what the API still returns. The researcher showed two programs with two different states, open and disabled, in reports from programs the user could no longer access.

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. 13 min read.

What happened, in plain words

HackerOne is a website where companies run bug bounty programmes. A company can make its programme public, or private and invite-only. In an invite-only programme, only people the company has invited can see the programme page and send in reports about security problems they find.

When someone is invited to a private programme, they can submit reports to it. Each report gets its own web address, something like https://hackerone.com/reports/519502. Later, the person might leave the programme. Once that happens, the programme page is no longer reachable for that person.

The researcher found that the old report address still works after leaving, and that the report's data, when fetched in a machine-readable form, still includes a small block of information about the programme. That block contains a field called submission_state, which says whether the programme is currently accepting new reports (open) or not (disabled). So a person who is no longer part of a private programme can still find out whether that programme is open or closed to submissions.

That is the whole bug: a small piece of information about a private programme leaks to someone who should no longer see anything about it. It is called an information disclosure, because the problem is that information is revealed to the wrong person. The programme rated it low severity, with a CVSS score of 3.8, and paid a bounty of 500.00 USD. It was disclosed on 21 April 2020 and references an earlier report, #645299.

Background ideas you need first

A few everyday ideas make the rest easy to follow.

  • A web page versus an API. When you open a page in your browser, you get a page designed for humans: buttons, text, layout. Many websites also offer a second way to ask for the same information, designed for programs rather than people. That second way is often called an API. Think of a restaurant: the dining room is the web page for guests, and the kitchen hatch where orders are passed in a standard format is the API. Same kitchen, different door.
  • JSON. When a website answers an API request, it usually sends the data in a format called JSON. JSON is just text with a strict shape: curly braces group things together, names are followed by a colon and a value, and items are separated by commas. It looks like "name":"value". It is a way of writing down labelled facts so a program can read them reliably.
  • A request and a response. Your browser sends a request to a server, and the server sends back a response. The request says what you want (for example, GET /reports/519502.json, meaning "give me the JSON version of report 519502"). The response contains the data, or an error.
  • Headers. Both requests and responses carry extra labelled lines called headers. They are like the address and handling notes on an envelope: who is asking, what format they accept, what browser they use. They are not the letter itself, but they help the server decide how to answer.
  • Cookies and sessions. A website needs to know who you are on every request, because the web itself does not remember you between clicks. After you log in, the server gives your browser a small piece of text called a cookie. Your browser sends that cookie back with every request to the same site. One of those cookies is a session cookie: it is the temporary badge that proves you are logged in. Anyone who copies your session cookie can act as you until it expires, which is why such values are treated as secrets.
  • X-Requested-With: XMLHttpRequest. This header is a hint that the request came from JavaScript running inside a page, rather than from you typing the address into the address bar. It is like a note saying "this order came from the app, not from the front desk".
  • Permissions. A website often records what each user is allowed to do. An empty permissions list means the user has no special rights on that thing.
  • Authorisation. Authentication is proving who you are. Authorisation is deciding what you are allowed to see or do once you are known. This bug is an authorisation problem: the user is correctly identified, but the server hands back data they should no longer be allowed to see.
  • Information disclosure. A weakness where a system reveals data to someone who should not have it. It may be small, like a status flag, or large, like private documents. Here it is small.

Setting up the test

To reproduce the behaviour, the researcher needed two things:

  1. An invitation to a private programme.
  2. At least one report submitted to that programme that had been accepted and marked resolved.

The researcher used two separate private programmes to confirm the behaviour. One had a report at https://hackerone.com/reports/519502, the other at https://hackerone.com/reports/668433. The requests were captured from a browser: Firefox 60.0 on Linux x86_64, with the JSON view of the report loaded by the page's own JavaScript.

Finding it

The observation is simple. After leaving a private programme, the programme page disappears from the researcher's view, but the old report address still works. Loading that report and looking at the JSON response shows a team block that still describes the programme, including its submission_state. In other words, a user who is no longer part of the programme can still read a property of that programme through a report they previously submitted.

Step by step

Step 1: Submit to the first private programme

The researcher was invited to a private programme, submitted a report at https://hackerone.com/reports/519502, and the report was accepted and marked resolved. This matters because the report has to exist and belong to the researcher before it can be used as a doorway later.

Step 2: Leave the programme

After leaving the programme, the programme page was no longer accessible. The researcher then went back to the previous report and captured the request the page made.

Why this step: leaving is the event that should cut off access. If the programme page is gone but the report still answers with programme details, the cut-off is incomplete.

Step 3: Capture the report request

HTTP
GET /reports/519502.json HTTP/1.1
Host: hackerone.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://hackerone.com/reports/519502
X-Requested-With: XMLHttpRequest
Cookie: __cfduid=[redacted]; _cfuid=[redacted]; _ga=[redacted]; _mkto_trk=[redacted]; _biz_uid=[redacted]; _biz_nA=14; _biz_pendingA=%5B%5D; _biz_flagsA=[redacted]; __Host-[redacted] _gid=GA1.2.1121101145.1582021374
Connection: close
Cache-Control: max-age=0

Line by line:

  • GET /reports/519502.json HTTP/1.1 is the request line. GET means "give me this". The path asks for report 519502 in its .json form, which is the API-style version rather than the human page. HTTP/1.1 is the version of the web protocol being used.
  • Host: hackerone.com names the website being asked. One server can host many sites, so the request has to say which one.
  • User-Agent: ... identifies the browser and operating system that sent the request. Here it is Firefox 60.0 on Linux x86_64.
  • Accept: application/json, text/javascript, */*; q=0.01 tells the server which formats the browser is willing to receive, with JSON listed first.
  • Accept-Language: en-US,en;q=0.5 says the browser prefers English (United States), with a lower preference for generic English.
  • Accept-Encoding: gzip, deflate says the browser can accept compressed responses, which saves bandwidth.
  • Referer: https://hackerone.com/reports/519502 says which page the request came from. It is the report page itself.
  • X-Requested-With: XMLHttpRequest marks the request as coming from the page's JavaScript rather than from typing the address.
  • Cookie: ... carries the browser's stored cookies for the site, including the session cookie __Host-session, which proves the user is logged in. The other cookies are analytics and marketing identifiers. All of these values are secrets and are redacted here.
  • Connection: close asks the server to close the network connection after answering.
  • Cache-Control: max-age=0 asks that no cached copy be reused, so the response is fresh.

Step 4: Read the response

The response contains the team block for the programme the report belongs to:

Text
"team":{"id":[redacted],"url":"https://hackerone.com/[redacted]","handle":"[redacted]","profile_picture_urls":{"small":"[redacted]","medium":"[redacted]"},"permissions":[],"submission_state":"open"

Line by line, in plain words:

  • "team":{ ... } starts a block of facts about the programme (the "team") that owns the report.
  • "id":[redacted] is the programme's internal number.
  • "url":"https://hackerone.com/[redacted]" is the programme's web address.
  • "handle":"[redacted]" is the programme's short name.
  • "profile_picture_urls":{...} holds links to the programme's small and medium logo images.
  • "permissions":[] is an empty list, meaning this user has no special rights on the programme. That fits someone who has left.
  • "submission_state":"open" says the programme is still accepting submissions.

The key detail is submission_state:"open": the programme was still accepting submissions, even though it was no longer accessible to the researcher. Note also permissions:[]: the user has no permissions on the team, which is consistent with having left it, yet the state is still returned.

Step 5: Repeat against a second private programme

The researcher repeated the process on a second private programme. The report was submitted at https://hackerone.com/reports/668433, accepted and marked resolved. After leaving the programme, the programme still accepted reports and the submission remained open. The programme page was no longer accessible. A few months later, the researcher returned to the previous report and captured the request again.

Why repeat: one example could be a one-off glitch. A second programme, checked again months later, shows the same behaviour with a different state value.

Line by line:

  • GET /reports/668433.json HTTP/1.1 asks for the JSON version of the second report, number 668433.
  • Host: hackerone.com names the site.
  • User-Agent: ... again identifies Firefox 60.0 on Linux x86_64.
  • Accept: ... and Accept-Language: ... and Accept-Encoding: ... are the same format and language preferences as before.
  • Referer: https://hackerone.com/reports/668433 says the request came from the second report page.
  • The two [redacted] lines stand for header lines that were removed before publishing, so their content is not shown.
  • X-Requested-With: XMLHttpRequest again marks a request made by the page's JavaScript.
  • Connection: close asks the server to close the connection after answering.

Step 6: Read the second response

Line by line:

  • "team":{ ... } again starts the block of facts about the programme.
  • "id", "url" and "handle" are the programme's number, address and short name, redacted here.
  • "profile_picture_urls":[redacted] is the logo links, redacted as a whole.
  • "permissions":[] again shows the user has no rights on the programme.
  • "submission_state":"disabled" says the programme had stopped accepting submissions.

Here the value is submission_state:"disabled", meaning the programme had stopped accepting submissions, again despite the programme being inaccessible to the researcher. The two cases show the field returned two different values, open and disabled.

Why it happens

The report does not describe how the server is built. What the two responses show is that the report JSON endpoint returns the team block, including submission_state, to a user whose permissions list is empty and who can no longer reach the programme page. A likely explanation is that the check on the report endpoint only confirms the user may view the report itself, and does not re-check current membership of the programme before writing out the team's submission state. The programme page is no longer accessible after leaving, while the report JSON keeps working.

A comparison: a gym cancels your membership and the front door stops opening for you, but the receipt for your last purchase still prints the gym's current opening hours. The receipt was never meant to be a way to check the gym's status.

Impact

A user who has left a private programme can still find out whether that programme's submissions are open or disabled, by loading a report they previously submitted and reading submission_state from the JSON. The researcher's summary is that the user can define whether the submission is still open or disabled on private programmes after leaving, which are no longer accessible. The exposure is limited to that state value and whatever else the team block carries; the report does not claim access to the programme's contents.

Fix

The report does not state what was changed. The natural fix, given the behaviour described, is to apply the same membership check used for the programme page to the team data returned on report JSON, so that a user who is no longer a member does not receive the programme's submission state.

Other things worth testing

  1. Other fields in the team block: check whether handle, url or profile_picture_urls are also returned after leaving, and whether any of them reveal more than the state.
  2. Other report-related endpoints: the report page, any activity or export views, and any endpoint that embeds team data, to see whether the same stale authorisation applies.
  3. Other membership transitions: removal by the programme rather than leaving voluntarily, and invitation revocation, to see whether the state is still exposed.
  4. State changes over time: as in the second case, re-check months later to confirm the value tracks the live state rather than a cached one.

A positive result is a response to a user with no remaining membership that still contains a current submission_state value for the programme.

How to look for this kind of bug

This kind of bug hides where a resource (a report) outlives the relationship (programme membership) that originally granted access to related data. The signal is a JSON endpoint that embeds a parent object, here team, alongside the object the user is legitimately allowed to see. When testing, leave or get removed from a programme and then replay requests to your old reports, comparing what the interface still shows against what the API still returns. The researcher showed two programmes with two different states, open and disabled, in reports from programmes the user could no longer access.

Glossary

  • API: a way for programs to ask a website for data in a fixed format, separate from the pages designed for people.
  • Authorisation: deciding what a known user is allowed to see or do.
  • Authentication: proving who a user is, usually by logging in.
  • Bug bounty programme: a scheme where a company pays people for reporting security problems.
  • Cookie: a small piece of text a website stores in your browser and your browser sends back with each request to that site.
  • CVSS: a standard scoring system for the severity of a security weakness; higher numbers mean more serious.
  • Endpoint: a specific address on a server that accepts requests, such as /reports/519502.json.
  • GET: the web request method that means "give me this".
  • Header: an extra labelled line in a request or response carrying information about it, such as the browser type or accepted formats.
  • Information disclosure: a weakness where data is revealed to someone who should not have it.
  • Invite-only (private) programme: a bug bounty programme that only invited people can see and submit to.
  • JSON: a text format for labelled data, using curly braces, names, colons and commas.
  • Permissions: the list of rights a user has on a resource; an empty list means none.
  • Request: the message your browser sends to a server asking for something.
  • Response: the message the server sends back.
  • Session cookie: a cookie that proves you are logged in; copying it lets someone act as you until it expires.
  • Severity: how serious a weakness is judged to be, often expressed with a CVSS score.
  • submission_state: a field in the programme data saying whether the programme is accepting submissions (open) or not (disabled).
  • team: the block of data in a report's JSON describing the programme that owns the report.
  • X-Requested-With: a header indicating a request came from JavaScript inside a page rather than from typing the address.
  • XMLHttpRequest: the browser mechanism JavaScript uses to fetch data from a server without reloading the page.

More by d4rk_g1rl

View all

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

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.