Skip to content
Access control Disclosed report Beginner

IDOR Lead To VIEW & DELETE & Create api_key [HtUS]

A user holding only the Member role in an organisation could still read, create and delete the organisation's private API keys through the apiKeys endpoints. An attacker with a low-privileged member account could therefore obtain and destroy secrets that should be restricted to higher roles.

bate5a Follow

Originally disclosed on HackerOne

Medium 5.4 View original
  • Triaged in 35 days
  • Fixed in 41 days
  • Disclosed after 2 months

Hi Dod & Hackerone Team i hope you are Doing Well Today :)

Explaining:

  • i found That a User With a Member Permission in a Organization Can Create & View & DELETE API_KEYS

Step To Reproduce:

1_ First Create 2 Accounts From Here https://███

2_ Log in With The Victim User and Create New Group From Here https://███/organization

3_ After Creating The org, Go Here To invite New Users https://█████████/organization/ORG-UUID/members

4_ invite The Attacker User With The Role Member

5_ Now add Some Private Keys Here https://██████████/organization/ORG-UUID/apiKeys , and save The Req as Create_Req

6_ Switch Back To The Attacker User and Try To Access The Endpoint https://██████/organization/ORG-UUID/apiKeys , you will Notice You have Access To Read The apikey Now Copy The UUID of The apikey & Put it Here

7_ https://██████████/organization/ORG-UUID/apiKeys/API-UUID , make a DELETE req

8_ Now Copy The Cookies of The attacker & replace it with The Create_Req in Step 5,

  • Now you can Create & View & DELET

Poc_Video:

█████

Impact

IDOR Lead To VIEW & DELETE & Create Private api_key

The original report as published on HackerOne, by bate5a. 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 apiKeys endpoints enforced organisation membership but not the role or permission level required to manage API keys.

Impact

A low-privileged member could view, create and delete the organisation's private API keys.

What the attacker needed

Two accounts; victim creates an organisation; attacker invited as Member

How it was found

  1. Create two accounts and log in as the victim user.
  2. As the victim, create a new organisation.
  3. Invite the second (attacker) account to the organisation with the Member role.
  4. As the victim, add private API keys and capture the create request.
  5. As the attacker, open the organisation's apiKeys endpoint and read the key identifiers.
  6. As the attacker, send a delete request for a key and replay the captured create request with the attacker's cookies.

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.

An organisation has roles such as Member. API keys are secrets. Here a Member could read and delete the organisation's API keys.

What is Access control?

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.

More by bate5a

View all

1 more disclosed report, best first.

More from U.S. Dept Of Defense

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.