Team object in GraphQL that have a published external program may expose existence of a private program
A GraphQL field on the Team object returned a list of reasons why the user cannot create a Jira webhook, and the presence or absence of one specific reason revealed whether a company runs a private or public program. An attacker could use this to discover which companies have private programs on the platform.
- Triaged in 2 days
- Fixed in 58 days
- Disclosed after 59 days
Summary:
Hi Team!
On Team object the parameter "i_cannot_create_jira_webhook_reasons" is not NULL and gets the following default states when called for all programs ["CANNOT_VIEW","FEATURE_GATED","PROGRAM_PERMISSION_REQUIRED"]
If a Company Program runs a Private Program or a Public On the "FEATURE_GATED" is missing (Since the feature is not gated anymore) and therefore an attacker can find if a Company is running a private program
##POC
-
Company ██████ (not runnig private gives "i_cannot_create_jira_webhook_reasons":["CANNOT_VIEW","FEATURE_GATED","PROGRAM_PERMISSION_REQUIRED"]
-
Company █████████ (running private) gives "i_cannot_create_jira_webhook_reasons":["CANNOT_VIEW","PROGRAM_PERMISSION_REQUIRED"]
-
Even Company HackerOne (running public) gives "i_cannot_create_jira_webhook_reasons":["CANNOT_VIEW","PROGRAM_PERMISSION_REQUIRED"]
All private programs and public has an overriden "FEATURE_GATED" so you get the idea
#Solutiion
NULL the value maybe
PS: Thanks to @jobert who encouraged me to search deeper after the #347383 duplicate!
Thanks nismo
Impact
Knowing companies that run private programs on Hackerone
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the field was not properly restricted and its default value differed based on whether the company had a private program, leaking that state.
Impact
An attacker could learn which companies run private programs on the platform.
What the attacker needed
Access to the GraphQL API
The fix
The field should be set to NULL or otherwise not reveal the program state.
How it was found
- Query the Team object for a company that does not run a private program and observe the list includes FEATURE_GATED.
- Query the same field for a company that runs a private program and observe FEATURE_GATED is missing.
- Compare the lists to determine whether a company has a private program.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A website's programming interface returned a list of reasons why you can't do something. One of those reasons only appeared when a company had no private program, so by checking that list you could tell if a company had a private program. This is an information leak: you learn something you were not supposed to know.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.