<?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 Adham Mohamed on Medium]]></title>
        <description><![CDATA[Stories by Adham Mohamed on Medium]]></description>
        <link>https://medium.com/@am8337?source=rss-b7c411f0ae20------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bTiDpU8R3xePsz4gY6UMpQ.png</url>
            <title>Stories by Adham Mohamed on Medium</title>
            <link>https://medium.com/@am8337?source=rss-b7c411f0ae20------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:39:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@am8337/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[Critical Exposure Of Algolia Key That Led to Production, Staging, and Draft Data]]></title>
            <link>https://medium.com/@am8337/critical-exposure-of-algolia-key-that-led-to-production-staging-and-draft-data-ade1c34774eb?source=rss-b7c411f0ae20------2</link>
            <guid isPermaLink="false">https://medium.com/p/ade1c34774eb</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Adham Mohamed]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 13:09:43 GMT</pubDate>
            <atom:updated>2026-08-15T13:09:43.076Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>While testing a public bug bounty program, I came across an interesting file:</strong></p><blockquote><a href="https://www.example.com/FILE.json%60">https://www.example.com/FILE.json</a></blockquote><p>At first glance, it looked like a normal client-side configuration file. However, it contained an <strong>Algolia Application ID and API key</strong>.</p><p>Normally, finding an Algolia key alone is not necessarily a vulnerability because search applications are expected to expose restricted search credentials to browsers.</p><p>So I decided to test what this key could actually access.</p><h4>Finding the exposed credential</h4><p>After extracting the credentials, I checked whether the key was restricted to the application’s intended search functionality.</p><p>I started by asking Algolia for the available indices:</p><pre>curl \<br> -H &quot;X-Algolia-API-Key: &lt;KEY&gt;&quot; \<br> -H &quot;X-Algolia-Application-Id: REDACTED&quot; \<br> &quot;https://REDACTED-dsn.algolia.net/1/indexes/&quot;</pre><p><strong>The response exposed multiple indices, including production and non-production datasets.</strong></p><p>That was the interesting part.</p><h4>Accessing the data</h4><p>I then tested whether the discovered indices were actually readable.</p><p>For example:</p><pre>curl -X POST \<br> &quot;https://REDACTED-dsn.algolia.net/1/indexes/prod_RF_SITE/query&quot; \<br> -H &quot;X-Algolia-API-Key: &lt;KEY&gt;&quot; \<br> -H &quot;X-Algolia-Application-Id: REDACTED&quot; \<br> -H &quot;Content-Type: application/json&quot; \<br> - data &#39;{&quot;query&quot;:&quot;&quot;,&quot;hitsPerPage&quot;:5}&#39;</pre><p>The request returned records <strong>without authentication to the application</strong>.</p><p>Further testing showed that the same credential could interact with additional indices (I changed parts of the index names to avoid disclosing target-specific information):</p><blockquote>prod_records</blockquote><blockquote>dev_records</blockquote><blockquote>staging</blockquote><blockquote>prod_SITE</blockquote><blockquote>prod_marketing</blockquote><p>This meant the credential was not limited to the public search functionality.</p><h4>Why this mattered</h4><p>The important discovery was not simply:</p><p>&gt; “An Algolia API key is exposed.”</p><p>Client-side Algolia credentials can legitimately be public.</p><p>The problem was that this credential allowed an unauthenticated attacker to:</p><ul><li>Enumerate indices</li><li>Discover internal dataset names</li><li>Query production data</li><li>Access staging/development datasets</li><li>Potentially retrieve draft or unpublished content</li><li>Automate extraction of indexed records</li></ul><p>In other words, the exposed credential crossed the boundary between <strong>public search functionality and internal/non-public datasets</strong>.</p><h4>The bigger issue</h4><p>An attacker could automate the entire process:</p><p><strong>FILE.json → Extract Algolia credentials → Enumerate indices → Identify production/staging/draft datasets → Query indices → Extract records</strong></p><p><strong>No account was required.</strong></p><p>This made the issue significantly more serious than a typical exposed client-side API key.</p><h4>Final outcome</h4><p>I reported the issue as an unauthenticated data exposure caused by an overly privileged Algolia credential.</p><p>Initially, the submission was marked Informational/Duplicate because another researcher had previously reported a related issue.</p><p>Later, the Bugcrowd triage updated the VRT classification to:</p><p><strong>Sensitive Data Exposure → Disclosure of Secrets → For Publicly Accessible Asset</strong></p><p>and the submission was given P1 priority as a duplicate and I was rewarded with 10 points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGqoNzF5TaajfnE277-t2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*2T2FhC6YnveQ_N36PYiEjg.png" /></figure><p><strong>The key lesson from this research was simple:</strong></p><ul><li>If you you hunting in a program, don’t leave anything untested. Don’t work on a target for just a few days and move on — give it the time it deserves.</li><li>An exposed API key is not automatically a vulnerability — the real question is what that key is actually allowed to access.</li></ul><p><strong>In this case, the permissions behind the public credential were what turned a seemingly harmless client-side key into a much more serious security issue.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ade1c34774eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hunting an Unauthenticated IDOR in a Registration API]]></title>
            <link>https://medium.com/@am8337/hunting-an-unauthenticated-idor-in-a-registration-api-6bb8036162e7?source=rss-b7c411f0ae20------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bb8036162e7</guid>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[unauthenticated-idor]]></category>
            <dc:creator><![CDATA[Adham Mohamed]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 19:28:06 GMT</pubDate>
            <atom:updated>2026-07-21T12:04:47.581Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>While assessing the registration workflow of a web application during a bug bounty engagement, I came across an interesting API request that caught my attention. Registration endpoints are often overlooked because they are assumed to contain only temporary data, but they can sometimes expose sensitive information if proper access controls are missing.</p><p>In this write-up, I’ll explain how I identified an <strong>Unauthenticated Insecure Direct Object Reference (IDOR)</strong> that allowed anyone on the Internet to retrieve registration information without logging in.</p><p><strong>- Disclaimer<em>: </em></strong>Sensitive information has been redacted, and all identifying details have been removed.</p><h4>Target Recon</h4><p>I started by walking through the user registration process while intercepting requests with Burp Suite.</p><p>During the registration flow, one request immediately stood out:</p><p><strong>http<br>GET /api/SignUp/FindRegisterInfo?IncidentId=&lt;incident_id&gt;</strong></p><p>The endpoint was hosted on a dedicated account API:</p><p><a href="https://account-api.example.com/"><strong>https://account-api.example.com</strong></a></p><p>The name of the endpoint suggested that it retrieved information related to a registration incident.</p><p>At this stage, I had two questions:</p><p><strong><em>Does this endpoint require authentication?<br>Does it validate ownership of the supplied `IncidentId`?</em></strong></p><h4>Initial Testing</h4><p>The application returned registration details when the request was sent with a valid `IncidentId`.</p><p>The next logical step was to determine whether authentication was actually required.</p><p>I removed every cookie and authentication header from the request and sent it again.</p><p>Surprisingly, the response was exactly the same.</p><p>The endpoint continued to return the registration information even though no authenticated session existed.</p><p>This indicated that the endpoint was publicly accessible.</p><h4>Verifying the Finding</h4><p>To ensure the behavior wasn’t tied to my session, I performed several additional tests.</p><p>First, I repeated the request from a different IP address.</p><p>The endpoint continued to return the same data.</p><p>Next, I modified the `IncidentId` to another valid identifier.</p><p>Again, the API returned registration information belonging to a different registration record.</p><p>At this point, it became clear that the endpoint relied entirely on the user-controlled `IncidentId` without enforcing authentication or authorization.</p><h4>Proof of Concept</h4><p><strong>Request</strong></p><p><strong>http<br>GET /api/SignUp/FindRegisterInfo?IncidentId=&lt;valid_incident_id&gt; HTTP/2<br>Host: account-api.example.com</strong></p><p><strong>Response (Redacted)</strong></p><p><strong>json<br>{<br> “email”: “victim@example.com”,<br> “nickname”: “victim”,<br> “incidentId”: “…”,<br> …<br>}</strong></p><p>The same response was returned after:</p><p><em>Removing all cookies.<br>Removing authorization headers.<br>Sending the request from another IP address.</em></p><h4>Root Cause</h4><p>The endpoint trusted a client-supplied identifier (`IncidentId`) and returned the associated registration information without verifying whether the requester was authorized to access it.</p><p>In other words:</p><p><em>No authentication check.<br>No ownership validation.<br>Direct object access based solely on a user-controlled identifier.</em></p><p><em>This is a classic example of an </em><strong><em>Unauthenticated IDOR</em></strong><em>.</em></p><h4>Security Impact</h4><p>An attacker possessing a valid `IncidentId` could retrieve registration information without logging in.</p><p>The exposed information included:</p><p><strong><em>Email addresses<br>User nicknames<br>Internal registration identifiers</em></strong></p><p>Such exposure may enable:</p><p><strong><em>User enumeration<br>Privacy violations<br>Targeted phishing campaigns<br>Correlation of internal registration records</em></strong></p><p>Because the endpoint was publicly accessible, the attack surface extended beyond authenticated users.</p><p>Severity Discussion</p><p>Although the vulnerability allowed unauthorized access to sensitive registration data, the program ultimately classified it as <strong>Low Severity</strong>.</p><p>The reason was that the `IncidentId` consisted of a <strong>24-character hexadecimal identifier</strong>, providing a sufficiently large search space to make brute-force enumeration impractical.</p><p>This highlights an important lesson in bug bounty hunting:</p><p><strong>- A vulnerability’s severity depends not only on what is exposed, but also on how realistically it can be exploited.</strong></p><p>Even though random guessing was infeasible, the authorization flaw still existed. If an attacker were to obtain a valid `IncidentId` through logs, browser history, referrer leakage, screenshots, or another vulnerability, they could immediately retrieve another user’s registration information.</p><p>Remediation</p><p>The issue can be addressed by implementing proper object-level authorization:</p><p><strong>Require authentication before accessing the endpoint.<br>Verify that the authenticated user owns the requested registration record.<br>Avoid exposing sensitive registration information unnecessarily.<br>Continue using high-entropy identifiers, but never rely on identifier randomness as the primary security control.<br>Add monitoring and rate limiting to detect abnormal access patterns.</strong></p><p>Lessons Learned</p><p>This finding reinforces an important principle in web security:</p><p><strong>Random identifiers improve security, but they do not replace authorization.</strong></p><p>High-entropy object identifiers reduce the likelihood of successful guessing, yet every request must still be protected by proper authentication and authorization checks. Security should never depend solely on the secrecy or randomness of an identifier.</p><p><strong>References</strong></p><p><strong>OWASP API Security Top 10 — Broken Object Level Authorization (BOLA)</strong><br><strong>OWASP Insecure Direct Object Reference (IDOR)</strong><br><strong>CWE-639: Authorization Bypass Through User-Controlled Key</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bb8036162e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>