<?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 evilcode1 on Medium]]></title>
        <description><![CDATA[Stories by evilcode1 on Medium]]></description>
        <link>https://medium.com/@ranoshlover?source=rss-e0877b5a4e32------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m-0h1ygDsaaGGD2Vug3R4A.jpeg</url>
            <title>Stories by evilcode1 on Medium</title>
            <link>https://medium.com/@ranoshlover?source=rss-e0877b5a4e32------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:48:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ranoshlover/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[From Recon to Revelation: Discovering a Mass PII Leak via IDOR]]></title>
            <link>https://ranoshlover.medium.com/from-recon-to-revelation-discovering-a-mass-pii-leak-via-idor-bd6269769eef?source=rss-e0877b5a4e32------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd6269769eef</guid>
            <dc:creator><![CDATA[evilcode1]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 10:00:29 GMT</pubDate>
            <atom:updated>2025-10-22T10:00:29.262Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, I’m Qassam Mahmoud, a security researcher at a private organization and an active bug bounty hunter on HackerOne. In this writeup, I’ll share my story of discovering an Insecure Direct Object Reference (IDOR) vulnerability that led to a significant Personally Identifiable Information (PII) leak on a target website, which I’ll refer to as example.com for privacy.</p><h3>The Recon Phase: Exploring the Target</h3><p>I began by navigating example.com, a large platform with numerous API calls and functionalities. With Burp Suite running, I captured all traffic to analyze the website’s behavior. Given the volume of endpoints, I relied on automation to streamline my workflow. My first step was to check for cache deception vulnerabilities using a custom <strong>Bambdas</strong> script to identify responses with specific cache headers:</p><pre>if (requestResponse.response() != null) {<br>    var headers = requestResponse.response().headers();<br>    for (var header : headers) {<br>        if (header.name().equalsIgnoreCase(&quot;Cf-Cache-Status&quot;) &amp;&amp; <br>            header.value().equalsIgnoreCase(&quot;MISS&quot;)) {<br>            return true;<br>        }<br>    }<br>}<br>return false;</pre><p>This script checks for Cf-Cache-Status: MISS headers, which can indicate cache-related issues. You can modify the header or value (e.g., HIT) based on your needs. However, this approach didn’t yield interesting results, so I shifted focus to hunting for IDOR vulnerabilities after noticing numerous endpoints with IDs and UUIDs in my Burp logs.</p><h3>Automating IDOR Discovery</h3><p>To efficiently identify endpoints containing UUIDs, I wrote another <strong>Bambdas</strong> script to filter requests with UUIDs in their bodies, ensuring they belonged to my target domain:</p><pre>// ✅ Match UUIDs in body, but only if URL matches your defined target domain(s)<br>java.util.regex.Pattern uuid = java.util.regex.Pattern.compile(<br>    &quot;\\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\\b&quot;<br>);<br><br>// ---- Validate request ----<br>if (requestResponse == null || requestResponse.request() == null) {<br>    return false;<br>}<br><br>String url = requestResponse.request().url();<br><br>// ---- Manual pseudo-scope: adjust the hostname(s) you’re targeting ----<br>boolean inScope = false;<br>if (url.startsWith(&quot;https://api.site.com&quot;)<br> || url.startsWith(&quot;https://site.com&quot;)<br> || url.contains(&quot;your-target-domain.com&quot;)) {<br>    inScope = true;<br>}<br><br>if (!inScope) {<br>    return false; // skip anything outside your pseudo-scope<br>}<br><br>// ---- Read request body ----<br>var bodyObj = requestResponse.request().body();<br>if (bodyObj == null || bodyObj.length() == 0) {<br>    return false;<br>}<br><br>byte[] bodyBytes = bodyObj.getBytes();<br>String body = new String(bodyBytes, &quot;UTF-8&quot;);<br><br>// ---- Search for UUIDs ----<br>java.util.regex.Matcher m = uuid.matcher(body);<br>return m.find();</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*4kdytAvwC6zESkq79EAJoQ.png" /></figure><p>This script matches UUIDs in the request body while ensuring the URL is within the target scope (e.g., https://api.example.com). After testing the identified endpoints for IDORs without success, I refined my strategy to focus on UUIDs in URL paths or query strings using a Logger++ regex query:</p><pre>Request.Host == &quot;example.com&quot; AND (Request.Path MATCHES &quot;.*[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}.*&quot; OR Request.Query MATCHES &quot;.*[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}.*&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wn7MLOFOhaWUAWNie4Y1Wg.png" /></figure><h3>Logger++ Query Explanation</h3><p>This query filters requests to example.com where either the URL path (e.g., /resource/123e4567-e89b-12d3-a456-426614174000) or query string (e.g., ?id=123e4567-e89b-12d3-a456-426614174000) contains a UUID. Here’s the breakdown:</p><ul><li>Request.Host == &quot;example.com&quot;: Targets requests to example.com.</li><li>AND: Combines the host filter with path/query conditions.</li><li>Request.Path MATCHES ...: Detects UUIDs in the URL path.</li><li>OR: Allows matching UUIDs in either path or query.</li><li>Request.Query MATCHES ...: Detects UUIDs in the query string.</li></ul><h3>The Breakthrough: Discovering the IDOR</h3><p>The Logger++ query returned a promising endpoint:</p><pre>https://site.com/api/reports/users/integrations/calendar?organization=https%3A%2F%2Fapi.site.com%2Forganizations%2Fd4b5de8b-XXXX-XXXX-XXXX-53689051fd6c&amp;group_by=user&amp;status=not_connected</pre><p>I tested this endpoint for an IDOR by modifying the UUID in the organization parameter. To my surprise, it was vulnerable! The endpoint leaked sensitive PII, including usernames, email addresses, avatar links, and connection statuses for calendar integrations.</p><h3>Maximizing Impact: Mass PII Leak</h3><p>To escalate the issue, I used the Wayback Machine to find additional organization UUIDs:</p><pre>https://web.archive.org/cdx/search/cdx?url=*.api.example.com/*&amp;output=text&amp;fl=original&amp;collapse=urlkey</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SpUp5ir3vW3ckaaMzMeYoA.png" /></figure><p>This query returned a list of archived URLs containing UUIDs for other organizations. I fed these UUIDs into Burp Suite’s Intruder to test the vulnerable endpoint systematically. Unfortunately, the bug was later closed as a duplicate by the bug bounty program.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*6DktO6Z3vImJz5Co0mV5Xw.png" /></figure><h3>Key Takeaways</h3><ul><li><strong>Automation is Key</strong>: Scripts and regex queries saved hours of manual analysis on a complex target.</li><li><strong>Persistence Pays Off</strong>: Shifting strategies from cache deception to IDOR hunting led to the discovery.</li><li><strong>Wayback Machine</strong>: A powerful tool for finding historical data to amplify impact.</li><li><strong>Responsible Disclosure</strong>: Even though the bug was a duplicate, reporting it responsibly contributes to a safer internet.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd6269769eef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>