<?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 Cooper_Sun on Medium]]></title>
        <description><![CDATA[Stories by Cooper_Sun on Medium]]></description>
        <link>https://medium.com/@xcfour?source=rss-cbd0f545a4b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*14bYxLZLrxX6DtQJ.jpg</url>
            <title>Stories by Cooper_Sun on Medium</title>
            <link>https://medium.com/@xcfour?source=rss-cbd0f545a4b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 13:28:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xcfour/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[Bypassing Two-Factor Authentication]]></title>
            <link>https://medium.com/@xcfour/bypassing-two-factor-authentication-bc58cb7c0bae?source=rss-cbd0f545a4b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc58cb7c0bae</guid>
            <dc:creator><![CDATA[Cooper_Sun]]></dc:creator>
            <pubDate>Thu, 23 Sep 2021 17:11:37 GMT</pubDate>
            <atom:updated>2021-09-23T17:11:37.544Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello readers,</p><p>Today, I’ll be sharing some simple and easy ways to bypass Two-Factor Authentication.</p><p>So, let’s begin with the basics!</p><h3>What is 2FA?</h3><blockquote>Multi-Factor Authentication (MFA) often known as Two-Factor Authentication (2FA) is an added layer of protection added to an application in order to enhance the overall security of the user’s account</blockquote><h3>How does two-factor authentication work?</h3><p>Enabling two-factor authentication varies depending on the specific application or vendor. However, two-factor authentication processes involve the same general, multistep process:</p><ol><li>The user is prompted to log in by the application or the website.</li><li>The user enters what their credentials. This is usually the username and password.</li><li>The site then prompts the initiation of the second verification step. The application invokes a 2FA request, asking the user to input and verify the identity for a second time. This is different from the password.</li><li>Then, the user must enter a one-time code that was generated during the previous step</li><li>After providing both factors (password + OTP), the user is authenticated and granted access to the application or website.</li></ol><p>Now, in such a process, even if an attacker does obtain the victim’s password. It becomes a challenge to further crack the second step in the verification process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A1AI_YlvIY3-Amk6" /></figure><p>Today, we will discuss about some 2FA bypass techniques and how they can be performed.</p><h4>Simple 2FA Bypass by Forceful Browsing:</h4><p>At times, the implementation of two-factor authentication is flawed to the point where it can be bypassed entirely. If the user is first prompted to enter a password, and then prompted to enter a verification code on a separate page, the user is effectively in a “logged in” state before they have entered the verification code.</p><p>In such a case, try to directly navigate to a URL that only a logged in user can access. Sometimes, you will observe that the website doesn’t actually maintain any checks on whether the second step was completed or not.</p><h4>Missing integrity checks on OTP:</h4><p>Often, you will notice that the application is simply checking for a valid OTP but doesn’t check who it is valid for (ie. which user)</p><p>To exploit this perform the following steps:</p><ol><li><em>As an attacker, request a valid OTP from your account.</em></li><li>Now use this OTP to login as the victim</li><li>If insufficient integrity checks are present, the website won’t adequately verify that the same user is completing the second step.</li></ol><p><strong>Reusing OTP Code:</strong></p><p>Sometimes the application will not invalidate a previously used OTP. This occurs if the expiration time is considerably longer. An attacker can exploit this by brute-forcing for a valid OTP.</p><p><strong>OTP code being leaked in the Response:</strong></p><p>The application might leak the OTP in the response body sometimes, when a user initiated the OTP request. Always check the response body to see if the OTP code is being leaked there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc58cb7c0bae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Password requirement Bypass on adding Phone Number]]></title>
            <link>https://medium.com/@xcfour/password-requirement-bypass-on-adding-phone-number-cf2c24bcd315?source=rss-cbd0f545a4b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf2c24bcd315</guid>
            <dc:creator><![CDATA[Cooper_Sun]]></dc:creator>
            <pubDate>Thu, 23 Sep 2021 17:11:12 GMT</pubDate>
            <atom:updated>2021-09-23T17:11:12.330Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello readers,</p><p>Today, I’ll be sharing how I was able to bypass the password requirement when adding/updating the Mobile-No. in an account.</p><p>The website I was testing on is a big MNC and has over a Billion users on their platform.</p><p>This has been, by far, my most favorite bug and I had always dreamt of finding a valid issue on this platform. I’ll be referring to this website as redacted.com</p><p>So let’s start.</p><p>The website allowed users to create an account with Email as well as Phone Number.</p><p>So I created an account using my email and started browsing through the website as a regular user.</p><p>I noticed that I hadn’t yet added my mobile number to my profile.</p><p>So I decided to add my number to my account.</p><p>While adding the number, I noticed that the website required the user to enter their <strong>Password </strong>in order to add/update the phone number. Here, my hacker personality kicked in and I thought of playing around with this feature.</p><p>After trying a few test cases there, no success was achieved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/0*qyIk6ndzVxJa1Ks7.gif" /></figure><p>After sitting idle for a few minutes, an idea suddenly struck me.</p><p>I remembered that when a user tries to performs any malicious task or enters any invalid input, the website redirects the user to perform a basic check. This check is performed to verify users (if it’s a bot).</p><p>I realized that this endpoint didn’t have proper verification checks. So I started doing unusual activities on the website (like pressing the upvote button on a post repeatedly, posting and deleting things regularly in a short period of time), but this time too, there was no success.</p><p>At this point I almost thought of giving up and in the meantime I messaged a fellow hacker (who wasn’t in my friend list on the website) and an error was reflected saying that the message couldn’t be delivered. This happened because the application didn’t allow any user to text members who weren’t in his friend list.</p><p>I repeated this task again and again until the <strong>Security-Check popped up!</strong></p><p>The security check asked me to verify my number to prove that I am a valid user and not a robot 😛</p><p>In terms of verification, the website asked me to verify my Mobile number.</p><p>I provided my number and an OTP was received.</p><p>After providing the OTP, my phone number got successfully verified and it was added to my account without the need of the password.</p><p>The password was a <strong>strict security requirement</strong> to add/update the mobile number in the account, but by exploiting this vulnerability, I was successfully able to bypass the strict password requirement.</p><p>I quickly filed a report and it was triaged and paid 💜</p><p><strong>Timeline:</strong></p><blockquote><em>Report submitted: Apr 27th, 2021</em></blockquote><blockquote><em>Triaged: Apr 28th, 2021</em></blockquote><blockquote><em>Bounty paid: $700</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf2c24bcd315" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zero Click Account Takeover]]></title>
            <link>https://medium.com/@xcfour/zero-click-account-takeover-5b60f7cdb12d?source=rss-cbd0f545a4b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b60f7cdb12d</guid>
            <dc:creator><![CDATA[Cooper_Sun]]></dc:creator>
            <pubDate>Thu, 23 Sep 2021 17:10:41 GMT</pubDate>
            <atom:updated>2021-09-23T17:13:14.754Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello readers,</p><p>Today, I’ll be sharing how I was able to perform an account takeover using Facebook login.</p><p>Everyone has a dream of finding an account takeover in their Infosec journey and the day finally arrived when I was able to takeover the accounts of any User/Employee on the target website. Let’s name this App as redacted.com</p><p>So let’s begin.</p><p>The application I was testing on dealt in Education and Certifications. So, I started testing on the IOS application of the target organization.</p><p>Here I noticed that the application allowed users to create an account using Social Logins like: Facebook, Google, Apple etc.</p><p>So I started testing the Oauth flow of the application. My major focus here was on the Facebook login.</p><p>While I was testing, I noticed that application was trusting the data received from Facebook. This included <em>Name, email, DOB</em> etc. The application was automatically verifying it.</p><p>So I just needed to find a way to <strong>edit my email in the request</strong> and an idea popped into my head.</p><p><strong><em>What if I sign up with a mobile number?</em></strong></p><p><strong><em>Would the application ask the user to provide their email address since it didn’t receive the data through Facebook?</em></strong></p><p><strong>It happened exactly as I thought!!</strong></p><p>So I signed up on application through Facebook (The Facebook account was created using phone number) and because the application couldn’t retrieve the user’s email, a dialog box popped-up prompting the user to enter an email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*Vm_N2EpVualUn5GGzK043Q.jpeg" /></figure><p>In the dialog box, I provided the victim’s email.</p><p>The request for the following action looked like:</p><pre>POST /oauth2/v1/token HTTP/1.1<br>Host: redacted.com<br>Accept: */*<br>X-RedactedMobile-UDID: redacted<br>X-redacted-Device-Token: redacted<br>X-redacted-Mobile-Signature: redacted<br>Accept-Language: en<br>Accept-Encoding: gzip, deflate<br>Content-Type: application/x-www-form-urlencoded<br>Content-Length: 446<br>User-Agent: redacted-Mobile-iOS-iPhone/3.20.1-25355/14.2<br>Connection: close<br>Cookie: redacted<br>auth_type=facebook&amp;backup_email=victim@test.com&amp;client_id=redacted&amp;client_secret=redacted&amp;grant_type=thirdparty&amp;nonce=redacted&amp;timestamp=redacted&amp;token=redacted</pre><p>As can be seen in the above request, the <strong>backup_email </strong>parameter is<strong> </strong>vulnerable here.</p><p>An attacker can provide the victim’s email in this parameter and it will directly log him into the victim’s account.</p><p>All users and employees were vulnerable to this attack.</p><p>The vulnerability existed here because the application did not cross-check the Social login email with the email id of already registered users.</p><p>I quickly reported this issue and it was triaged as <strong>Critical.</strong></p><p><strong>Timeline:</strong></p><blockquote><strong><em>Bug Reported: </em></strong><em>3rd January 2021</em><strong><em><br>Bug Triaged: </em></strong><em>4th January 2021</em><strong><em><br>Bounty Awarded: </em></strong><em>$2000</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b60f7cdb12d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>