Improper Authorization
An invited admin could change the organisation owner's role to admin by re-enabling a disabled role field in the browser and sending the request, even though the interface normally prevents demoting the owner. Once demoted, the owner could no longer log in to their account.
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 58 days
- Disclosed after 2 months
hi there ,
i found an vulnerability on https://my.stripo.email/cabinet/#/users/orog_id ,
generally every user have an organisation and the organisation contain projects ,
lets suppose : [email protected] is the owner of the project
and [email protected] was invited to his project as admin , in normal situation the owner can not be removed even if second account is admin
the issue is i can removed the owned from hi position to admin , and the big problem once the owner is removed he can not login again to his account
Steps To Reproduce:
[add details for how we can reproduce the issue]
-
you must have 2 account , one owner , the second got invited as admin
-
log in with your second account and go to https://my.stripo.email/cabinet/#/users/xxxx
you will see that the input of role is disabled , enable it via inspect element ( f12) ,
then change the role of owner for it to admin , an PUT request will be sent
##http request
PUT /cabinet/stripeapi/v1/organizations/135428/users HTTP/1.1 Host: my.stripo.email User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0 Accept: application/json, text/plain, / Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Authorization: Bearer null Content-Type: application/json;charset=UTF-8 Cache-Control: no-cache Pragma: no-cache Expires: Sat, 01 Jan 2000 00:00:00 GMT Content-Length: 231 Origin: https://my.stripo.email Connection: close Referer: https://my.stripo.email/cabinet/ Cookie: __stripe_mid=f1a62f3d-2ba4-4742-a1ae-97c309223fec; __stripe_sid=20155b5b-e547-4e52-9c4c-53fd4b08ed8a; _ga=GA1.2.472610903.1575449565; _gid=GA1.2.1705021668.1575449565; _fbp=fb.1.1575449579810.16963820; token=eyJhbGciOiJIUzI1NiJ9.eyJzZWN1cml0eUNvbnRleHQiOiJ7XCJ1c2VySW5mb1wiOntcImlkXCI6MTMwODUxLFwiZW1haWxcIjpcImFiZGVsbGFobmFkaTNAZ21haWwuY29tXCIsXCJsb2NhbGVLZXlcIjpcImVuXCIsXCJmaXJzdE5hbWVcIjpcInRlc3Q0NVwiLFwibGFzdE5hbWVcIjpcIm5cIixcImdhSWRcIjpcImJiYzBkNGExLWI5NDYtNDIwMy1iOTNmLTcxNjhmYmEyMWI5ZVwiLFwicGhvbmVzXCI6W10sXCJhY3RpdmVcIjpmYWxzZSxcImFjdGl2ZVByb2plY3RJZFwiOjEzNzg3NyxcImlzU3VwZXJVc2VyXCI6ZmFsc2UsXCJzdXBlclVzZXJWMlwiOmZhbHNlLFwib25seUZiQ3JlZGVudGlhbHNcIjpmYWxzZSxcInNldHRpbmdzRW1haWxTb3J0QnlcIjpcImNyZWF0ZWRUaW1lXCIsXCJzZXR0aW5nc0VtYWlsU29ydEFzY1wiOmZhbHNlLFwic2V0dGluZ3NUZW1wbGF0ZVNvcnRCeVwiOlwidXBkYXRlZFRpbWVcIixcInNldHRpbmdzVGVtcGxhdGVTb3J0QXNjXCI6ZmFsc2UsXCJjb2xvclwiOlwiI2ZiYTc2ZlwiLFwib3JnYW5pemF0aW9uSWRcIjoxMzA2NjUsXCJzdWJzY3JpcHRpb25UeXBlXCI6XCJGUkVFXCIsXCJjb25zZW50UmVjZWl2ZWRcIjp0cnVlLFwidGVtcGxhdGVDcmVhdGVkT25Mb2dpblwiOmZhbHNlLFwiZmlyc3RMb2dpblwiOmZhbHNlfSxcImlzc3VlZEF0XCI6MTU3NTQ1MDIzMDMxOH0ifQ.GidxPLc4Wu80JWxScUjLrq4nmLr2lEamONcWsATBQfY; intercom-session-b1m243ec=Tlk4aHpydmFMOTc5SlZRaGRabE43WUIwanoxdXAyNlowR3FWbE9oaXNDRm5mYlhRRHNBNjlyLzJOOWQybmtYQi0tZzUrdnd1enBReWhPM0J3M1N2SFIzUT09--a917964bb8221fad0a6d3e38fab8cde2af1efed4
{"repository":{},"idField":"id","entityType":"USER","id":135628,"role":"admin","organizationId":135428,"firstName":"TESt","lastName":"account","color":"#cc90e2","email":"[email protected]","projectIds":[],"suspended":false}
##http response :
HTTP/1.1 200 Server: nginx Date: Wed, 04 Dec 2019 09:56:41 GMT Content-Type: application/json;charset=UTF-8 Connection: close Vary: Accept-Encoding █████████ ████ X-Frame-Options: sameorigin Strict-Transport-Security: max-age=31536000; includeSubDomains Content-Length: 180
█████cc90e2","email":"[email protected]","projectIds":[],"suspended":false}
i hope it is clear ,
thanks
Impact
an attacker ( already admin ) can remove the owner from his role , and the last one can not login any more to his account
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 server trusted the role value sent in the request without checking that the caller was allowed to change the owner's role, relying only on the disabled field in the interface.
Impact
An attacker who is already an admin can demote the organisation owner, and the owner can then no longer log in to their account.
What the attacker needed
An account invited as admin; the organisation owner's account
How it was found
- Have two accounts: one owner and one invited as admin.
- Log in with the admin account and open the users page for the organisation.
- Re-enable the disabled role field using the browser's developer tools.
- Change the owner's role to admin, which sends the update request.
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.
Every organisation has one owner who holds the highest level of control. The website's screen blocked changing that owner's role, but the server behind it did not check, so someone with admin rights could still send the change directly. The owner then lost access to their own account.
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.