Skip to content
Info disclosure Disclosed report Beginner

The /reports/:id.json endpoint discloses potentially sensitive user attributes when reporter summary is present

The JSON endpoint for disclosed reports exposed sensitive reporter account details, including email, phone number, backup codes, and an internal token. An attacker could retrieve these attributes for any reporter whose report was disclosed.

avinash_ Follow

Originally disclosed on HackerOne

Bounty$25,000 Critical 9.2 View original
  • Triaged in 2 days
  • Fixed in 2 days
  • Paid in 2 days
  • Disclosed after 41 days

Hi

The.json endpoint of any disclosed report is leaking reporter's email, OTP backup codes, reporter's phone number, "graphql_secret_token", tshirt size all the reporter account's internal details etc.

 GET /reports/█████.json HTTP/2
Host: hackerone.com
  • I was checking Hackerone's disclosed report ██████████ and suddenly during check found .json point is leaking too much data of reporter ████ . I immediately reported it to you.

█████

  • PoC:- Leakage of data of reporter

█████ █████

Impact

Reporter H1 account private data disclosed

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is HackerOne's public report pages on hackerone.com. Disclosed reports can be fetched in a machine-readable form by appending .json to the report path. The researcher found that this JSON representation returns far more than the rendered report page: it includes attributes belonging to the reporter's account rather than to the report itself.

The request that returns the data is a plain GET against the JSON variant of a report:

HTTP
 GET /reports/█████.json HTTP/2
Host: hackerone.com

According to the report, the response leaks the reporter's email address, OTP backup codes, phone number, a graphql_secret_token, T-shirt size and other internal account details. The researcher describes browsing a disclosed report, noticing the .json endpoint, and finding that it exposed the reporter's data, then reporting it immediately.

The report is short and stops after the proof of concept. It does not include the response body, the exact fields beyond those named, or any remediation detail. The platform records the outcome as critical severity, CVSS 9.2, an information disclosure weakness, and a bounty of 25,000 USD, disclosed on 1 April 2025.

Root cause

Impact

The report's stated impact is that a reporter's private HackerOne account data is disclosed. The endpoint is reachable for disclosed reports, and the request returned the reporter's account attributes. The items named include OTP backup codes and a graphql_secret_token, alongside email, phone number and T-shirt size. Email address and phone number are among the leaked attributes. The report's stated impact is disclosure of the reporter's private HackerOne account data.

How this kind of bug works

Many web applications expose the same resource in several formats: an HTML page for people and a JSON, XML or API representation for clients. Each format is often implemented by a different controller, serialiser or query, and the alternative format is frequently written once and then forgotten. When the JSON path loads the full database record, including joined relations, and serialises it without an explicit allow-list, every column on the related record becomes reachable. This is mass assignment in reverse: over-serialisation.

It also tends to be invisible in the UI, which is why it survives review. Defences are structural: serialise through explicit view models or DTOs that name each field, never return ORM entities directly, keep secrets such as TOTP seeds and API tokens in a separate table that is not reachable from user-facing serialisers, and add automated tests that assert the exact key set of public responses.

How to test for it

  1. Find resources that are intentionally public: disclosed reports, public profiles, published posts, shared documents. Note the canonical URL.
  2. Try format suffixes and content negotiation on the same path: append .json, .xml, .csv, or send an Accept: application/json header, and compare the result with the HTML page.
  3. Compare key sets, not just values. A positive result is any key that is not rendered on the public page and that belongs to a related object, such as an owner, author or reporter.
  4. Look specifically for fields that should never leave the server: authentication seeds, backup codes, API or GraphQL tokens, internal identifiers, email and phone fields, and free-text internal notes.
  5. Check nested objects and arrays, since relations are where over-serialisation usually appears.
  6. Confirm the data belongs to another account and is not your own, and use a test account you control where possible so you can prove the leak without touching a stranger's data.

Common false positives: fields that are already public on the profile page, opaque identifiers that reveal nothing, and values that are present but always null or masked. A key that exists but is empty is not a disclosure.

How it is fixed

Replace implicit serialisation with explicit projections that list the permitted fields for each public representation. Remove secrets such as OTP backup codes and service tokens from any object that can be serialised for a user-facing response, ideally by storing them separately. Apply authorisation and field-level filtering at the serialiser layer so that a new format cannot bypass it. Add regression tests that snapshot the exact keys returned by public endpoints, and audit other format variants of the same resource for the same mistake.

Hunting notes

This bug class hides wherever a public page has a machine-readable twin: report and issue trackers, profile pages, public gists, shared dashboards, RSS and Atom feeds, sitemap and search endpoints, and mobile API routes that mirror web pages. Recon signals include .json links in page source or JavaScript bundles, API hosts referenced by the web front end, and endpoints that accept a format suffix.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

HackerOne is a website where security researchers report bugs to companies. When a company agrees, the report can be made public so anyone can read it. Each public report has its own page, and the address of that page ends in a number, for example /reports/12345.

Many websites can show the same page in two forms. One form is the normal page you see in a browser, with headings, text and pictures. The other form is a machine-readable version, usually ending in .json, which is a plain block of data meant for programs rather than people. JSON is just a text format for structured data: names (called keys) paired with values, like a labelled list.

The researcher was reading a public HackerOne report and noticed that adding .json to the address returned a data version of the same report. That data version contained far more than the public page. It included details about the person who wrote the report, not just the report itself: their email address, their phone number, their OTP backup codes, a graphql_secret_token, their T-shirt size, and other internal account details.

OTP backup codes are one-time passwords used as a spare key when you cannot use your phone for two-factor authentication, the second check (usually a code) that protects an account beyond a password. OTP backup codes are spare one-time passwords for two-factor authentication. A token is a secret string that acts like a key to a system; the leaked data included a graphql_secret_token.

The request that returned all this was a simple GET, which is the standard browser request for fetching a page:

HTTP
 GET /reports/█████.json HTTP/2
Host: hackerone.com

Line by line: GET is the method, meaning "give me this resource". /reports/█████.json is the path of the report with the .json suffix that asks for the data version. HTTP/2 is the version of the web protocol used for the request. Host: hackerone.com tells the server which site the request is for, because one server can host many sites.

The researcher requested the same address with .json added and received the extra data. The researcher reported it immediately.

The report itself is short and stops after the proof of concept, the demonstration that the problem is real. It does not show the response body or list the exact fields beyond the ones named. The platform records the outcome as critical severity, a CVSS score of 9.2 (a standard 0 to 10 scale where higher means more serious), an information disclosure weakness, and a bounty of 25,000 USD, disclosed on 1 April 2025.

In general, how this kind of bug works

This is a common pattern: a website offers the same content in several formats, one for people and one for programs. The human version is carefully built to show only what should be public. The data version is often written separately, sometimes long ago, and then forgotten. If it loads the full database record, including linked records such as the author of a post, and dumps everything without a list of allowed fields, then every stored field on that linked record becomes readable.

A useful comparison is a restaurant menu versus the kitchen's stock list. The menu shows what guests may order. The stock list shows everything in the kitchen, including things guests should never see. If the data version of a page is built from the stock list instead of the menu, it hands out the whole inventory.

The bug class is called information disclosure: data that should stay private is exposed. It is also easy to miss, because nothing looks wrong on the page itself.

Defences are structural. The data version should be built from an explicit list of permitted fields, never by returning the whole database record. Secrets such as backup codes and API tokens should live in a separate place that public responses cannot reach. Automated tests should check the exact set of keys a public response returns, so a new field cannot slip in unnoticed.

How to test for it

  1. Find pages that are meant to be public: disclosed reports, public profiles, published posts, shared documents. Note the normal address.
  2. Try format suffixes on the same address: add .json, .xml or .csv, or send an Accept: application/json header (a request line telling the server which format you prefer), and compare the result with the normal page.
  3. Compare the names of the fields, not only the values. A problem exists when a field appears in the data version that is not on the public page and that belongs to a related object, such as an owner, author or reporter.
  4. Look for fields that should never leave the server: authentication seeds, backup codes, API or GraphQL tokens, internal identifiers, email and phone fields, and internal notes.
  5. Check nested objects and lists, because linked records are where this mistake usually appears.
  6. Confirm the data belongs to another account, not your own, and use a test account you control where possible, so you can prove the leak without touching a stranger's data.

Common false positives: fields that are already public on the profile page, identifiers that reveal nothing, and values that are always empty or masked. A field that exists but is blank is not a disclosure.

How it is fixed

Replace automatic dumping of records with explicit lists of the fields each public format may contain. Remove secrets such as OTP backup codes and service tokens from any object that can be returned to a user, ideally by storing them separately. Apply permission checks and field filtering where the data is assembled, so a new format cannot bypass them. Add tests that record the exact keys public endpoints return, and check other format variants of the same resource for the same mistake.

Where to look

This bug hides wherever a public page has a machine-readable twin: report and issue trackers, profile pages, public code snippets, shared dashboards, RSS and Atom feeds (formats for following site updates), sitemap and search endpoints, and mobile app routes that mirror web pages. Useful signals are .json links in page source or scripts, API addresses referenced by the website, and endpoints that accept a format suffix.

Glossary

  • JSON: a text format for structured data, made of named keys and their values, used by programs to exchange information.
  • Endpoint: a specific address on a server that accepts requests and returns a response.
  • GET: the standard web request method for fetching a resource, such as a page.
  • Request: a message a browser or program sends to a server asking for something.
  • Host header: the part of a request that names which website the request is for.
  • HTTP/2: a version of the protocol browsers and servers use to exchange web requests and responses.
  • Proof of concept (PoC): a demonstration that a vulnerability is real, usually a request and its result.
  • Information disclosure: a weakness where data that should stay private is exposed.
  • Two-factor authentication (2FA): a second check, usually a code, required in addition to a password.
  • OTP backup codes: spare one-time codes that let you sign in when you cannot use your usual second factor.
  • Token: a secret string that acts like a key to a system or account.
  • GraphQL: a way for programs to query a server for exactly the data they need.
  • Serialiser: the part of a program that turns stored data into a format such as JSON for sending out.
  • Over-serialisation: returning more fields than a response should contain, often by dumping a whole record.
  • Allow-list: an explicit list of what is permitted, with everything else denied.
  • CVSS: a standard 0 to 10 scale for rating the severity of a vulnerability.
  • Bounty: a payment a company gives a researcher for reporting a valid vulnerability.
  • False positive: a finding that looks like a problem but is not one.
  • Accept header: a request line telling the server which response format the client prefers.
  • RSS/Atom feed: a machine-readable format for following updates from a site.

More by avinash_

View all

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