Hey Guys Its Me Khizer again So This Blog is about an IDOR issue i found in a Web where changing the User ID in Facebook auth callback linking request actually connects my Facebook Account to the Victims Site Account so By this i could get complete access to User Account.

So Let’s start what happened was i was testing a web app when i get a chance to test it’s I realised that the website was identifying a user from a unique User ID that was _user_id: and The value for this ID was something like this aff20-33f3-4c8e-b3cb-77b2 So I created Multiple Accounts on that website and start checking in which request this _user_id is getting passed and after some time i found out that In Facebook auth Callback Linking Request this _user_id: is used In a Similar Way

Now at This Point I tried Changing My _user_id with _user_id of another test account and the response for that request was 200 OK

Before I Passed this request the Linked Account Section in My Victims Account was like

So I did login to that web app using my Facebook account and i get access to my 2nd test account using No Password at all And the Linked Accounts Section in my Victims Account Was Changed to

And I was Like Damn! What Just happened

But Now there was Another issue and it was about the _user_id these 2 questions keep popping up in my head

How an Attacker is going to Get User ID

It was Unique for each user

And The Analyst on the Submission was also not convinced about the PRIORITY of the issue as high because of this little issue Because the chances of Attacker getting the victims _user_id were to low So the Next Phase started and i tested many public endpoints to check if any contains the user id but couldn’t find any but then i see if we open an image shared by the user(victim) and open the actual URL of the image it was hosted on an S3 Bucket and the image always had the user id in the URL i.e