Skip to content
Access control Disclosed report Intermediate

Twitter Media Studio Source Information Disclosure With Analyst Role

An analyst-role user in Twitter Media Studio could call an ingest listing endpoint directly and receive the producer sources of another account, even though the interface hides that section from analysts. This exposed source names, URLs and keys, which the reporter says could be used to create a new broadcast.

bcc20c71c2f1f135afb8c3b Follow

Originally disclosed on HackerOne

  • Paid in 27 days
  • Disclosed after 2 months

== Steps ==

  1. With "A" account go to "https://studio.twitter.com/account_management/your_account_number_here/account_users" and Add account "B" as analyst.
  2. Now, With "B" account go to "https://studio.twitter.com/" and switch to "A" account. Then go to "https://studio.twitter.com/producer" and you can't see "Sources" section same page. Because you are Analyst role.
  3. With "B" account go to GET request "https://studio.twitter.com/1/live/ingest/list.json?account_id=account_id&owner_id=owner_id&user_id=user_id" and you can Information Disclosure.

PoC Video: https://youtu.be/nalRNUeJq3Y

Impact

With Analyst role you can access all producer sources in Victim's account. You can see "source name", "source url" and "source key". You can will create new broadcast with this information. (With Analyst Role)

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

What the report shows

The target is Twitter Media Studio, the web console used to manage live video production, reachable at studio.twitter.com. The feature in question is account management and the live ingest source list. The researcher held two accounts, referred to as "A" (the victim, or the account that owns the sources) and "B" (the account being granted a limited role).

The report describes three steps.

  1. Signed in as account "A", the researcher opened the account users page and added account "B" as an analyst:
HTTP
https://studio.twitter.com/account_management/your_account_number_here/account_users
  1. Signed in as "B", the researcher switched to account "A" and opened the producer page:
HTTP
https://studio.twitter.com/producer

On that page the "Sources" section is not shown, because the analyst role is not supposed to see it.

  1. Still signed in as "B", the researcher sent a direct GET request to the ingest list endpoint:
HTTP
https://studio.twitter.com/1/live/ingest/list.json?account_id=account_id&owner_id=owner_id&user_id=user_id

The response disclosed the source information that the interface had hidden. The researcher recorded a proof of concept video.

Or watch on YouTube
From the original on HackerOne

The report gives no bounty amount or fix detail.

Root cause

The behaviour is consistent with a client-side-only restriction. The producer page hides the "Sources" section from an analyst, but the underlying JSON endpoint that serves the source list does not apply the same role check. A plausible explanation is that the role check exists only in the interface, while the JSON endpoint does not repeat it.

Impact

As the report puts it, an analyst can access all producer sources in the victim's account. The disclosed fields are the source name, the source URL and the source key. With that information the analyst can create a new broadcast. The report frames this as achievable with the analyst role.

How this kind of bug works

Role-based access control usually has two layers: the interface hides actions a role may not perform, and the server checks the role again on every request. Bugs of this class appear when only the first layer exists. The front end renders a menu, a tab or a button conditionally, but the API behind it authenticates the session and then authorises on something weaker, such as membership of the account rather than the specific role, or on identifiers taken from the request rather than from the session.

A second common variant is object-level authorisation failure: the endpoint accepts an account_id or owner_id parameter and returns data for whatever identifier is supplied, without confirming that the caller belongs to that object. The two variants often combine, though the report does not establish which applies here.

Defences are straightforward in principle. Every endpoint should derive the subject and the object from the authenticated session where possible, check the caller's role against the action being performed on the server, and return a generic authorisation error rather than partial data. Sensitive values such as stream keys should be treated as secrets: masked in listings, revealed only to roles that need them, and rotated when exposure is suspected.

How to test for it

  1. Map the roles. Create or obtain two accounts in the same organisation with different roles, one privileged and one limited, and note which features the interface hides from the limited role.
  2. Capture traffic as the privileged user. Browse every screen that the limited role cannot see and record the API calls in a proxy, paying attention to JSON endpoints, list endpoints and anything carrying identifiers such as account, owner, user or team.
  3. Replay as the limited user. Send the same requests with the limited user's session, keeping the original identifiers. A positive result is a successful response containing data the interface withheld, not an error page.
  4. Vary the identifiers. Change the account, owner or user parameter to the victim's value while authenticated as the limited user, and to values belonging to an unrelated account. A positive result is data for an object the caller has no relationship with.
  5. Try the same request with no session and with a session from a different tenant, to separate missing authentication from missing authorisation.

Common false positives: the endpoint returns a generic error but the interface still shows cached data; the response contains only metadata that the role is legitimately allowed to see; the limited user was in fact granted the broader role through a group; or the request succeeds only because the tester is also an administrator of the account. Confirm that the returned fields are the sensitive ones, and that the same request fails for a user with no relationship to the account.

How it is fixed

Enforce the role check on the server for every endpoint that serves data the interface restricts, and authorise against the object resolved from the session rather than from request parameters. Return a consistent authorisation error for forbidden requests. Mask or omit secret material such as stream keys in list responses, and expose it only through an endpoint restricted to the roles that need it. Where a key has already been exposed, rotate it. Add regression tests that call each restricted endpoint with each role.

Hunting notes

This class hides wherever an application has more than one role and a separate API. Look at admin panels, team and member management, billing screens, export and reporting endpoints, and anything with list, export or json in the path. Recon signals include JavaScript bundles that reference endpoints the visible interface never calls, role names appearing in client-side conditionals, and identifiers such as account_id or owner_id in query strings.

To make the report land, show the role boundary clearly: the interface state for the limited user, the raw request, and the response containing the sensitive fields, with the values redacted. State what the leaked data enables, as this report does by noting that the source key allows creating a new broadcast, and keep the claim within what was demonstrated.

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

What happened, in plain words

Twitter Media Studio is a web console for managing live video production. It lives at studio.twitter.com. Inside it there is a feature for managing who can work on an account, and a feature that lists the "sources" used for live video. Each source has a name, a URL and a key, according to the report.

The researcher used two accounts. Account "A" owns the sources and is the victim in this story. Account "B" is a second account that gets a limited role, called analyst, inside account "A". An analyst is a member of the account who, in the interface, cannot see the Sources section.

The interface hides the source list from an analyst, yet a direct request to the ingest list endpoint returned it.

Step 1: give account B the analyst role

Signed in as account "A", the researcher opened the account users page and added account "B" as an analyst:

HTTP
https://studio.twitter.com/account_management/your_account_number_here/account_users

This step sets up the situation. Without a second account holding a limited role, there is nothing to compare against. The placeholder your_account_number_here stands for the real account number, which the report does not give.

Step 2: confirm the interface hides the sources

Signed in as "B", the researcher switched to account "A" and opened the producer page:

HTTP
https://studio.twitter.com/producer

On that page the "Sources" section is not shown, because the analyst role is not supposed to see it. This step matters because it establishes the intended rule: the product itself says an analyst may not view sources. Everything after this is measured against that rule.

Step 3: ask the server directly

Still signed in as "B", the researcher sent a direct GET request to the ingest list endpoint:

HTTP
https://studio.twitter.com/1/live/ingest/list.json?account_id=account_id&owner_id=owner_id&user_id=user_id

Line by line:

  • GET is the request type a browser uses when it simply asks for a page or some data, without submitting a form.
  • https://studio.twitter.com/1/live/ingest/list.json is the address of a data endpoint. The .json ending tells you it returns structured data rather than a web page.
  • ?account_id=account_id&owner_id=owner_id&user_id=user_id is the query string: three values passed to the server, separated by &. They identify the account, the owner and the user whose data is wanted. The report writes them as placeholders rather than real values.

The response disclosed the source information that the interface had hidden. The researcher recorded a proof of concept video.

Or watch on YouTube
From the original on HackerOne

The report gives no bounty amount or fix detail.

Why it works

The behaviour is consistent with a restriction that lives only in the browser. The producer page hides the "Sources" section from an analyst, but the JSON endpoint that actually serves the source list does not apply the same role check. A plausible explanation is that the permission check happens in the page you see, while the data endpoint does not repeat it.

What it exposes

As the report puts it, an analyst can access all producer sources in the victim's account. The disclosed fields are the source name, the source URL and the source key. With that information the analyst can create a new broadcast. The report frames this as achievable with the analyst role.

In general, how this kind of bug works

Role-based access control usually has two layers. The interface hides actions a role may not perform, and the server checks the role again on every request. Bugs of this class appear when only the first layer exists. The front end renders a menu, a tab or a button conditionally, but the API behind it checks the session and then authorises on something weaker, such as membership of the account rather than the specific role, or on identifiers taken from the request rather than from the session.

A second common variant is object-level authorisation failure: the endpoint accepts an account_id or owner_id parameter and returns data for whatever identifier is supplied, without confirming that the caller belongs to that object. The two variants often combine, though the report does not establish which applies here.

Defences are straightforward in principle. Every endpoint should derive the subject and the object from the authenticated session where possible, check the caller's role against the action being performed on the server, and return a generic authorisation error rather than partial data. Sensitive values such as stream keys should be treated as secrets: masked in listings, revealed only to roles that need them, and rotated when exposure is suspected.

How to test for it

  1. Map the roles. Create or obtain two accounts in the same organisation with different roles, one privileged and one limited, and note which features the interface hides from the limited role.
  2. Capture traffic as the privileged user. Browse every screen that the limited role cannot see and record the API calls in a proxy, paying attention to JSON endpoints, list endpoints and anything carrying identifiers such as account, owner, user or team.
  3. Replay as the limited user. Send the same requests with the limited user's session, keeping the original identifiers. A positive result is a successful response containing data the interface withheld, not an error page.
  4. Vary the identifiers. Change the account, owner or user parameter to the victim's value while authenticated as the limited user, and to values belonging to an unrelated account. A positive result is data for an object the caller has no relationship with.
  5. Try the same request with no session and with a session from a different tenant, to separate missing authentication from missing authorisation.

Common false positives: the endpoint returns a generic error but the interface still shows cached data; the response contains only metadata that the role is legitimately allowed to see; the limited user was in fact granted the broader role through a group; or the request succeeds only because the tester is also an administrator of the account. Confirm that the returned fields are the sensitive ones, and that the same request fails for a user with no relationship to the account.

How it is fixed

Enforce the role check on the server for every endpoint that serves data the interface restricts, and authorise against the object resolved from the session rather than from request parameters. Return a consistent authorisation error for forbidden requests. Mask or omit secret material such as stream keys in list responses, and expose it only through an endpoint restricted to the roles that need it. Where a key has already been exposed, rotate it. Add regression tests that call each restricted endpoint with each role.

Hunting notes

This class hides wherever an application has more than one role and a separate API. Look at admin panels, team and member management, billing screens, export and reporting endpoints, and anything with list, export or json in the path. Recon signals include JavaScript bundles that reference endpoints the visible interface never calls, role names appearing in client-side conditionals, and identifiers such as account_id or owner_id in query strings.

To make the report land, show the role boundary clearly: the interface state for the limited user, the raw request, and the response containing the sensitive fields, with the values redacted. State what the leaked data enables, as this report does by noting that the source key allows creating a new broadcast, and keep the claim within what was demonstrated.

Glossary

  • Media Studio: Twitter's web console for managing live video production.
  • Source: a live video stream configured in the account, identified by a name, a URL and a key.
  • Source key: a value tied to a source, disclosed alongside the source name and URL.
  • Analyst: a role inside an account, which the interface does not allow to view sources.
  • Role: a named set of permissions given to a user inside an account.
  • Request: a message a browser sends to a server asking for a page or data.
  • GET request: a request that only asks for data, without submitting anything.
  • Endpoint: a specific address on a server that returns data or performs an action.
  • Query string: the part of a URL after ?, carrying named values separated by &.
  • JSON: a structured text format for data, often used by endpoints that return information rather than pages.
  • Session: the signed-in state a server keeps for a user, usually tied to a cookie or token.
  • Cookie / token: a small value the browser stores and sends back so the server knows who is asking.
  • Information Disclosure: a vulnerability where data that should be hidden is returned to someone not entitled to it.
  • Access control: the rules deciding which user may do or see what.
  • Role-based access control: access control based on the role a user holds.
  • Authorisation: checking whether an authenticated user is allowed to perform a specific action.
  • Authentication: checking who a user is.
  • Object-level authorisation failure: when an endpoint returns data for an identifier supplied by the caller without checking the caller's relationship to that object.
  • Client-side restriction: a limit enforced only in the browser, which the server does not repeat.
  • Proxy: a tool that sits between browser and server so you can read and replay the requests.
  • Replay: sending a captured request again, possibly with a different session or different values.
  • False positive: a finding that looks like a bug but is not, because the behaviour is intended or the test was flawed.
  • Tenant: a separate organisation or customer space inside the same application.
  • Regression test: an automated test that checks a fixed bug stays fixed.
  • Rotate (a key): replace a secret with a new one so the old value stops working.
  • Redact: replace sensitive values with placeholders before publishing.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.