<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by awais0x01 on Medium]]></title>
        <description><![CDATA[Stories by awais0x01 on Medium]]></description>
        <link>https://medium.com/@awais0x01?source=rss-55e2caf1b41f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bfR2g48SBVlng4U-lbneIw.jpeg</url>
            <title>Stories by awais0x01 on Medium</title>
            <link>https://medium.com/@awais0x01?source=rss-55e2caf1b41f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 14:47:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@awais0x01/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[IDOR Vulnerability: A Journey to Full Account Takeover]]></title>
            <link>https://awais0x01.medium.com/idor-vulnerability-a-journey-to-full-account-takeover-47c930139c27?source=rss-55e2caf1b41f------2</link>
            <guid isPermaLink="false">https://medium.com/p/47c930139c27</guid>
            <dc:creator><![CDATA[awais0x01]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 21:07:30 GMT</pubDate>
            <atom:updated>2023-07-05T21:08:04.037Z</atom:updated>
            <content:encoded><![CDATA[<p>Greetings, fellow cybersecurity Researcher! I’m Awais0x01, a passionate security researcher and dedicated full-time bug bounty hunter. Today, I’m excited to share my very first write-up with you all. Since I jumped into the world of bug bounty back in 2022, this year (2023) is going lucky for me as I found a lot of bugs for fun and profit, and helps make the digital world more secure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IyT4C14am0aS-d7j.png" /></figure><p>Now, let’s dive into the story of an interesting IDOR, I found a public program with large scope (more than 4000 assets in scope). I selected a random domain let&#39;s suppose our target website is Redacted.com. My usual approach is to explore the signing up and logging in features of targets, and I did the same with this target as well without any recon.</p><p>Redacted.com has account creation functionality. When creating an account, there was a company name field which means a company is also being created by default and users are added to that company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*iyoVv_KmyLdBLskMch0SoQ.png" /></figure><p>Admin users can add more users as admin in the company who can edit or delete other users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*xp3ePPiUIc_dJxHqPP17tg.png" /></figure><p>I started exploring the “add new profile” feature, while adding a new user profile I noticed that there are some IDs in HTTP request like co_UID, user_UID and licence_ID that are like 12345.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*17kCPSp06Hdk1ZTZoDME7g.png" /></figure><p>I decided to check for IDOR here. I created a second account to check for IDOR , lets say we have two accounts, <strong>account_A</strong> and <strong>Account_B</strong>.</p><p>With the help of “multi_accounts” Firefox addon, we can use multiple accounts in one browser. This is maybe known to many of you or maybe help those who don’t know about this extension💩 (https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers)</p><p>Back to the story, while adding a new user to <strong>ACCOUNT_A</strong>, I intercepted the request with burp suite and changed the <strong>co_UID</strong> with <strong>ACCOUNT_B’s co_UID </strong>to check for IDOR. I thought if there is a possible IDOR, I can add a user to <strong>ACCOUNT_B</strong> with admin privileges. I sent the request but the user was added to <strong>ACCOUNT_A</strong> and I was unsuccessful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*8fT7Ts5yyK3s9TfN.gif" /></figure><p>I decided to give up here because normally company_UID (co_UID) should be responsible to add users into the company. But before closing this, I decided to change the <strong>licence_ID</strong> of <strong>ACCOUNT_A</strong> with <strong>ACCOUNT_B</strong> <strong>licence_ID</strong> while adding a new user.</p><p>I was surprised to see that the response is <strong>200 OK :) </strong>and a new user was added to <strong>ACCOUNT_B (ACCOUNT_B=victim’s account)</strong>. This means that the attacker-controlled user is added to the company of <strong>ACCOUNT_B</strong> and as an attacker user I can edit or delete other users which leads to a full account takeover. Actually, the <strong>licence_ID</strong> here is responsible to add users to the company.</p><p>The next question is how to get the <strong>licence_ID</strong> of other users for account takeover. The answer is simple, while creating new accounts, the company <strong>licence_ID</strong> is being created in an incremental pattern like 1112,1113 and 1114, which makes it easy for the attacker to brute force <strong>licence_ID</strong> using burp intruder while adding the user to the victim’s company.</p><p>Hence, it is always recommended to verify all UIDs/IDs in a HTTP request, here in this case licence_ID worked as company_UID and that&#39;s why may be ignored by other security researchers.</p><p>I hope you enjoyed this write-up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*1VKV48YM8MQWkMo_.gif" /></figure><p><strong>Follow me on Twitter </strong><a href="https://twitter.com/awais0x01"><strong>https://twitter.com/awais0x01</strong></a><strong> .</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47c930139c27" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>