Skip to content
IDOR Disclosed report Beginner

IDOR on Program Visibilty (Revealed / Concealed) against other team members

A GraphQL mutation that updates a team member's visibility setting accepted any team member ID, not just the caller's own. An attacker who was a member of the same program team could change whether another member's team membership was shown or hidden on their profile.

japz Follow

Originally disclosed on HackerOne

  • Triaged in 48 hours
  • Disclosed after 4 days

Hi HackerOne Team,

Summary:

When you are a part of a program security team, you have a choice to show in your profile that you are a member of the sec team, you can also hide it if you don't want to show it to your profile, any team member can do that using your profile settings here: https://hackerone.com/settings/teams > Visibility > Revealed/Concealed.

Important: ONLY YOU can do that to your profile settings, anyone is not allowed to do that, even other member of the security where you belong is not allowed.

However i have found a way to edit the visibility of any co-admin / co-member of the team where i belong using IDOR.


Description (Include Impact):

When you edit your team visibility the following graphql POST request below is belong called.

POST /graphql HTTP/1.1
Host: hackerone.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
content-type: application/json
x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MTExMDc2Njd9.h_X6amYP8V-Y0tts_zg2jDudNeqx75fVfS5FZSczq1s----137042
origin: https://hackerone.com
Referer: https://hackerone.com/settings/teams
Content-Length: 574
Cookie: __cfduid=d3f42c3c5af53e3946c559d253a1fb9451511104348; _cfuid=c8d12dfb-fe68-4b32-bd94-d3664f3b9e9b; __Host-session=K3JDWXRpV00xL1RCTUI3QWx4YXUrUTZlb0xRSHBEQm9abXYrNm5EclhZTVM5VW1XMVg4aTQ2UmhZc2VGeW1yUDFoYndWMm1GSEVGazhISTZNeHppOFR5K3VmZXZuRE0xSWdCMk56dko2RzFHOFRpeGdlZzlKT0Y5ZjdWb1FScHo5S1d2b1A2cTFDa1FXYmRpS29GWGF5aUZlNUJRa1JDT25JL0RFZ242RUQyb0pNTktnOHk5L2NmOVJQZ2E0d3hEbm4yclk3WHRWOFJvdjRveVlvbVgyQ1hFSEliNDVTTFNrbzNqL096KzdZSkVXSEZ6TUFyelR4NEJmNjF4OE5aYmx6RzVvR2dNRnBGbEtCQVpxMXo2MCtqVUVIK1lzdkJpTnp2TkhiMnNCN08xZEljT1hVN1M2Y1dsMGphNnA2dmp2bTdxcm1WbkNPTHluWmgyVjFQcXdYZlM1c2ZaSFJDdnNOTmNySldhSkNqV0haNjhoMC8yVHpwMWFFYmJCTkxuTHdtNG9XbkV4UDN3ZmdjV0sxVzh3dm9jZ3RCVE9saXNmWHJMT0t4dmVuN3RwdVRuZnV4Y0ljWEM2a2QxRGVCWC0tS0dCTHpUVk9wY3RyZUpPRmZibWw1UT09--6c4b58c006e021c83b8e076370dcdc1efe40a984; app_signed_in=true
DNT: 1
Connection: close

{"query":"mutation Update_team_member_visibility_mutation($input_0:UpdateTeamMemberVisibilityMutationInput!) {\n  updateTeamMemberVisibility(input:$input_0) {\n    clientMutationId,\n    ...F1,\n    ...F2\n  }\n}\nfragment F0 on TeamMember {\n  id,\n  concealed\n}\nfragment F1 on UpdateTeamMemberVisibilityMutationPayload {\n  team_member {\n    id,\n    ...F0\n  }\n}\nfragment F2 on UpdateTeamMemberVisibilityMutationPayload {\n  errors\n}","variables":{"input_0":{"team_member_id":"Z2lkOi8vaGFja2Vyb25lL1RlYW1NZW1iZXIvNDM3OTQ=","concealed":true,"clientMutationId":"1"}}}

You will observed these parameters

{
"team_member_id":"Z2lkOi8vaGFja2Vyb25lL1RlYW1NZW1iZXIvNDM3OTQ=",
"concealed":true,
"clientMutationId":"1"
}

team_member_id contains base64 value: Z2lkOi8vaGFja2Vyb25lL1RlYW1NZW1iZXIvNDM3OTQ= , decoding it will show: gid://hackerone/TeamMember/43794

As you can see it will reveal your team member id, on my case it's 43794

Now changing the value of 43794 to other team member id will result an Insecure Direct Object Reference attack against other team members.

Vulnerable: gid://hackerone/TeamMember/<victim_team_id_number>

How to see other all other team members id, you can just simply go here: https://hackerone.com/parrot_sec/team_members.json , all team member id is on the list under team_member_ids attribute on the json response.

Steps To Reproduce

  1. Login and go to https://hackerone.com/settings/teams > Visibility
  2. Click Concealed / Revealed to manipulate showing or hiding it in your profile.
  3. Capture the request using burp (please see the graphql POST request above)
  4. Decode the value of base64: "team_member_id":"Z2lkOi8vaGFja2Vyb25lL1RlYW1NZW1iZXIvNDM3OTQ=" > gid://hackerone/TeamMember/<team_member_id>
  5. Change the value of <team_member_id> to victims team member id (other team member)
  6. Forward the request, your co-team member profile settings will be edited.

NOTE: I ask permission to my friend which is member if parrot sec, I used this test profile https://hackerone.com/parrotsec1 to perform IDOR against this other team member profile: https://hackerone.com/phspade , both are team members of parrot sec. I successfully remove the public Teams visibility of other team member @phspade without user interaction.

Let me know if anything else is needed.

Regards @pinoywhitehat

Attachments

profile_settings_set_visibility.png
profile_settings_set_visibility.png From the original on HackerOne
public_teams_profile_view.png
public_teams_profile_view.png

The original report as published on HackerOne, by japz. Images and videos are our own copies; raw HTML is shown as text. View it 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 GraphQL mutation trusted the team_member_id supplied by the client and did not verify that it belonged to the authenticated user.

Impact

A member of a program team could hide or reveal another member's team membership on their profile without their interaction, which is a privacy violation.

What the attacker needed

An account on the platform; membership of the same program team as the victim; victim's team member ID (publicly listed)

How it was found

  1. Log in and open the team visibility settings page.
  2. Click Concealed or Revealed to change your own visibility.
  3. Capture the resulting GraphQL request with a proxy.
  4. Decode the base64 team_member_id to see the global ID format.
  5. Replace the team member ID with another team member's ID.
  6. Forward the request and the other member's setting is changed.

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.

When you join a security team on a bug bounty platform, you can choose whether your profile shows that you are on the team. The website is supposed to let only you change that setting. The researcher found that the request used to change the setting did not check whose profile it was changing, so any teammate could flip another teammate's setting.

What is IDOR?

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.

More by japz

View all

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