<?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 Esmail Saied (0xSp1DeR) on Medium]]></title>
        <description><![CDATA[Stories by Esmail Saied (0xSp1DeR) on Medium]]></description>
        <link>https://medium.com/@ismailsaid1603?source=rss-e21d17bc484------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9lKXnswIoUWfnBhaQ2zzSw@2x.jpeg</url>
            <title>Stories by Esmail Saied (0xSp1DeR) on Medium</title>
            <link>https://medium.com/@ismailsaid1603?source=rss-e21d17bc484------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:54:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ismailsaid1603/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[Cracking the Code: How I Took Over Admin Accounts Across Organizations]]></title>
            <link>https://medium.com/@ismailsaid1603/cracking-the-code-how-i-took-over-admin-accounts-across-organizations-5d135ba152b4?source=rss-e21d17bc484------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d135ba152b4</guid>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Esmail Saied (0xSp1DeR)]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 11:31:40 GMT</pubDate>
            <atom:updated>2024-09-26T12:09:30.632Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Boyzz, Hope you are doing well.</p><p>It’s Esmail AKA 0xSp1DeR, and today I’ll be sharing the details of a critical vulnerability I recently found.</p><p><strong><em>Overview</em></strong>: I discovered a critical vulnerability allowing an administrator of one organization to edit or delete users in any other organization. This exploit stems from insecure user ID handling, enabling privilege escalation and control over high-privileged accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*jaxqoauGSWjq8r6weDcQaw.gif" /></figure><p><strong><em>Discovery</em></strong>:</p><p><strong><em>Step 1</em></strong>: <em>Bypassing the Edit Restriction</em></p><p>The first issue I encountered was that user edits were not allowed via the GUI, only the invite functionality was available.</p><p>I began inspecting the JavaScript code to track how the invite process worked and eventually found the edit request that was being triggered in the background.</p><p>The request looked like this:</p><pre>POST /updateOrgUserV2<br>Host: example.com<br><br>{&quot;data&quot;:{&quot;userId&quot;:&quot;YzE4d1lTcHlNbEZYSlNSamMyRXdNRFkwTWpNMU5YRXdkR0Fo&quot;,&quot;orgId&quot;:&quot;uuid&quot;,&quot;userdata&quot;:{},&quot;env&quot;:&quot;Sandbox&quot;}}</pre><p><strong><em>Step 2</em></strong>: <em>Testing Role Privileges</em><br>I created an organization and assigned myself as the admin.</p><p>I invited another user (also me, using a different account), assigning it a lower privilege (user) role.</p><p>I captured the edit request using Burp Suite and tried to modify the admin account while logged in as the lower-privileged user.</p><p>Sadly It didn’t work, the server responded with a 403 Forbidden.</p><p>This was expected behavior since lower-privilege users shouldn’t have the ability to edit higher-privilege accounts.</p><p><strong><em>Step 3</em></strong>: Testing Cross-Organization Edits<br>At this point, I decided to see what would happen if I tried editing users from a completely different organization.</p><p>I created a second organization and retrieved both the userId and orgId.</p><p>Then I modified the request with these new IDs and sent it.</p><p>Unfortunately, this also failed, returning a 500 Internal Server Error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*BJ2wfXgT0HaV7dBBAB6jkA.gif" /></figure><p><strong><em>Step 4</em></strong>: <em>The Breakthrough</em><br>You think that stopped me ?</p><p>I returned to the original organization setup and tried one final idea:</p><p>what if I used my own organization’s orgId but changed the userId to that of a user in the other organization?</p><p>Boom! The request went through, and I received a 200 OK.</p><p>However, nothing appeared to have changed within the other organization.</p><p>I was confused at first until I realized I had overlooked something critical, the “userdata”: {} field was still empty! xD</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*Q5uM7AP-Cvg2MsPy37V4Rw.gif" /></figure><p><strong><em>Step 5</em></strong>: <em>Fuzzing the userdata Key</em><br>Now that I knew I could bypass organization restrictions, I needed to find out what exactly I could change in the userdata.</p><p>Using Burp Intruder, I fuzzed the key values for the userdata field.</p><p>After some time, I discovered three important keys:</p><ul><li>displayName</li><li>role</li><li>userMailAddress</li></ul><p>With this information, the request was like this:</p><pre>POST /updateOrgUserV2<br>Host: example.com<br>{&quot;data&quot;:{&quot;userId&quot;:&quot;YzE4d1lTcHlNbEZYSlNSamMyRXdNRFkwTWpNMU5YRXdkR0Fo&quot;,&quot;orgId&quot;:&quot;uuid&quot;,&quot;userdata&quot;:{&quot;displayName&quot;:&quot;New Name&quot;,&quot;role&quot;:&quot;user&quot;,&quot;userMailAddress&quot;:&quot;newmail@example.com&quot;},&quot;env&quot;:&quot;Sandbox&quot;}}</pre><p>I sent the request, and it worked perfectly. I was now able to:</p><ul><li>Downgrade the admin’s role</li><li>Change their display name and email address</li><li>delete their account</li></ul><p><strong><em>Step 6</em></strong>: <em>Elevating Severity — Finding the User UUIDs</em><br>At this point, I had full control over user details.</p><p>However, the severity was still moderate, as I couldn’t easily get the userId for other accounts — it wasn’t visible in the GUI.</p><p>I took a closer look at the encoded userId and noticed it looked like Base64 encoding.</p><p>I decoded the value and the result was another Base64-encoded string:</p><pre>c18wYSpyMlFXJSRjc2EwMDY0MjM1NXEwdGAh</pre><p>After decoding it again, I got something like this:</p><pre>s_0a*r2QW%$csa00642355q0t`!</pre><p>From here, I created multiple test users and discovered that the first 14 digits and last 5 digits of the user IDs remained fixed, while the middle part was sequentially generated.</p><p><strong><em>Step 7</em></strong>: <em>Chaining it All Together</em><br>With this knowledge, I could now enumerate user IDs across organizations and fully exploit the vulnerability.</p><p>This allowed me to target high-privileged accounts, making this a critical vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ejpiaPBWtvvAfFEx5od7lg.gif" /></figure><p><strong>Conclusion:</strong><br>This vulnerability highlights the importance of properly securing API endpoints and ensuring that user IDs are not predictable. By exploiting simple oversights, an attacker could gain significant control over high-privileged accounts across organizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*Jdx_6WFRF3TuSy7X1Jp9iQ.png" /></figure><p>Happy hunting ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d135ba152b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Discovered a PII Disclosure Risk Affecting Thousands of Customers]]></title>
            <link>https://medium.com/@ismailsaid1603/how-i-discovered-a-pii-disclosure-risk-affecting-thousands-of-customers-cf363cbed8e4?source=rss-e21d17bc484------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf363cbed8e4</guid>
            <dc:creator><![CDATA[Esmail Saied (0xSp1DeR)]]></dc:creator>
            <pubDate>Sat, 14 Sep 2024 04:39:49 GMT</pubDate>
            <atom:updated>2024-09-14T12:43:53.523Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Boyzz, Hope you are doing well.</p><p>I’m Esmail AKA 0xSp1DeR, and today I’ll be sharing the details of a critical vulnerability I recently found, leading to the exposure of users’ Personal Identifiable Information (PII)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FDRRbmfkh1uTySKberW%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fcomplex-will-smith-sneaker-shopping-martin-lawrence-DRRbmfkh1uTySKberW&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExbGd1ZDFtaXdmOGdmd2Z0NTNjcW5pdGZ2cWhoaTZpN3M5d3h4dDh0MCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FDRRbmfkh1uTySKberW%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2f29a7277f4e59b651b9ab560b06f8d/href">https://medium.com/media/c2f29a7277f4e59b651b9ab560b06f8d/href</a></iframe><p><strong><em>Introduction:</em></strong></p><p>It all started on a regular day when I received an email notification: one of the bug bounty programs let’s call it example.com had added a new domain. Excited to explore it, I quickly opened the domain and began browsing just like any ordinary user would.</p><p>After a while, I decided to fire up Burp Suite and start testing its functionalities. At first, nothing seemed unusual — no vulnerabilities in sight. Frustrated but curious, I decided to purchase an item and test the checkout process. That’s when things took an unexpected turn.</p><p><strong><em>Discovery:</em></strong></p><p>After purchasing an item, I received the expected confirmation email with the bill. Everything seemed normal so far. I decided to dig into my Burp Suite history, where I found an interesting endpoint: /api/order?orderid=&lt;order_id&gt; which was sequential numbers.</p><p>Naturally, I tried altering the order_id to see if I could access other orders, but unfortunately, I was met with a <strong>403 Forbidden</strong> error.</p><p>Disheartened, I kept exploring, and after some time, I stumbled upon another endpoint: example.com/api/email/&lt;order_id&gt;?emailName=partiallyRegistered&amp;language=en&amp;country=US.</p><p>Curious, I accessed it, and to my surprise, it returned an HTML file that contained my personal information—first and last name, address, email, phone numbers, and payment details. It looked like a standard billing statement.</p><p>I wondered, <strong>What if I changed the </strong><strong>order_id again?</strong> But sadly, that didn&#39;t work either. Frustrated, I decided to take a break and went to sleep for a few hours.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F27149353&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fyou-have-no-idea-gif-27149353&amp;image=https%3A%2F%2Fmedia.tenor.com%2FVK1HnBMf8MkAAAAN%2Fyou-have.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/900d24ca2859f1cdf464ac0c54e4237f/href">https://medium.com/media/900d24ca2859f1cdf464ac0c54e4237f/href</a></iframe><p>When I woke up with a fresh mind, I gave it another shot. I tried SQL injection (SQLi), but the firewall blocked everything.</p><p>This time, I decided to try removing cookies from the request.</p><p><strong>And Boom! It worked.</strong> Suddenly, I could access billing information for any order_id without restrictions, exposing a treasure trove of personal data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*CIyU9HNSW97Cw_eTNpnMfA.gif" /></figure><p><strong><em>Conclusion:</em></strong></p><p>This vulnerability exposed a critical flaw that allowed anyone with the right order_id to access sensitive customer information, including PII like names, addresses, emails, phone numbers, and payment details. By simply removing cookies, I bypassed the access controls meant to protect this data. Thankfully, I responsibly disclosed the issue, and the company has since patched the vulnerability.</p><p>This incident reinforces the importance of securing APIs and validating user permissions. Simple oversights can lead to major data breaches, but with vigilance, we can keep user data safe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*Pb5FL0n8JYEm_N81nAe0KA.png" /></figure><p><strong>Happy hunting ❤</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf363cbed8e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BAC leads to full takeover of any store within the organisation]]></title>
            <link>https://medium.com/@ismailsaid1603/bac-leads-to-full-takeover-of-any-organisation-0fc21cf4cb5e?source=rss-e21d17bc484------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fc21cf4cb5e</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[broken-access-control]]></category>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Esmail Saied (0xSp1DeR)]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 22:23:27 GMT</pubDate>
            <atom:updated>2024-03-06T06:29:13.633Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone, I’m Esmail and this is my first write-up, so today i’m gonna talk about one of the most interesting vulnerabilities I&#39;ve discovered.</p><p><strong><em>Introduction:<br></em></strong>This is a public bug bounty program in bugcrowd, The program is about managing stores, you have products, customers, orders, etc..<br>One of these functions that caught my eyes, It was using third-party applications to help you manage your store, and yes you are right in order to install an application you need to give it some permissions.</p><p><strong><em>Discovery:</em></strong><br>During installing an application I intercepted the request and it looked like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*43dI64aPnz376zIivdgrsw.png" /></figure><p>As you can see there is 2 interesting parameters, scope and context.<br>The scope is what can the app access, and the context contains the store hash that the app will be install in.<br>So until now everything seems normal, but what if we changed the store hash of our store to the victim store! Bingo you have installed it in the victim store without any access.</p><p><strong>Until now it’s considered P2 due to two problems:<br></strong>1. How to get the victim store hash?<br>2. What are you able to do after installing the app in victim’s store?</p><blockquote>1. How to get the victim store hash?</blockquote><p>To get the victim store hash you just need to open the store as normal user and view page source, the hash will be like this: <br>https://cdn11.redacted.com/s-yekne1dmpo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oaVhrsxvxthueDc4ZY_WAA.png" /></figure><blockquote>2. What are you able to do after installing the app in victim’s store?</blockquote><p>To answer this question we need to go back to the scope parameter.<br>First we need to know all possible scope values and to do that we need to go back to another function which is responsible for creating “Store Level API Keys”.<br>So let’s create an API-key and intercept the request it will be like that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*0AOTOQjfShIBCwpizet7IA.png" /></figure><p>hmm, looks interesting.<br>Let’s save it and go back to the app instilling process and edit the scope &amp; context.<br>The request will be like that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KG7mVvEE170TrW1FNeAauw.png" /></figure><p>Now we have installed an app in the victim store with all roles.<br>To my surprise I was redirected to the application with the victim store, Sadly I didn’t find users, products, customers, or anything, So I was really disappointed.<br>But after less than half hour i went back to burp-suite history and started searching all requests.<br>The luck smiled on me again and I found a request ends with “Platform-data” that contains an “Access Token” I was like: OMG!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITKg_8wB6MdCXdLuXUUF5A.png" /></figure><p>So I went back to the API documentation and started the fire.<br>I was able to perform all actions just like the owner.</p><p>In the end I hope you enjoyed the write-up.</p><p>Happy hunting ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fc21cf4cb5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>