<?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 ohmyleg on Medium]]></title>
        <description><![CDATA[Stories by ohmyleg on Medium]]></description>
        <link>https://medium.com/@ohmyleg_?source=rss-d54accc0ae42------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*74ULcZpd2qjIv5GG</url>
            <title>Stories by ohmyleg on Medium</title>
            <link>https://medium.com/@ohmyleg_?source=rss-d54accc0ae42------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:30:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ohmyleg_/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[How a Small Validation Flaw Led to a 0-Click Account Takeover]]></title>
            <link>https://medium.com/@ohmyleg_/how-a-small-validation-flaw-led-to-a-0-click-account-takeover-4fa944dce03e?source=rss-d54accc0ae42------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fa944dce03e</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[ohmyleg]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 15:07:49 GMT</pubDate>
            <atom:updated>2026-04-25T15:11:34.794Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5iaAl8a-7E-qO1XyPx0eXA.png" /></figure><p>Bug bounty hunting, for me, is mostly about understanding how applications handle authentication. Login, registration, password reset. Things that look normal on the surface often hide interesting behavior underneath.</p><p>In this case, everything started from something very small. At first, it did not look important. But after digging a bit deeper, it turned into a full account takeover without any interaction from the victim.</p><h3><strong>Getting Started</strong></h3><p>The target had a pretty standard authentication setup:</p><ul><li>Email and password login</li><li>Password reset protected by reCAPTCHA</li><li>Google OAuth login</li></ul><p>I started as usual by opening Burp Suite, intercepting requests, and observing how the application behaves under different conditions.</p><p>At first, nothing seemed unusual.</p><h3>Testing the Password Reset Flow</h3><p>I began with the password reset feature. My goal was simple. I wanted to see how the system reacts when validation fails.</p><p>So I modified the request and corrupted the recaptcha_token</p><p>The server responded with an error, which was expected.</p><p>But in that same response, I noticed something I did not expect:</p><p>a state_token was still returned</p><p>That immediately caught my attention.</p><p>Normally, when validation fails, the system should not return any token that can be reused.</p><p>I decided to save that token and continue testing.</p><h3>Moving to the OAuth Flow</h3><p>Next, I tested the Google OAuth login.</p><p>The flow was standard:</p><ul><li>Redirect to Google</li><li>Authenticate</li><li>Return to the application with a callback</li></ul><p>In the callback request, I saw several parameters such as:</p><ul><li>state_token</li><li>Registration-related parameters</li><li>Email hint</li></ul><p>At this point, I remembered the token I got earlier.</p><p>I started wondering if that token could be reused here.</p><h3>Combining the Flows</h3><p>I initiated the OAuth login using my own account.</p><p>After authentication, I intercepted the callback request.</p><p>Then I tried something simple:</p><ul><li>Replaced the state_token with the one obtained from the password reset flow</li><li>Adjusted the parameters to continue the registration flow</li><li>Modified the email hint</li></ul><p>There was no complex payload involved. Just a few parameter changes.</p><h3>Unexpected Behavior</h3><p>The modified request did not immediately succeed. The application returned an error and asked me to restart the process.</p><p>So I clicked <strong>Start over</strong>.</p><p>This is where things got interesting.</p><p>I was redirected to a registration page.</p><p>And the email field was already filled.</p><blockquote>Not with my email, but with the victim’s email</blockquote><p>At that point, it became clear that the system was trusting the state_token to determine user context.</p><h3>Completing the Flow</h3><p>From there, I continued as if it was a normal registration:</p><ul><li>Entered a password</li><li>Submitted the form</li></ul><p>There was no additional verification:</p><ul><li>No email confirmation</li><li>No OTP</li><li>No identity check</li></ul><p>The process completed successfully.</p><p>And I was logged in as the victim.</p><h3>Impact</h3><p>Without any interaction from the victim, without knowing their password, and without accessing their email, I was able to gain a valid session.</p><p>This qualifies as:</p><blockquote>0-click Account Takeover</blockquote><h3><strong>Why This Happened</strong></h3><p>After analyzing the behavior, the issue came from a combination of problems:</p><ul><li>The password reset flow returned a valid state_token even when validation failed</li><li>That token could be reused in another flow</li><li>The OAuth flow did not properly validate whether the token matched the authenticated user</li><li>The system relied on client-controlled parameters to determine identity</li></ul><p>Individually, these issues might not seem critical.</p><p>But when combined, they led to a complete authentication bypass.</p><h3>Final Thoughts</h3><p>This finding did not require advanced techniques.</p><p>It started from a simple observation:</p><blockquote>a token returned when it should not have been</blockquote><p>From there, everything slowly connected.</p><p>And what looked like a small issue turned into something much more impactful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fa944dce03e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>