<?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 amen on Medium]]></title>
        <description><![CDATA[Stories by amen on Medium]]></description>
        <link>https://medium.com/@amenelsayed?source=rss-daecf810f492------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4eXAitkVB5XIT-H0H-OpuA.png</url>
            <title>Stories by amen on Medium</title>
            <link>https://medium.com/@amenelsayed?source=rss-daecf810f492------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:37:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amenelsayed/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[Zero-Click ATO: How a Single Accent Mark Led to Account Takeovers]]></title>
            <link>https://amenelsayed.medium.com/zero-click-ato-how-a-single-accent-mark-led-to-account-takeovers-6335a965a448?source=rss-daecf810f492------2</link>
            <guid isPermaLink="false">https://medium.com/p/6335a965a448</guid>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[amen]]></dc:creator>
            <pubDate>Tue, 05 May 2026 11:11:00 GMT</pubDate>
            <atom:updated>2026-05-05T11:11:51.920Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello hackers, Today I want to share a recent discovery that led to a critical Account Takeover (ATO) vulnerability on a popular platform. The bug required absolutely no user interaction and bypassed all authentication barriers.</p><p>A classic case of inconsistent Email Normalization, also known as Unicode Collision. Here is how a simple accent mark over a letter gave me a</p><h3>What is Unicode Collision?</h3><p>In simple terms, computers sometimes try to be “too smart.” When you enter a character like ó (with an accent), the backend might apply a normalization process and downcast it to its closest ASCII equivalent, which is the normal English letter o.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GSqC-895yZos3Vf3hs-aiQ.png" /></figure><p>This sounds harmless, right? But what happens when the authentication logic normalizes the email for a database lookup, but the email delivery system does not? That’s where the magic happens.</p><p>The target application X relies entirely on a passwordless login flow. You simply enter your email, grab the OTP sent to your inbox, and you are logged in.</p><p>Knowing this, I started wondering how their backend processes Internationalized Domain Names (IDNs) during this flow.</p><p>To test my theory, I set up a scenario targeting a user who is registered with the email victim@example.com. Instead of trying to bypass the OTP directly, I went to a domain registrar and bought a visually identical domain using a Unicode character. I registered exámple.com—notice the accent mark on the &#39;a&#39;.</p><p>Under the hood, the internet sees this domain as a Punycode string (like xn--exmple-qta.com), but to the naked eye, it looks like the perfect trap.</p><p>With my malicious domain ready, I went to the target’s login with OTP page and entered my spoofed email address: victim@exámple.com.</p><p>What happened next behind the scenes is exactly what makes this bug so dangerous.</p><p>First, the application’s session logic took my input and passed it through its normalization function. It stripped the accent mark, turning my input into the legitimate victim@example.com. It then searched the database, successfully found the victim&#39;s account, and happily generated a valid OTP.</p><p>But here is the fatal flaw: the email delivery service did <strong>not </strong>use that normalized version. It grabbed the <em>raw</em> input I originally provided. So, instead of sending the login code to the victim, the system dispatched the OTP straight to victim@ex<strong>á</strong>mple.com—which forwarded right into my attacker inbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IPcrLS56MfXp3oSkJszzqg.png" /></figure><p>Once I received the OTP in my inbox, I entered it on the login page and was instantly logged into the victim’s account. I had full access to all their private data. Since the app only relied on OTP, I could also change their primary email and lock them out permanently.</p><p>But it gets worse.</p><p>The target company also has connected assets (like a secondary app) that use a “Log in with X” Single Sign-On (SSO) feature.</p><p>Because I had full control over the main account, I simply clicked “Log in” on the secondary app and gained access there too. The most critical part is The secondary app allowed immediate, permanent deletion of the account with just two clicks, without asking for any further email verification.</p><p>Like most hunters, my default setup is Firefox routed through Burp Suite. In this environment, sending the raw UTF-8 payload (ó) happens naturally, and the exploit worked perfectly.</p><p>However, I tried reproducing the flow in Chrome and noticed the attack failed. Because Chromium-based browsers automatically convert IDN characters to Punycode (xn--...) <em>client-side</em> before the request even leaves the browser. If the server receives Punycode instead of the raw Unicode character, the normalization step <strong>never</strong> occurs.</p><p>I made sure to highlight this caveat in my report so the triager wouldn’t get a false negative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*jM85Z-pKkyKRRDnBlmBlzQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6335a965a448" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Logic Over Locks: How I Unlocked Premium Features on a Free Account]]></title>
            <link>https://amenelsayed.medium.com/logic-over-locks-how-i-unlocked-premium-features-on-a-free-account-7e7859527fe5?source=rss-daecf810f492------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e7859527fe5</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[web-security]]></category>
            <dc:creator><![CDATA[amen]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 22:06:19 GMT</pubDate>
            <atom:updated>2026-03-23T22:06:19.840Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why pay for Premium when you can just ask the API nicely?</h3><p>While testing a web app, I found a business logic flaw: a solid UI paywall protecting a premium feature, but a backend that blindly trusted incoming requests. Here is how a few minutes with Burp Suite unlocked the pro tier on a free account</p><p>When hunting for access control flaws, I always start by comparing two user roles:</p><ol><li><strong>The Pro Account</strong> — Fully upgraded, to capture how the premium feature works.</li><li><strong>The Free Account</strong> — Standard limited account, to see what is blocked.</li></ol><p>Targeting “Premium Feature X”, the free account showed a “Upgrade to Pro” popup. From a UI perspective, the feature was completely locked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8K3Pi5dCqJNJO6WG" /><figcaption>Photo by <a href="https://unsplash.com/@callmefred?utm_source=medium&amp;utm_medium=referral">Call Me Fred</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Now, the moment of truth. I switched to the <strong>Free Account</strong> in my browser (where the paywall was still staring me in the face). I took the captured : let&#39;s call it createPremiumContent request from the Pro account and moved it to <strong>Burp Repeater</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*7SxG-GK--XITTiJe_kqaTg.png" /></figure><p>The request contained:</p><ul><li>User inputs (e.g., text, metadata)</li><li>A unique user identifier (Id)</li><li>Session cookies</li></ul><p>I switched to the Free account. The UI still blocked me, but I didn’t need the UI. I sent the Pro account’s captured request to Burp Repeater and made two simple changes:</p><ol><li><strong>Session cookie:</strong> Swapped the Pro session with the Free session cookie.</li><li><strong>User ID:</strong> Swapped the Pro account’s Id with the Free account’s Id.</li></ol><p>then sent…</p><p>and BOOM! it works</p><p>Instead of a 403 Forbidden error, the server returned a <strong>200 OK</strong>.</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;createPremiumContent&quot;: {<br>      &quot;id&quot;: &quot;123456789&quot;,<br>      &quot;status&quot;: &quot;SUCCESS&quot;<br>    }<br>  }<br>}</pre><p>I refreshed the app on my Free account — and there it was: the premium feature, fully functional and saved to my profile, without spending a single cent.</p><p>This is a <strong>Broken Access Control (BAC)</strong>. The developers fell into the “Client-Side Security” trap.</p><ul><li><strong>The UI said:</strong> “No , pay first” (UX restriction).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*4mCLA9EuyIKLg-zFI723Dw.png" /></figure><ul><li><strong>The API said:</strong> “You have a valid session? Sure, come on in.” (No server-side authorization).</li></ul><p>The backend verified <em>who</em> I was (Authentication), but never checked <em>what</em> I was allowed to do (Authorization).</p><p>A “paywall” is just a visual barrier. The real question is always:</p><p>What does the backend actually allow?</p><p>Intercept requests. Replay them. Modify them.</p><p>Sometimes the door isn’t locked — it’s just hidden.</p><h3>Impact &amp; Remediation</h3><ul><li><strong>Business Impact:</strong> Revenue loss and feature devaluation, as any free user can bypass the paywall indefinitely.</li><li><strong>The Fix:</strong> The backend must be the ultimate source of truth. Enforce authorization at the resolver level by checking the user’s subscription status in the database before executing any sensitive mutation.</li></ul><p>Never trust the UI. Always capture the “locked” requests from a high-privilege account and replay them using a low-privilege session. If the backend doesn’t double-check the permissions, you’ve got a bug.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e7859527fe5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>