<?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 Eslam Gamal on Medium]]></title>
        <description><![CDATA[Stories by Eslam Gamal on Medium]]></description>
        <link>https://medium.com/@0xEsso?source=rss-de5ab8bf183a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*g9kskGWHxKS3kCquN1BXnw.png</url>
            <title>Stories by Eslam Gamal on Medium</title>
            <link>https://medium.com/@0xEsso?source=rss-de5ab8bf183a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 23:26:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xEsso/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 Full Organization Takeover via Email Verification Bypass]]></title>
            <link>https://medium.com/@0xEsso/critical-full-organization-takeover-via-email-verification-bypass-3f5a55287824?source=rss-de5ab8bf183a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f5a55287824</guid>
            <category><![CDATA[web-penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[business-logic-bug]]></category>
            <dc:creator><![CDATA[Eslam Gamal]]></dc:creator>
            <pubDate>Thu, 20 Nov 2025 16:48:44 GMT</pubDate>
            <atom:updated>2025-11-20T16:53:57.695Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey, what’s up everyone!<br> I’m Eslam Gamal, better known online as <strong>0xEsso</strong>. I’m an ethical hacker and bug bounty hunter .</p><p>Today I’m dropping one of the cleanest, most terrifying bugs I’ve ever found in 2025. A true “Email Verification Bypass” that gave me full admin access to <strong>every single organization</strong> belonging to company.com (the main domain of a very big SaaS company).</p><p>Reported → triaged → fixed &amp; paid in under 24 hours with bounty. Alhamdulillah.</p><p>Grab your coffee, let’s go.</p><h3>First, Understanding How Their System Works</h3><p>The platform is a huge multi-tenant CRM. The way they handle enterprise customers is pretty standard:</p><ul><li>The first person who ever signs up with an email @AnyCompany.com automatically creates the main “Organization” for that domain.</li><li>Anyone else who later signs up with any @AnyCompany.com email gets auto-joined to that same organization, usually with high privileges.</li></ul><p>Super common feature, nothing weird… until it is.</p><h3>The Story Begins — Step by Step</h3><h3>1. I signed up with my burner Gmail</h3><p>→ 0xesso@gmail.com<br> Normal registration, filled the form, account created but still <strong>unverified</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b9JxuoP_WG7aZVRT2r020w.png" /></figure><h3>2. Got the verification link</h3><p>Classic link, looked like this:</p><pre>https://app.company.com/go/email-verification/13371337/SuperSecretTokenHere/0xesso@gmail.com</pre><p>I didn’t click it. Just saved it.</p><h3>3. Opened Burp and started poking around</h3><p>Even while unverified, I still had a session.<br> Discovered something crazy: the backend only checks <strong>three headers</strong> for every API call:</p><ul><li>Cookie</li><li>X-Csrftoken</li><li>X-Organization-Id</li></ul><p>That’s it. No “you must be verified” check anywhere.</p><h3>4. Thought outside the box…</h3><p>“What if I just change my email to <a href="/service/mailto:something@company.com">something@company.com</a> while still unverified?”</p><p>Tried this request:</p><pre>POST /api/v1/auth/change_email/ HTTP/2<br>Host: app.company.com<br>Cookie: &lt;my_session&gt;<br>X-Csrftoken: &lt;token&gt;<br>X-Organization-Id: whatever</pre><pre>{&quot;email&quot;:&quot;admin123@company.com&quot;,&quot;password&quot;:&quot;test123&quot;}</pre><p>→ 200 OK. Email changed.<br> → New verification email sent to admin123@company.com<br> Still didn’t verify anything yet.</p><h3>5. Went back to the ORIGINAL verification link</h3><p>Kept the account ID and token exactly the same, just changed the last part (the email) manually:</p><pre>From:<br>https://app.company.com/go/email-verification/13371337/SuperSecretTokenHere/0xesso@gmail.com</pre><pre>To:<br>https://app.company.com/go/email-verification/13371337/SuperSecretTokenHere/admin123@company.com</pre><p>Clicked it.</p><p><strong>Boom.</strong> Account verified instantly.<br> Logged in → saw every single organization under company.com → full admin everywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-RBEEozzR_2bi3GJN1fTWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsVBGW2iL5gfOoHPsKiRxA.png" /></figure><h3>Why Did This Even Work? (Root Cause)</h3><ul><li>The verification endpoint <strong>blindly trusts</strong> the email parameter in the URL.</li><li>It never checks “is this token actually issued for this exact email?”</li><li>Changing email on an unverified account is allowed with zero restrictions.</li><li>One account ended up with two emails and two valid activation paths → old token activates new (corporate) email → auto-join main org.</li></ul><h3>Impact?</h3><p>You already know:</p><ul><li>Full admin on the main company.com tenant</li><li>Access to thousands of customers’ data, chats, files, invoices, API keys…</li></ul><p>Shoutout to the security team at company.com — absolute legends, super fast and super kind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*JJE_dpOZNKzX3gnRZYOPJQ.png" /></figure><p>Peace ✌️<br> <strong>Eslam Gamal — 0xEsso</strong><br> LinkedIn: <a href="https://www.linkedin.com/in/0xEsso">https://www.linkedin.com/in/0xEsso</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f5a55287824" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Recon to RCE: How I Scored My First Critical BugIntroduction]]></title>
            <link>https://medium.com/@0xEsso/from-recon-to-rce-how-i-scored-my-first-critical-bugintroduction-a740ff8b2d6b?source=rss-de5ab8bf183a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a740ff8b2d6b</guid>
            <category><![CDATA[rce]]></category>
            <category><![CDATA[os-command-injection]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[web-penetration-testing]]></category>
            <dc:creator><![CDATA[Eslam Gamal]]></dc:creator>
            <pubDate>Thu, 23 Oct 2025 10:47:13 GMT</pubDate>
            <atom:updated>2025-10-23T11:41:18.892Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Recon to RCE: How I Scored My First Critical Bug</h3><h3>Introduction</h3><p>My name is Eslam, known as 0xEsso, and I work as an ethical hacker specializing in penetration testing. In this write-up, I’ll share the journey of how I discovered my first P1 (Critical) Remote Code Execution (RCE) bug through an OS command injection vulnerability in a public bug bounty program. This write-up is intended to provide a clear and engaging explanation for the community</p><h3>What is OS Command Injection?</h3><p>OS Command Injection is a critical security vulnerability that allows an attacker to execute arbitrary operating system commands on a target server. This occurs when an application improperly handles user input, passing it directly to system commands without proper sanitization. For example, if a web application takes user input and uses it in a command like ping [user_input], an attacker could manipulate the input to execute malicious commands, such as listing sensitive files or gaining unauthorized access to the server.</p><p>This vulnerability is particularly dangerous because it can lead to full system compromise, making it a prime target for attackers and a high-priority issue for bug bounty hunters.</p><h3>The Scenario: How I Found the Bug</h3><p>After a brief hiatus from bug hunting, I returned to the scene with renewed enthusiasm and joined a public bug bounty program on Bugcrowd. I selected a target with a broad scope that included reconnaissance (recon) as part of the process. Among the assets was a domain: example.com. After exhausting other assets, I focused on this domain as my final target.</p><h3>Step 1: Reconnaissance with FOFA</h3><p>To start, I used FOFA, a powerful search engine for cybersecurity reconnaissance, with the following dork to identify valid subdomains:</p><pre>domain=&quot;example.com&quot; &amp;&amp; &quot;200&quot;</pre><p>This query returned several subdomains with HTTP 200 status codes, indicating active pages. One subdomain caught my attention: sub.example.com. Visiting it redirected me to a login page at /login/. This was my first clue that the target might have something interesting to explore.</p><h3>Step 2: Fuzzing and Discovering the CMS</h3><p>I began fuzzing the subdomain to uncover hidden directories and files. During this process, I discovered a directory called /CmsPages/, which also contained a login page at /CmsPages/logon.aspx. The .aspx extension immediately suggested that the application was built on the .NET framework, a common platform for web applications.</p><h3>Step 3: Targeted Fuzzing for .aspx Files</h3><p>Knowing the application was likely running on .NET, I narrowed my fuzzing to focus exclusively on .aspx files. This approach yielded several results, including:</p><ul><li>logon.aspx</li><li>blank.aspx</li><li>…and others</li></ul><p>I manually inspected each file, but none initially showed promise. However, one file stood out: test.aspx. When I accessed it, I was shocked to find a page that hinted at the possibility of command execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JyFrt0giSkIvkDWEVFCNYg.png" /></figure><h3><strong>Step 4: Confirming the Vulnerability</strong></h3><p>The test.aspx page appeared to allow direct input for executing commands. Recognizing that the server was running Windows, I tested a simple command: dir. To my astonishment, the response displayed a directory listing, revealing sensitive server information right before my eyes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IgOQu2b6_NUcHY5bz3YnLg.png" /></figure><p>This was a clear case of OS command injection, enabling Remote Code Execution (RCE). I had stumbled upon a critical vulnerability that could potentially allow an attacker to take full control of the server.</p><h3>Step 5: Reporting and the Outcome</h3><p>I promptly reported the vulnerability to the Bugcrowd program. Initially, the report was rejected without a clear reason, which was frustrating. However, after submitting a request for review, Bugcrowd reopened the case. The client responded, stating they were already aware of the issue internally — a common response in bug bounty programs. Despite this, they accepted the report as a P2 (High) vulnerability, even though I believed it qualified as a P1 (Critical) due to its RCE impact. Nevertheless, I was thrilled to have my first critical bug validated!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*LvOwfVM6X65HhD_N-GkYZA.png" /></figure><h3>Lessons Learned</h3><p>This experience taught me several valuable lessons:</p><ol><li><strong>Recon is Key</strong>: Using tools like FOFA for reconnaissance helped uncover hidden subdomains that were critical to finding the vulnerability.</li><li><strong>Targeted Fuzzing</strong>: Narrowing my fuzzing to specific file types (like .aspx) based on the technology stack saved time and led me to the vulnerable endpoint.</li><li><strong>Advocacy Matters</strong>: Requesting a review for a rejected report can make a difference, as it did in this case.</li></ol><h3>Conclusion</h3><p>Finding my first P1 RCE bug was an exhilarating milestone in my bug bounty journey. It reinforced the importance of combining thorough reconnaissance, targeted testing, and persistence. I hope this write-up inspires other bug hunters to keep exploring, experimenting, and reporting responsibly.</p><p>If you’d like to connect or follow my bug bounty adventures, you can find me on LinkedIn: <a href="https://www.linkedin.com/in/0xEsso">(0xEsso)</a>.</p><p>Happy hunting, and may you find your own critical bugs!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a740ff8b2d6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>