<?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 Saurabhcsec on Medium]]></title>
        <description><![CDATA[Stories by Saurabhcsec on Medium]]></description>
        <link>https://medium.com/@saurabhcsec?source=rss-65e8ab5525a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*f9lii5oXYOmAzGgj</url>
            <title>Stories by Saurabhcsec on Medium</title>
            <link>https://medium.com/@saurabhcsec?source=rss-65e8ab5525a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 16:13:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saurabhcsec/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[Broken Access Control leads to Addition of Malicious Files / Inclusion of Sensitive Files.]]></title>
            <link>https://medium.com/@saurabhcsec/broken-access-control-leads-to-addition-of-malicious-files-inclusion-of-sensitive-files-4d0b424e1515?source=rss-65e8ab5525a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d0b424e1515</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Saurabhcsec]]></dc:creator>
            <pubDate>Sun, 23 Mar 2025 11:20:40 GMT</pubDate>
            <atom:updated>2025-03-23T11:24:48.826Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Guys,</p><p>My good name is Saurabh Tripathi and I am back with another interesting finding.</p><p>LinkedIn - https://www.linkedin.com/in/saurabh-tripathi-1948273b</p><p>Broken Access Control Leads to Addition of malicious file</p><p>: A Step-by-Step Journey</p><p>As a cybersecurity enthusiast and bug bounty hunter, I recently stumbled upon a fascinating vulnerability that highlights a critical flaw in access control enforcement. This writeup walks through the discovery of a Broken Access Control issue in a web application—details redacted to respect responsible disclosure—where I could manipulate files across separate accounts without proper authorization.</p><p>In this case, the application let me upload a file in one account and then link it to a completely different account by tweaking an API request. Even though the server threw an error, the action succeeded, proving the access controls were more like a flimsy curtain than a steel door.</p><p>The Setup: Two Accounts, One Goal</p><p>To test this, I worked with two separate accounts on the platform—let’s call them Account A and Account B:</p><p>Account A: Hosted at [REDACTED-A].example.com with a unique Company ID (let’s say COMPANY-A).</p><p>Account B: Hosted at [REDACTED-B].example.com with a different Company ID (COMPANY-B).</p><p>These accounts represent distinct entities—think of them as two different organizations using the same platform. My hypothesis was simple: if I could upload a file in Account B and then trick the system into linking it to Account A, I’d expose a serious flaw.</p><p>Step 1: I started by logging into Account B ([REDACTED-B].example.com). Using the platform’s file upload feature, I added a test file—named BrokenAccessTest.png—to a folder. Let’s say this folder had an ID of FOLDER-B. After the upload, the system assigned the file a unique identifier, say FILE-XYZ. So far, so normal—everything stayed within Account B’s sandbox.</p><p>Step 2: Snooping on the API</p><p>Next, I fired up my Burp . When you link a file to a folder, the application sends a POST request to an API endpoint. Here’s what I captured from Account B:</p><p>POST /api/v1/folders/FOLDER-B/COMPANY/COMPANY-B/attachments/link<br>Host: [REDACTED-B].example.com<br>[Request Body includes FILE-XYZ]. The server processed it, and the file appeared in Account B’s folder as expected. Nothing suspicious yet—just standard functionality.</p><p>Step 3: The Sneaky Switch here’s where things got interesting. I wondered: what if I changed the folder ID and company ID to point to Account A instead? Using my proxy tool, I modified the request:</p><p>POST /api/v1/folders/FOLDER-A/COMPANY/COMPANY-A/attachments/link<br>Host: [REDACTED-B].example.com<br>[Request Body still includes FILE-XYZ]</p><p>FOLDER-A was a folder ID from Account A ([REDACTED-A].example.com).COMPANY-A was Account A’s company ID.FILE-XYZ remained the same—the file I uploaded in Account B.</p><p>I hit “Send” and braced myself. The server responded with a 500 Internal Server Error. At first, I thought I’d hit a dead end—500 errors usually mean something broke on the backend. But in bug hunting, errors can be deceiving, so I decided to double-check.</p><p>Step 4: The “Oops, It Worked” Moment I logged into Account A ([REDACTED-A].example.com) and navigated to the folder with ID FOLDER-A. To my surprise, there it was: BrokenAccessTest.png, sitting in Account A’s folder. Despite the 500 error, the file had successfully linked across accounts, proof that the access controls were broken.</p><p>How Did This Happen?Let’s break down the flaw:No Authorization Check: The API didn’t verify whether I had permission to link files to FOLDER-A in COMPANY-A. It blindly trusted the modified request.</p><p>Server-Side Mishandling: The 500 error suggests the backend hit a snag (maybe a logging issue or unhandled exception), but it still completed the linking action before failing.</p><p>Cross-Account Access: Since COMPANY-A and COMPANY-B are distinct entities, this shouldn’t have been possible without explicit cross-account permissions—which I didn’t have.In technical terms, this is a classic case of Insecure Direct Object Reference (IDOR) combined with insufficient access control enforcement.</p><p>The API relied on user-supplied IDs (FOLDER-A and COMPANY-A) without validating my authority over them.</p><p>The Impact: Imagine an attacker exploiting this:Data Exposure: They could link sensitive files (contracts, PII, etc.) from one organisation to another.</p><p>[All the IDs were sequential increasing the impact]</p><p>Data Tampering: They might upload malicious files and link them across accounts, disrupting operations or spreading malware.</p><p>Privilege Escalation: If one account has higher privileges, linking files could grant unintended access to restricted resources.Since these accounts belonged to different “companies” on the platform, this could even bridge organizational boundaries, exposing one entity’s data to another.</p><p>Lessons for Developers- This bug offers a few takeaways for building secure applications.</p><p>Validate Ownership: Always check if the user has permission to manipulate the resources referenced in API requests (e.g., folder IDs, company IDs).Fail Securely: A 500 error shouldn’t mean “half-success.” If something goes wrong, roll back the action—don’t let it complete.</p><p>Log and Monitor: Proper logging could’ve flagged this cross-account attempt, alerting the team to investigate.</p><p>Don’t Trust Errors: A 500 response doesn’t always mean failure—verify the outcome manually.</p><p>The Issue was addressed and fixed the very same day.</p><p>Swags ON THE WAY.</p><p>LinkedIn — https://www.linkedin.com/in/saurabh-tripathi-1948273b</p><p>Thanks For Reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d0b424e1515" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IDOR Leads to Deletion of Organization Owner]]></title>
            <link>https://bugbountywizard.app/idor-leads-to-deletion-of-organization-owner-0f0deb6a71aa?source=rss-65e8ab5525a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f0deb6a71aa</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Saurabhcsec]]></dc:creator>
            <pubDate>Mon, 27 Jan 2025 04:25:14 GMT</pubDate>
            <atom:updated>2026-08-27T11:48:19.956Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Fellow Hackers!</p><p>I am Saurabh Tripathi, a 24-year-old Bug bounty hunter and Application Security Engineer. My focus lies in uncovering vulnerabilities such as:</p><ul><li><strong>Broken Access Control (BAC)</strong></li><li><strong>Insecure Direct Object References (IDOR)</strong></li><li><strong>Business Logic Errors</strong></li></ul><p>I believe in the power of collaboration and the importance of making the internet a safer place. Let’s connect, learn, and grow together!</p><h3>Analyzing the Application</h3><p>During my hunting on a CRM Website which I can’t disclose, so let’s call it as <strong>redacted.com</strong>, I identified a critical <strong>Insecure Direct Object Reference (IDOR)</strong> vulnerability in the platform’s team management endpoint. This flaw allowed me to manipulate the <strong>MemberUID</strong> (which followed an incremental pattern) parameter in a privilege escalation request to promote a user from another organization to an Admin or Owner role in their organization. Additionally, it allowed me to delete the Owner and other members, breaking organizational boundaries.</p><p>The vulnerability stemmed from insufficient validation of the <strong>MemberUID</strong> to ensure it belonged to the same organization initiating the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SAGtCvFEQOp_9WycJBRuLw.png" /><figcaption>Image via substack</figcaption></figure><h3>Steps to Reproduce the Vulnerability</h3><h4>1. Initial Setup</h4><p>To simulate this vulnerability, I created two separate organizations:</p><ul><li><strong>Organization 1</strong>:</li><li>Created an organization named <strong>Org1</strong>.</li><li>Invited a member, <strong>Org1Member@redacted.team</strong>, as a <strong>Normal Member</strong>.</li><li><strong>Organization 2</strong>:</li><li>Created another organization named <strong>Org2</strong>.</li><li>Invited a member, <strong>Org2Member@redacted.team</strong>, as a <strong>Normal Member</strong>.</li></ul><h4>2. Capturing the MemberUID</h4><p>While logged in as the <strong>Owner of Organization 2</strong>, I invited a member and captured their <strong>MemberUID</strong> after they joined the team. I noticed that the <strong>MemberUID</strong> followed an incremental pattern.</p><h4>3. Exploiting the IDOR</h4><p>Next, I used the <strong>MemberUID</strong> captured from Organization 2 to manipulate a privilege escalation request in Organization 1:</p><ul><li>Logged in as the <strong>Owner of Organization 1</strong>.</li><li>Navigated to the team management panel and initiated a privilege escalation request to promote <strong>Org1Member@redacted.team</strong> to <strong>Admin</strong>.</li><li>Intercepted the request using <strong>Burp Suite</strong> and modified the <strong>MemberUID</strong> parameter to the value captured from Organization 2 (<strong>Org2Member@redacted.team</strong>).</li></ul><h4>4. Privilege Escalation</h4><ul><li>Replayed the modified request.</li><li>Observed that the user (<strong>Org2Member@redacted.team</strong>) from Organization 2 was successfully promoted to <strong>Admin</strong> in their own organization.</li></ul><h3>DELETION OF OWNER OF THE OTHER ORGANIZATION USING THE SAME METHOD</h3><p><strong>Exploiting the IDOR</strong></p><ol><li>Using the <strong>MemberUID</strong> captured from Organization 2, I manipulated a <strong>delete-member</strong> request in Organization 1:</li></ol><ul><li>Logged in as the <strong>Owner of Organization 1</strong> (Org1).</li><li>Navigated to the team management panel and initiated a request to remove a member (<strong>Org1Member@redacted.team</strong>) from the team.</li><li>Intercepted the request using <strong>Burp Suite</strong> and modified the <strong>MemberUID</strong> parameter to the value captured from Organization 2 (<strong>Org2Owner@redacted.team</strong>).</li><li>Replayed the modified request.</li><li>Observed that the user (<strong>Org2Owner@redacted.team</strong>) from Organization 2 was successfully deleted from their own organization.</li><li>By manipulating the <strong>MemberUID</strong> of the <strong>Owner</strong> of Organization 2, I was able to delete the <strong>Owner</strong> of Organization 2, effectively leaving the organization in an undefined state.</li><li>Due to the incremental pattern of the <strong>MemberUID</strong>, an attacker could exploit this vulnerability by running a <strong>Brute Force Attack</strong> using <strong>Burp Suite’s Intruder</strong> tool. This would allow the attacker to:</li><li><strong>Enumerate</strong> the <strong>MemberUIDs</strong> for multiple users across different organizations.</li><li><strong>Delete members and owners</strong> from unrelated organizations without their knowledge or consent.</li></ul><h3>Impact</h3><p><strong>Severity</strong>: <strong>Critical</strong></p><p>The IDOR vulnerability allows malicious actors to escalate privileges across organizations, leading to:</p><ul><li><strong>Unauthorized Access</strong>: Attackers can promote others to privileged roles in unrelated organizations.</li><li><strong>Delete Owners and Members</strong>: Attackers can remove the Owner or members of unrelated organizations.</li><li><strong>Organization Sabotage</strong>: By deleting the Owner, attackers can disrupt workflows, leaving organizations in an unmanageable state.</li><li><strong>Confidentiality and Integrity Risks</strong>: Attackers can delete specific users, potentially impacting the organization’s ability to recover important data.</li></ul><h3>Recommendations</h3><ol><li><strong>Strict Access Control Validation</strong></li></ol><ul><li>Ensure the <strong>MemberUID</strong> belongs to the same organization initiating the privilege escalation request.</li></ul><p><strong>2. Restrict Role Escalation to Organizational Scope</strong></p><ul><li>Enforce privilege escalation actions to operate only within the context of the originating organization.</li></ul><p><strong>3. Avoid Predictable or Sequential MemberUIDs</strong></p><ul><li>Use unique, random identifiers for user accounts to prevent enumeration.</li></ul><h3>Summary</h3><p>The discovered IDOR vulnerability demonstrates how insufficient validation of user identifiers in privilege escalation requests can lead to severe security risks. By implementing robust access control mechanisms and proper validation checks, the platform can mitigate such vulnerabilities and ensure the integrity of organizational roles.</p><ul><li><strong>Bug Reported</strong>: 8 Dec 2024</li><li><strong>Accepted and Fixed</strong>: 14 Dec 2024</li><li><strong>Bounty Awarded</strong>: $800</li><li>Follow me on X — https://x.com/saurabhh_11</li><li>LinkedIn — https://www.linkedin.com/in/saurabh-tripathi-1948273b</li></ul><p><strong>Thanks for Reading!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f0deb6a71aa" width="1" height="1" alt=""><hr><p><a href="https://bugbountywizard.app/idor-leads-to-deletion-of-organization-owner-0f0deb6a71aa">IDOR Leads to Deletion of Organization Owner</a> was originally published in <a href="https://bugbountywizard.app/">BugBountywizard</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>