Mekkawy's Profile

Hacking, Developing.

View on GitHub

Generate Oauth Code For Any User Within Any Partner

How

The application has an Oauth functionality in order for partners to interact with its API and get other users resources after their consent. After looking at the API documentation I noticed that when the partners try to get the user’s OAuth code it deals with another subdomain and endpoint that is different than the API subdomain and naming convention. So, this gave me an idea of can the partner do the same with the API.

How the API works

I like to look at the API as an object that has different actions or methods that can be triggered on it. Like if you have an endpoint like this /account this endpoint is like an object that you can manipulate its properties with different actions like CREATE, UPDATE, DELETE or others it depends on the API itself some of them are using the request verbs and others have another implementation, but we have to try.

How the API OAuth endpoint looked like

The getauthorizationcode IDOR

alt text

The requesttoken action

alt text

My Info

Yeswehack : https://yeswehack.com/hunters/mekky

Intigriti : https://app.intigriti.com/researcher/profile/mekky

Linkedin : https://www.linkedin.com/in/muhammed-mekkawy-1504821b2/

Twitter : https://twitter.com/Mekky49295157