Skip to content
IDOR Write-up Intermediate

IDOR on HackerOne Embedded Submission Form

Japz Divino Follow

Published on medium.com

Bounty$2,500 View original

{{media:0}}

Japz Divino, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

Context

HackerOne runs an embedded submission form: a form a customer program can embed on its own website so that researchers can submit reports without creating a HackerOne account. The form is addressed by a UUID, and the page behind it is rendered from data fetched over GraphQL at /graphql with the operation EmbeddedSubmissionPage.

The author found that this GraphQL operation returned program data for embedded submission form UUIDs that had already been made inactive or deleted. The data returned included the program's intro text, its response efficiency percentage and the count of its structured scopes. The report was filed against HackerOne, was initially closed as a duplicate of N/A, was reopened after discussion, and was rewarded with a $2,500 bounty. The author notes the finding was under limited disclosure and that sensitive information belonging to a private program is redacted.

Japz Divino
Japz Divino From the original on medium.com

Setup

The work needs an authenticated HackerOne session: the request carries a session cookie and the response shows User-Authenticated: true. The only tooling named in the report is waybackurls, used against hackerone.com to collect historical URLs. No versions are given.

The precondition for the interesting case is an embedded submission form UUID that is inactive, disabled or deleted: a form the program has taken down, so that nobody should be able to read anything through it.

Finding it

The researcher started from the embedded submission form and the GraphQL query that populates it. The query below fetches the form and its team:

HTTP
POST /graphql?embedded_submission_form_uuid=<UUID> HTTP/2Host: hackerone.comCookie: <REDACTED><SNIP><SNIP{  "operationName": "EmbeddedSubmissionPage",  "variables": {    "uuid": "<UUID>",    "product_area": "emdedded_submission_form",    "product_feature": "submission_page"  },  "query": "query EmbeddedSubmissionPage($uuid: String!) {\n  me {\n    id\n    signal\n    reputation\n    __typename\n  }\n  embedded_submission_form(uuid: $uuid) {\n    id\n    promotionEnabled: promotion_enabled\n    typeface\n    accent_color\n    accent_text_color\n    link_color\n    button_color\n    button_text_color\n    team {\n      id\n      handle\n      name\n      abuse\n      offers_bounties\n      report_submission_form_intro\n      customized_report_template\n      cwe_field_hidden\n      structured_scopes(archived: false) {\n        total_count\n        __typename\n      }\n      response_efficiency_percentage\n      team_display_options {\n        id\n        show_response_efficiency_indicator\n        __typename\n      }\n      submissionRequirements: submission_requirements {\n        id\n        severityCalculationMethods: severity_calculation_methods\n        severityRequiredAt: severity_required_at\n        __typename\n      }\n      custom_field_attributes(\n        where: {internal: {_eq: false}, archived_at: {_is_null: true}}\n      ) {\n        edges {\n          node {\n            ... on CustomFieldAttributeInterface {\n              id\n              internal\n              required\n              helper_text\n              key\n              label\n              required\n              helper_text\n              databaseId: _id\n              type: __typename\n            }\n            ... on CustomFieldAttributesList {\n              id\n              items\n              __typename\n            }\n            ... on CustomFieldAttributesCheckbox {\n              id\n              checkbox_text\n              __typename\n            }\n            __typename\n          }\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n"}

The UUID is passed both as a query string parameter and as a GraphQL variable. The selection set asks for the current user (me), the form's presentation fields, and then the team object: handle, name, report_submission_form_intro, structured_scopes (with total_count), response_efficiency_percentage, team_display_options, submission_requirements and the non-internal, non-archived custom_field_attributes.

The query returns data as long as the UUID is still alive and accessible, meaning not inactive. The researcher then looked for UUIDs that were already inactive or deleted. In the user interface such a form shows as unavailable, so by the intended behaviour nothing should be readable through that UUID.

Exploitation

Step 1: query an inactive UUID

Sending the same GraphQL request with an inactive UUID still returned the program's data:

The response is a normal 200 with the team object populated: the intro text, the structured scope count, the response efficiency percentage and the display options. The form itself is inactive, yet the team data behind it is still served.

Step 2: argue the impact

The first report was closed as a duplicate of N/A. The reason given was that once a team posts the embedded submission form on the internet it is considered public, and anyone finding the link is allowed to participate in the program, authenticated or not; if the link is not shared publicly it should be secret. That reasoning is sound for a live form, whose purpose is to let researchers submit without an account.

The researcher's counter-argument was the inactive case: the program had deliberately deleted, disabled or made the form inactive, so nobody should be able to fetch information through that UUID. The report was supported with a reference to a disclosed report on hacktivity, #2483666. An analyst responded, investigated the potential security impact, and the report was reopened for internal discussion.

Step 3: show how inactive UUIDs are obtained

A team then asked how the UUIDs were obtained. The researcher answered with a recon methodology that collects many inactive UUIDs of private programs:

  1. Collect historical URLs for the domain:
Bash
echo 'https://hackerone.com/' | waybackurls > lists.txt
  1. Keep only the embedded submission URLs:
Bash
cat lists.txt | grep "embedded_submissions" > results.txt
  1. Read the result:
Bash
cat results.txt
  1. The list contains embedded submission IDs of many random private programs; each URL can be checked by browsing it.

The researcher also cited HackerOne's own New Platform Detailed Standards, which state that there could be many ways of obtaining an unpredictable UUID, and pointed out that this recon methodology is one of them. The report was triaged and the $2,500 bounty was awarded.

Root cause

The embedded submission form lookup resolves the form by UUID and, for an inactive form, still returns the associated team object. In the user interface an inactive form shows as unavailable, yet a UUID that the program has deleted or disabled still resolves to its team over GraphQL. The report's own framing is that the UUID is meant to be unpredictable, and it shows that archived URLs can supply UUIDs of inactive forms. Whether the resolver was meant to filter on the form's active state is not stated in the report; the behaviour is consistent with that check being absent.

Impact

Anyone holding an inactive embedded submission form UUID, with an authenticated HackerOne session, can read data belonging to the program that owned the form: the report submission intro text, the response efficiency percentage and the structured scope count, along with the team handle, name, bounty status and display options. The report describes this as sensitive information from a private program. The condition is that the UUID must be known; the report shows that archived URLs on hackerone.com can supply many such UUIDs for private programs. The report does not describe reading report contents or submitting reports through an inactive form.

Fix

The report does not say what was changed. The behaviour it documents implies that the resolver should refuse to return team data for a form that is inactive, disabled or deleted, treating the form's state as part of the authorisation decision rather than relying on the secrecy of the UUID alone.

Variants to test

  • Other UUID-addressed public objects. Take any feature that resolves an object by an unguessable identifier (embedded forms, share links, invitation pages) and request it after the owner has disabled or deleted it. A positive result is a 200 with the object's data still populated.
  • Archived URL harvesting. Run the same waybackurls plus grep pattern against other bug bounty platforms and SaaS products to collect identifiers of removed resources, then replay them against the corresponding API. A positive result is data returned for an identifier whose UI page is gone.
  • State checks in GraphQL resolvers. Compare the UI behaviour for an inactive object with the GraphQL response for the same object. A positive result is the UI showing the object as unavailable while the API returns its fields.
  • Field-level leakage on the team object. Even where the form itself is refused, check whether nested fields such as intro text, scope counts or efficiency metrics are still returned. A positive result is any populated field for a form that should be inaccessible.

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 (called "programs") run bug bounty schemes: they invite independent security researchers to look at their software and report problems in exchange for money. Normally a researcher needs a HackerOne account to send in a report.

To make that easier, HackerOne offers something called an embedded submission form. A company can put this form on its own website, so a researcher who finds a problem can send a report straight from that page without ever signing up to HackerOne. Each of these forms has its own address, and that address is built around a long random string called a UUID (a universally unique identifier). You can think of a UUID as a very long, hard-to-guess ticket number: it is not a password, but it is meant to be so random that nobody can guess it.

Japz Divino, the researcher who wrote this up, found that when a company had deliberately switched off or deleted one of these forms, the form's page showed as unavailable in the browser, but the data behind it could still be fetched. The data included the program's intro text, its response efficiency percentage (a score showing how quickly the company replies to reports) and its structured scopes (the list of things researchers are allowed to test). The report was filed against HackerOne, was first closed as a duplicate of "N/A" (meaning not applicable, not a valid issue), was reopened after the researcher argued his case, and ended with a $2,500 bounty.

The finding was published under limited disclosure, and the researcher redacted sensitive information belonging to a private program.

Japz Divino
Japz Divino From the original on medium.com

The pieces you need to understand first

Before the steps, here are the ideas the report relies on, explained from zero.

  • API: an API is the way one piece of software asks another for data. A useful comparison is a restaurant: you (the browser) do not walk into the kitchen; you tell the waiter what you want, and the waiter brings it. The API is the waiter. Websites often load their pages by asking an API for data in the background.
  • GraphQL: a style of API where the client sends a description of exactly which fields it wants back, rather than getting a fixed bundle. It is like ordering from a menu where you tick individual ingredients. The request is usually sent to a single address, here /graphql.
  • Query and operation name: a GraphQL request contains a query (the list of fields you want) and often an operation name (a label for that query, here EmbeddedSubmissionPage).
  • Cookie / session: when you log in to a website, the site gives your browser a small piece of text called a cookie. Your browser sends it back with every request so the site knows who you are. It works like a wristband at an event: show it at the door and you are let in without proving who you are again. In this report the cookie is redacted.
  • HTTP request and response: your browser sends a request (method, address, headers, body) and the server sends back a response with a status code. 200 OK means "here is your data".
  • Header: extra labelled information attached to a request or response, such as Content-Type (what kind of data follows) or User-Authenticated (whether the server considers you logged in).
  • IDOR (Insecure Direct Object Reference): a bug where the server hands out an object (a record, a file, a form) just because you named its identifier, without checking whether you are allowed to see that particular object. The everyday comparison is a hotel: if reception gives you a key to any room number you say out loud, without checking that the room is yours, that is an IDOR.
  • UUID: the long random identifier used to name each embedded submission form. The report treats it as something that is supposed to be unpredictable.
  • Inactive / disabled / deleted form: a form the company has taken down. In the browser it shows as unavailable, so by design nothing should be readable through it any more.
  • waybackurls: a small command-line tool that asks the Internet Archive (the "Wayback Machine", which keeps old copies of web pages) for every URL it has ever recorded for a domain, and prints them out. It is like asking a library for a list of every page it ever filed from one publisher.
  • grep: a command-line tool that filters lines of text, keeping only the ones that match a pattern.
  • Recon (reconnaissance): the information-gathering phase of security work, before any exploitation. Here it means collecting old URLs to find form identifiers.
  • Hacktivity: HackerOne's public feed of disclosed reports. Researchers read it to find prior examples and supporting references.
  • Triage: the stage where the platform's analysts review a report, confirm whether it is valid, and decide on a reward.

Setup

The work needs you to be logged in to HackerOne. The request carries your session cookie, and the response shows User-Authenticated: true, which is the server confirming it recognised you.

The only tool named in the report is waybackurls, run against hackerone.com to collect historical URLs. No versions are given.

The important precondition is an embedded submission form UUID that is inactive, disabled or deleted: a form the program has taken down, so that nobody should be able to read anything through it.

Finding it

The researcher started from the embedded submission form itself and the GraphQL query that fills it with data. The query below fetches the form and the team (the company program) it belongs to:

HTTP
POST /graphql?embedded_submission_form_uuid=<UUID> HTTP/2Host: hackerone.comCookie: <REDACTED><SNIP><SNIP{  "operationName": "EmbeddedSubmissionPage",  "variables": {    "uuid": "<UUID>",    "product_area": "emdedded_submission_form",    "product_feature": "submission_page"  },  "query": "query EmbeddedSubmissionPage($uuid: String!) {\n  me {\n    id\n    signal\n    reputation\n    __typename\n  }\n  embedded_submission_form(uuid: $uuid) {\n    id\n    promotionEnabled: promotion_enabled\n    typeface\n    accent_color\n    accent_text_color\n    link_color\n    button_color\n    button_text_color\n    team {\n      id\n      handle\n      name\n      abuse\n      offers_bounties\n      report_submission_form_intro\n      customized_report_template\n      cwe_field_hidden\n      structured_scopes(archived: false) {\n        total_count\n        __typename\n      }\n      response_efficiency_percentage\n      team_display_options {\n        id\n        show_response_efficiency_indicator\n        __typename\n      }\n      submissionRequirements: submission_requirements {\n        id\n        severityCalculationMethods: severity_calculation_methods\n        severityRequiredAt: severity_required_at\n        __typename\n      }\n      custom_field_attributes(\n        where: {internal: {_eq: false}, archived_at: {_is_null: true}}\n      ) {\n        edges {\n          node {\n            ... on CustomFieldAttributeInterface {\n              id\n              internal\n              required\n              helper_text\n              key\n              label\n              required\n              helper_text\n              databaseId: _id\n              type: __typename\n            }\n            ... on CustomFieldAttributesList {\n              id\n              items\n              __typename\n            }\n            ... on CustomFieldAttributesCheckbox {\n              id\n              checkbox_text\n              __typename\n            }\n            __typename\n          }\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n"}

Line by line, in plain words:

  • POST /graphql?embedded_submission_form_uuid=<UUID> HTTP/2 is the first line of the request: it says "send data to the /graphql address, and put the form's UUID in the address itself as a parameter called embedded_submission_form_uuid". HTTP/2 is the version of the web protocol being used.
  • Host: hackerone.com tells the server which website the request is for.
  • Cookie: <REDACTED><SNIP><SNIP is the session cookie that proves the researcher is logged in. It has been cut out and replaced with placeholders so nobody can reuse it.
  • The rest is a JSON body. operationName labels the query as EmbeddedSubmissionPage.
  • variables holds the values the query uses: the same uuid again, plus two labels, product_area and product_feature, which describe where in the product the form sits.
  • query is the actual GraphQL query. It asks for two things. First, me: the current user's id, signal and reputation. Second, embedded_submission_form(uuid: $uuid): the form itself, with its id and a set of presentation fields (colours, typeface, whether promotion is enabled).
  • Inside the form, it asks for the team object: handle, name, abuse, offers_bounties, report_submission_form_intro (the intro text shown on the form), customized_report_template, cwe_field_hidden, structured_scopes with total_count (how many scopes there are), response_efficiency_percentage, team_display_options, submission_requirements, and custom_field_attributes filtered to non-internal, non-archived ones.
  • The __typename fields simply ask the server to say what type each object is; they are bookkeeping.

The UUID is passed twice: once in the address as a query string parameter, and once inside the GraphQL variables. The query returns data as long as the UUID is still alive and accessible, meaning not inactive.

The researcher then went looking for UUIDs that were already inactive or deleted. In the browser, such a form shows as unavailable, so by the intended behaviour nothing should be readable through that UUID any more.

Exploitation

Step 1: query an inactive UUID

Sending the same GraphQL request, but with an inactive UUID, still returned the program's data:

Line by line:

  • HTTP/2 200 OK is the status line: the server accepted the request and is returning data. 200 is the standard "success" code.
  • Date: Tue, 30 Apr 2024 06:47:13 GMT is when the server produced the response.
  • Content-Type: application/json; charset=utf-8 says the body is JSON text.
  • User-Authenticated: true says the server treated the request as coming from a logged-in user.
  • Set-Cookie:<REDACTED><SNIP> is a cookie the server wanted to set; it has been redacted.
  • The JSON body has a data object. Inside it, me holds the current user's details, all redacted.
  • embedded_submission_form holds the form. Its id is redacted, and the presentation fields (typeface, the colour fields) are null, meaning empty.
  • team is the program behind the form. handle and name are redacted. offers_bounties is true, so the program pays bounties.
  • report_submission_form_intro is the intro text shown to anyone filling in the form. It is partly redacted but shows the standard wording about providing as much information as possible and reviewing the Policy & Scope.
  • structured_scopes has a total_count, redacted, which is the number of scopes the program lists.
  • response_efficiency_percentage is redacted; it is the score for how quickly the program responds.
  • team_display_options shows show_response_efficiency_indicator: true, meaning the efficiency score is meant to be displayed.
  • submissionRequirements is null, and custom_field_attributes has an empty edges list, so there are no custom fields.

The key point: the form is inactive, yet the team data behind it is still served. The browser would have shown the form as unavailable, but the API answered anyway.

Step 2: argue the impact

The first report was closed as a duplicate of N/A. The reason given was that once a team posts the embedded submission form on the internet it is considered public, and anyone who finds the link is allowed to take part in the program, logged in or not; if the link is not shared publicly, it should be secret. That reasoning is sound for a live form, whose whole purpose is to let researchers submit without an account.

The researcher's counter-argument was the inactive case: the program had deliberately deleted, disabled or made the form inactive, so nobody should be able to fetch information through that UUID. He supported the report with a reference to a disclosed report on hacktivity, #2483666. An analyst responded, investigated the potential security impact, and the report was reopened for internal discussion.

Step 3: show how inactive UUIDs are obtained

A team then asked how the UUIDs were obtained. The researcher answered with a recon methodology that collects many inactive UUIDs of private programs:

  1. Collect historical URLs for the domain:
Bash
echo 'https://hackerone.com/' | waybackurls > lists.txt

This sends the address https://hackerone.com/ into waybackurls, which asks the Internet Archive for every URL it has recorded for that domain, and writes the list into a file called lists.txt. The > symbol means "put the output in this file".

  1. Keep only the embedded submission URLs:
Bash
cat lists.txt | grep "embedded_submissions" > results.txt

cat prints the contents of lists.txt; the | pipe passes that text to grep, which keeps only the lines containing embedded_submissions; the result goes into results.txt.

  1. Read the result:
Bash
cat results.txt

This simply prints the filtered list on screen.

  1. The list contains embedded submission IDs of many random private programs; each URL can be checked by browsing it. Each URL in the list can be checked by browsing it.

The researcher also cited HackerOne's own New Platform Detailed Standards, which state that there could be many ways of obtaining an unpredictable UUID, and pointed out that this recon methodology is one of them. The report was triaged and the $2,500 bounty was awarded.

Root cause

The embedded submission form lookup finds the form by UUID and, for an inactive form, still returns the associated team object. In the browser interface an inactive form shows as unavailable, yet a UUID the program has deleted or disabled still resolves to its team over GraphQL. The report's own framing is that the UUID is meant to be unpredictable, and it shows that archived URLs can supply UUIDs of inactive forms. Whether the resolver was meant to filter on the form's active state is not stated in the report; the behaviour is consistent with that check being absent.

Impact

Anyone holding an inactive embedded submission form UUID, with a logged-in HackerOne session, can read data belonging to the program that owned the form: the report submission intro text, the response efficiency percentage and the structured scope count, along with the team handle, name, bounty status and display options. The report describes this as sensitive information from a private program. The condition is that the UUID must be known; the report shows that archived URLs on hackerone.com can supply many such UUIDs for private programs. The report does not describe reading report contents or submitting reports through an inactive form.

Fix

The report does not say what was changed. The behaviour it documents implies that the resolver should refuse to return team data for a form that is inactive, disabled or deleted, treating the form's state as part of the authorisation decision rather than relying on the secrecy of the UUID alone.

Variants to test

  • Other UUID-addressed public objects. Take any feature that finds an object by an unguessable identifier (embedded forms, share links, invitation pages) and request it after the owner has disabled or deleted it. A positive result is a 200 with the object's data still filled in.
  • Archived URL harvesting. Run the same waybackurls plus grep pattern against other bug bounty platforms and SaaS products to collect identifiers of removed resources, then replay them against the corresponding API. A positive result is data returned for an identifier whose browser page is gone.
  • State checks in GraphQL resolvers. Compare what the browser shows for an inactive object with the GraphQL response for the same object. A positive result is the browser showing the object as unavailable while the API returns its fields.
  • Field-level leakage on the team object. Even where the form itself is refused, check whether nested fields such as intro text, scope counts or efficiency metrics are still returned. A positive result is any filled-in field for a form that should be inaccessible.

Glossary

  • API: the interface software uses to ask another piece of software for data or actions, like a waiter carrying orders between you and the kitchen.
  • Bug bounty: a scheme where companies pay independent researchers for reporting security problems.
  • Cookie: a small piece of text a website stores in your browser and receives back on each request, used to recognise you, for example to keep you logged in.
  • Embedded submission form: a HackerOne report form a company can place on its own website so researchers can submit without a HackerOne account.
  • GraphQL: an API style where the client lists exactly which fields it wants back.
  • grep: a command-line tool that filters text, keeping only lines matching a pattern.
  • Header: labelled extra information attached to an HTTP request or response, such as Content-Type.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • IDOR (Insecure Direct Object Reference): a bug where a server returns an object just because its identifier was named, without checking the requester is allowed to see it.
  • Inactive / disabled / deleted form: a form the company has taken down, which should no longer be readable.
  • JSON: a text format for structured data, made of keys and values.
  • N/A: "not applicable"; here, a report closed as not a valid issue.
  • Operation name: a label given to a GraphQL query, here EmbeddedSubmissionPage.
  • Query string parameter: a value placed in a URL after a ?, here embedded_submission_form_uuid.
  • Recon (reconnaissance): the information-gathering phase of security work.
  • Resolver: the server-side code that answers a GraphQL query and produces the data.
  • Response efficiency percentage: a score showing how quickly a program responds to reports.
  • Session: the logged-in state a website keeps for you, usually tracked with a cookie.
  • Structured scopes: the list of assets and areas a program allows researchers to test.
  • Triage: the review stage where analysts confirm whether a report is valid and decide on a reward.
  • UUID: a long random identifier, here used to name each embedded submission form.
  • waybackurls: a command-line tool that lists every URL the Internet Archive has recorded for a domain.

More by Japz Divino

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.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.