HexBrain

U.S. Dept Of Defense · Report #1628012

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

Validstatus
mediumseverity
7upvotes
14 Sept 2022disclosed

How it was found

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

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original