Program profile metrics endpoint contains mean time to triage, even when turned off
A program's profile metrics endpoint still returned the mean time to triage value even after the program had disabled the display of response efficiency metrics on its profile page. Anyone could query the endpoint and read a metric the program intended to hide.
- Triaged in 13 hours
- Fixed in 2 days
- Paid in 13 hours
- Disclosed after 2 days
Description (Include Impact):
when a bug bounty program disables its profile metrics which shows the Response Efficiency, there still
some data leaked in the response of the the following endpoint:
hackerone.com/PROGRAM_HANDLE/profile_metrics.json
this endpoint leaks the mean_time_to_triage although the program disabled the Response Efficiency in the profile page.
Steps To Reproduce
-
go to a program that doesn't show the profile metrics such as wordpress
-
send the following HTTP get request:
GET /wordpress/profile_metrics.json HTTP/1.1
Host: hackerone.com
Connection: close
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: your_cookies!
and the response will be:
{"mean_time_to_first_response":null,"mean_time_to_triage":███████,"mean_time_to_resolution":null,"mean_time_to_bounty":null,"total_bounties_paid_prefix":"\u003e","total_bounties_paid":null,"average_bounty_lower_range":null,"average_bounty_upper_range":null,"top_bounty_lower_range":null,"top_bounty_upper_range":null}
as you can see here the mean_time_to_triage is leaked in the response instead of being NULL.
I am totally sure that this should not be leaked in this response and should be hidden!
hope this is clear, thanks.
Context
HackerOne program pages can display a set of profile metrics that describe how quickly a program responds to reports. These metrics include mean time to first response, mean time to triage, mean time to resolution and mean time to bounty, along with bounty range figures. A program can choose to disable the display of these Response Efficiency metrics on its public profile page.
The report concerns the JSON endpoint that backs that profile metrics display. The endpoint is:
hackerone.com/PROGRAM_HANDLE/profile_metrics.json
The researcher found that even when a program has turned the metrics off in the profile page, the endpoint still returns one of the values, mean_time_to_triage, instead of returning it as null.
Setup
No special account, role or tooling is described. The only precondition is a program whose profile metrics are disabled. The researcher uses the WordPress program as the example, since it does not show the profile metrics. The request is sent as an authenticated browser session, so a valid cookie for the site is needed; the report shows a placeholder for it.
Finding it
The researcher compared what the profile page shows with what the underlying JSON endpoint returns. On the page, the Response Efficiency section is hidden for programs that have disabled it. In the endpoint response, however, the field mean_time_to_triage still carries a value while the other timing fields are null. That mismatch is the bug: the visibility setting is applied to the page but not consistently to the data returned by the endpoint.
Exploitation
Step 1: pick a program with metrics disabled
The researcher selects a program that does not show the profile metrics, using WordPress as the example.
Step 2: request the profile metrics endpoint
The following HTTP GET request is sent:
GET /wordpress/profile_metrics.json HTTP/1.1
Host: hackerone.com
Connection: close
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: your_cookies!
The path targets the JSON representation of the program's profile metrics. The Accept header asks for JSON, and X-Requested-With: XMLHttpRequest marks the call as an AJAX-style request, matching how the page itself would fetch the data. The Cookie header carries the session; the report uses a placeholder rather than a real value.
Step 3: read the response
The response is:
{"mean_time_to_first_response":null,"mean_time_to_triage":███████,"mean_time_to_resolution":null,"mean_time_to_bounty":null,"total_bounties_paid_prefix":"\u003e","total_bounties_paid":null,"average_bounty_lower_range":null,"average_bounty_upper_range":null,"top_bounty_lower_range":null,"top_bounty_upper_range":null}
Every timing field is null except mean_time_to_triage, which holds a value (redacted in the report). The bounty fields are also null, apart from the total_bounties_paid_prefix string. The presence of a non-null triage time is the leak: the program disabled the metrics, yet this one figure is still served.
Root cause
The report does not describe the server-side implementation. What it shows is that the visibility setting is not applied uniformly: the page hides the Response Efficiency block, but the JSON endpoint still populates mean_time_to_triage. Likely the endpoint nulls out the other timing fields based on the program's setting but misses this one field, so the suppression logic is incomplete rather than absent.
Impact
A visitor with a valid session who can reach the endpoint can read the mean time to triage for a program that has chosen not to publish its response efficiency metrics. That discloses a performance figure the program intended to keep hidden. The report rates the issue as medium severity with a CVSS score of 5.0 and classifies it as information disclosure. The leak is limited to this single metric; the other timing and bounty values come back null.
Fix
The fix implied by the finding is to apply the same suppression to mean_time_to_triage in the endpoint response that is already applied to the other timing fields, so that it returns null whenever the program has disabled its profile metrics.
Variants to test
- Request the JSON endpoint for other programs with metrics disabled and check whether
mean_time_to_triageis non-null while the other timing fields are null. A positive result is the same asymmetry seen here. - Compare the page-rendered metrics with the JSON response for programs that have metrics enabled, to see whether any field differs between the two representations.
- Check the other fields in the response (
mean_time_to_first_response,mean_time_to_resolution,mean_time_to_bounty, and the bounty range fields) on programs with metrics disabled. A positive result is any of them returning a value instead of null.
Hunting notes
This kind of bug sits where a UI visibility toggle is enforced in one layer but not another: the page hides a section, while the API or JSON endpoint that feeds it still returns the data. During recon, look for features a program can switch off, then find the endpoint behind them and compare what the page shows with what the endpoint returns. The signal is a mismatch between the rendered page and the raw response. The researcher demonstrated impact by showing the exact request and the response side by side, making clear that a field the program had hidden was still being served.
What happened, in plain words
HackerOne is a website where companies (called programs) run bug bounty schemes: they invite independent security researchers to look for problems in their software and pay for good findings. Each program has a public page on HackerOne. That page can show a set of numbers describing how quickly the program deals with the reports it receives. HackerOne calls these numbers Response Efficiency metrics.
A program is allowed to switch that display off. When it does, visitors to the program page no longer see the numbers. The researcher in this report found that switching the display off does not hide everything. The page hides the numbers, but the separate data feed that the page uses to draw them still hands one of them out to anyone who asks for it directly. That one number is the mean time to triage.
This is a small information disclosure: a figure the program chose not to publish can still be read. The report rates it medium severity with a CVSS score of 5.0.
The background you need
What a program page and its metrics are
A program page is the public shop window of a bug bounty scheme. Besides the rules and scope, it can show statistics about the program's responsiveness. The report names four timing figures:
- mean time to first response: on average, how long before the program first replies to a report.
- mean time to triage: on average, how long before the program has looked at a report and decided what to do with it (triage is the sorting step, deciding whether a report is valid and how urgent it is).
- mean time to resolution: on average, how long before the issue is fixed.
- mean time to bounty: on average, how long before a reward is paid.
There are also bounty range figures, such as the average and top bounty amounts. Together these are the Response Efficiency metrics. A program may prefer not to advertise them, for example because the numbers are unflattering, and HackerOne lets it turn the display off.
What an endpoint and JSON are
A web page in a modern site is often assembled in the browser from raw data fetched separately. The address the browser fetches that raw data from is called an endpoint. Think of a restaurant: the menu on the table is the page, and the kitchen is the endpoint that actually produces the dish. Even if the waiter stops bringing a dish to your table, the kitchen may still be able to make it if someone walks in and asks.
JSON is a plain text format for structured data, made of names and values in curly braces. A small example would be {"name":"value"}. It is easy for programs to read and easy for people to read too. An endpoint whose address ends in .json returns data in this format rather than a finished web page.
What a cookie is
When you log in to a website, the site gives your browser a small piece of text called a cookie. The browser sends it back with every later request, and that is how the site recognises you. It works like a cloakroom ticket: the ticket itself is not your coat, but showing it proves the coat is yours. Anyone who copies your cookie can act as you until it expires, which is why cookies are treated as secrets. In this report the cookie is replaced by a placeholder, your_cookies!, so no real session is published.
What the vulnerability class means
Information disclosure means a system reveals data to someone who should not have it. It is not about breaking in or changing anything; it is about reading something that was meant to stay hidden. Here the hidden thing is a single performance figure.
Setting up
The report describes no special account, role or tool. The only precondition is a program whose profile metrics are switched off. The researcher uses the WordPress program as the example, because it does not show the profile metrics on its page. The request is sent with a logged-in browser session, so a valid cookie for the site is needed. The report shows only a placeholder for it.
Finding it
The researcher compared two things side by side: what the program page displays, and what the underlying JSON endpoint returns. On the page, the Response Efficiency section is hidden for programs that have turned it off. In the endpoint response, one of the timing fields, mean_time_to_triage, still carries a value while all the other timing fields are null. Null is JSON's way of saying "no value here". That mismatch is the bug: the visibility setting is applied to the page but not consistently to the data the endpoint returns.
Exploitation
Step 1: pick a program with metrics disabled
The researcher chooses a program that does not show the profile metrics, using WordPress as the example. This step matters because the whole point is to test a program that has asked for the numbers to be hidden. If the metrics were visible anyway, there would be nothing to leak.
Step 2: request the profile metrics endpoint
The following HTTP GET request is sent:
GET /wordpress/profile_metrics.json HTTP/1.1
Host: hackerone.com
Connection: close
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: your_cookies!
Line by line, in plain words:
GET /wordpress/profile_metrics.json HTTP/1.1: this is the request itself. GET is the everyday verb for "give me this". The path asks for the JSON data behind the WordPress program's profile metrics. HTTP/1.1 is the version of the web protocol being spoken.Host: hackerone.com: tells the server which website the request is for. One server can host many sites, so the name has to be stated.Connection: close: asks the server to close the connection after answering, rather than keeping it open for more requests.Accept: application/json, text/javascript, */*; q=0.01: tells the server which formats the client can handle, with JSON first. The*/*at the end means "anything else is acceptable too, but less preferred".X-Requested-With: XMLHttpRequest: a marker that says the request comes from a script running inside a page rather than from typing an address in the address bar. It matches how the page itself fetches the data, so the request looks like the site's own traffic.User-Agent: ...: identifies the browser and operating system that sent the request. Here it is a Chrome browser on 64-bit Windows.Accept-Encoding: gzip, deflate: says the client can accept the response compressed, to save bandwidth.Accept-Language: en-US,en;q=0.8: says the client prefers English (United States), with plain English as a fallback.Cookie: your_cookies!: carries the session ticket that identifies the logged-in user. The report uses a placeholder instead of a real value.
Step 3: read the response
The response is:
{"mean_time_to_first_response":null,"mean_time_to_triage":███████,"mean_time_to_resolution":null,"mean_time_to_bounty":null,"total_bounties_paid_prefix":"\u003e","total_bounties_paid":null,"average_bounty_lower_range":null,"average_bounty_upper_range":null,"top_bounty_lower_range":null,"top_bounty_upper_range":null}
This is one JSON object, a list of names and values separated by commas. Going through it:
mean_time_to_first_responseisnull: no value is returned for the average time to first reply.mean_time_to_triageholds a value, shown as a block of redacted characters in the report. This is the leak: the program switched the metrics off, yet this figure is still served.mean_time_to_resolutionandmean_time_to_bountyare bothnull.total_bounties_paid_prefixis the string\u003e. That is JSON's escaped way of writing the greater-than sign>, a prefix used when displaying a total such as "more than X".total_bounties_paid,average_bounty_lower_range,average_bounty_upper_range,top_bounty_lower_rangeandtop_bounty_upper_rangeare allnull.
So every timing field is null except the triage time, and every bounty field is null apart from the prefix string. The presence of a non-null triage time is the whole finding.
Root cause
The report does not describe how the server is built. What it shows is that the visibility setting is not applied uniformly: the page hides the Response Efficiency block, but the JSON endpoint still fills in mean_time_to_triage. The likely explanation is that the endpoint blanks out the other timing fields according to the program's setting but misses this one field, so the suppression logic is incomplete rather than absent.
Impact
A visitor with a valid session who can reach the endpoint can read the mean time to triage for a program that chose not to publish its response efficiency metrics. That discloses a performance figure the program intended to keep hidden. The report rates the issue as medium severity with a CVSS score of 5.0 and classifies it as information disclosure. The leak is limited to this single metric; the other timing and bounty values come back null.
Fix
The fix implied by the finding is to apply the same suppression to mean_time_to_triage in the endpoint response that is already applied to the other timing fields, so that it returns null whenever the program has disabled its profile metrics.
Variants to test
- Request the JSON endpoint for other programs with metrics disabled and check whether
mean_time_to_triageis non-null while the other timing fields are null. A positive result is the same asymmetry seen here. - Compare the page-rendered metrics with the JSON response for programs that have metrics enabled, to see whether any field differs between the two representations.
- Check the other fields in the response (
mean_time_to_first_response,mean_time_to_resolution,mean_time_to_bounty, and the bounty range fields) on programs with metrics disabled. A positive result is any of them returning a value instead of null.
Hunting notes
This kind of bug sits where a visibility switch is enforced in one layer but not another: the page hides a section, while the API or JSON endpoint that feeds it still returns the data. During recon, look for features a program can switch off, then find the endpoint behind them and compare what the page shows with what the endpoint returns. The signal is a mismatch between the rendered page and the raw response. The researcher demonstrated impact by showing the exact request and the response side by side, making clear that a field the program had hidden was still being served.
Glossary
- API: a defined way for one piece of software to ask another for data or actions, without a human clicking through a page.
- Bug bounty program: a scheme in which an organisation invites outside researchers to find security problems and rewards valid reports.
- Cookie: a small piece of text a site stores in your browser and receives back on later requests, used to recognise your session.
- CVSS: a standard scoring system for the severity of a security issue, producing a number such as 5.0.
- Endpoint: a specific address on a server that returns data or performs an action when requested.
- GET: the HTTP method used to ask a server to return something.
- HTTP: the protocol browsers and servers use to exchange requests and responses on the web.
- Information disclosure: a flaw where data meant to be hidden is revealed to someone who should not see it.
- JSON: a plain text format for structured data, built from names and values in curly braces.
- Mean time to bounty: the average time between a report and the payment of a reward.
- Mean time to first response: the average time before a program first replies to a report.
- Mean time to resolution: the average time before a reported issue is fixed.
- Mean time to triage: the average time before a program has assessed a report and decided what to do with it.
- Null: a JSON value meaning "nothing here", used when a field has no value to return.
- Recon: the exploratory phase of security testing, where you map out what a site offers before probing it.
- Response Efficiency metrics: the set of timing and bounty figures a program can choose to display on its HackerOne profile.
- Severity: a rating of how serious an issue is, here medium.
- Triage: the sorting step in which a report is reviewed and judged valid or not, and how urgent it is.
- User-Agent: a header in which the browser states its name, version and operating system.
- X-Requested-With: a header marking a request as coming from a script inside a page rather than direct navigation.