<?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 Joe on Medium]]></title>
        <description><![CDATA[Stories by Joe on Medium]]></description>
        <link>https://medium.com/@notJoe?source=rss-34f37866779e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*USrpBME9ImNNB95jmeHH1w.jpeg</url>
            <title>Stories by Joe on Medium</title>
            <link>https://medium.com/@notJoe?source=rss-34f37866779e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 15:20:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@notJoe/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[Account Takeover via OTP bypass]]></title>
            <link>https://medium.com/@notJoe/account-takeover-via-otp-bypass-f36ad555436c?source=rss-34f37866779e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f36ad555436c</guid>
            <dc:creator><![CDATA[Joe]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 21:40:37 GMT</pubDate>
            <atom:updated>2026-03-26T05:47:42.332Z</atom:updated>
            <content:encoded><![CDATA[<h3>About Me</h3><p>Hi I’m Joe a security researcher who likes hacking things</p><h3>Introduction</h3><p>While testing the <strong>password reset functionality</strong> of a web application, I discovered a critical misconfiguration in the <strong>OTP verification mechanism</strong> that allows a full <strong>Account Takeover (ATO)</strong>.</p><p>The root cause was improper binding between the <strong>OTP </strong>and the <strong>user account</strong>, which allowed an attacker to reuse a valid OTP generated for one account to reset the password of another account.</p><h3>OTP Usage in the Application</h3><p>The application relies on <strong>One-Time Passwords (OTP)</strong> to protect sensitive actions, including:</p><ul><li>Password reset</li><li>Account recovery</li><li>Other critical account-related actions</li></ul><p>At first glance, the OTP implementation appeared secure, as OTPs were rejected when reused directly across accounts.</p><p>However, deeper inspection revealed a serious logical flaw.</p><h3>Root Cause Analysis</h3><p>During interception of the OTP verification request, I noticed an additional parameter:</p><pre>{<br>  &quot;code&quot;: &quot;&lt;OTP_code&gt;&quot;,<br>  &quot;incidentID&quot;: &quot;&lt;incidentID_generated_by_the_website&gt;&quot;<br>}</pre><h3>Observation:</h3><ul><li>The <strong>incidentID</strong> is generated when the OTP is issued.</li><li>The backend validates the OTP <strong>only against the incidentID</strong>, not the user account.</li><li>There is <strong>no binding</strong> between: OTP ↔ User &amp; incidentID ↔ User</li></ul><p>This opens the door for OTP reuse across different accounts.</p><h3>Step-by-Step Exploitation</h3><ul><li><strong>Account A</strong> → Attacker</li><li><strong>Account B</strong> → Victim</li></ul><ol><li>Trigger <strong>Forgot Password</strong> for <strong>Account A</strong></li><li>OTP is sent to the attacker’s email</li><li>Intercept the OTP verification request</li><li>Save the <strong>incidentID</strong> associated with Account A</li><li>Trigger <strong>Forgot Password</strong> for <strong>Account B</strong></li><li>Enter the OTP received for Account A</li><li>Intercept the OTP verification request again</li><li>Replace the victim’s incidentID with the attacker’s incidentID</li><li>Send the modified request</li></ol><p><strong>Result:</strong><br> The OTP is accepted, and the password reset for <strong>Account B</strong> succeeds.</p><h3>Impact</h3><p>This vulnerability allows an attacker to:</p><ul><li>Take over <strong>any user account</strong></li><li>Reset passwords knowing <strong>only the victim’s email or username</strong></li><li>Fully bypass OTP-based account protection</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f36ad555436c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>