<?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 Kanhaiya Kumar Singh on Medium]]></title>
        <description><![CDATA[Stories by Kanhaiya Kumar Singh on Medium]]></description>
        <link>https://medium.com/@rat010?source=rss-5082aa0ea179------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9_xcKVh8I2QmewF2zgJNTg.jpeg</url>
            <title>Stories by Kanhaiya Kumar Singh on Medium</title>
            <link>https://medium.com/@rat010?source=rss-5082aa0ea179------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:55:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rat010/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 OTP Verification in a Signup Page]]></title>
            <link>https://medium.com/@rat010/bypassing-otp-verification-in-a-signup-page-13976f724017?source=rss-5082aa0ea179------2</link>
            <guid isPermaLink="false">https://medium.com/p/13976f724017</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[web-app-testing]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <dc:creator><![CDATA[Kanhaiya Kumar Singh]]></dc:creator>
            <pubDate>Thu, 25 Jul 2024 06:05:54 GMT</pubDate>
            <atom:updated>2024-07-25T06:05:54.771Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In the world of web security, even the smallest vulnerability can lead to significant breaches. Today, I’m sharing an intriguing discovery I made during my bug bounty— a critical OTP bypass vulnerability on a website’s signup page. This bug allowed bypassing the email verification step, compromising the integrity of the signup process.</p><h3><strong>The Vulnerability</strong></h3><blockquote>The issue lay within the OTP (One-Time Password) verification mechanism used during user registration. Here’s a step-by-step walkthrough of how I found and exploited this vulnerability:</blockquote><ol><li><strong>Filling Out the Signup Form</strong></li></ol><p>I began with filling out the signup form with necessary details such as my email, name, mobile number, and country. After submitting the form, the website sent a One-Time Password (OTP) to my email address for verification.</p><p>2. <strong>Intercepting the Request</strong></p><p>Using Burp Suite, I intercepted the signup request and examined the response. Here’s what the response looked like:</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;genericOTP&quot;: {<br>      &quot;channel&quot;: &quot;email&quot;,<br>      &quot;email&quot;: &quot;test123@gmail.com&quot;,<br>      &quot;requestStatus&quot;: &quot;Successful&quot;,<br>      &quot;referenceId&quot;: &quot;C3917417C8D82C2504ABA54EE055D4564A942F35&quot;,<br>      &quot;errors&quot;: null,<br>      &quot;__typename&quot;: &quot;GenericOTPOutput&quot;<br>    }<br>  }<br>}</pre><p>The response contained a referenceId, which seemed crucial for the OTP validation process.</p><p>3. <strong>Testing OTP Validation</strong></p><p>Next, I tested the website response with an incorrect OTP by capturing the request. Here’s the response for an incorrect OTP:</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;validateGenericOTP&quot;: {<br>      &quot;referenceId&quot;: null,<br>      &quot;valid&quot;: null,<br>      &quot;errors&quot;: [<br>        {<br>          &quot;code&quot;: &quot;1116&quot;,<br>          &quot;name&quot;: &quot;error&quot;,<br>          &quot;errorInInputPath&quot;: null,<br>          &quot;description&quot;: &quot;Sorry, this PIN is incorrect. Please use ‘resend PIN’ to receive a new PIN.&quot;,<br>          &quot;__typename&quot;: &quot;GenericErrorOutput&quot;<br>        }<br>      ],<br>      &quot;__typename&quot;: &quot;ValidateGenericOTPOutput&quot;<br>    }<br>  }<br>}</pre><p>The website correctly identified the incorrect OTP and returned an error message.</p><p>4. <strong>Valid OTP Response</strong></p><p>When I entered the correct OTP, the response was:</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;validateGenericOTP&quot;: {<br>      &quot;referenceId&quot;: &quot;C3917417C8D82C2504ABA54EE055D4564A942F35&quot;,<br>      &quot;valid&quot;: &quot;true&quot;,<br>      &quot;errors&quot;: null,<br>      &quot;__typename&quot;: &quot;ValidateGenericOTPOutput&quot;<br>    }<br>  }<br>}</pre><p>Notably, the referenceId remained the same as in the initial OTP request.</p><p>5. <strong>Exploiting the Flaw</strong></p><p>I observe that the referenceId did not change between OTP requests. Here’s how I exploited this flaw:</p><ul><li>I filled the signup form again, intercepted the request, and saved the new referenceId.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gFOVRUgc1YfDR6ai4EzvWA.png" /></figure><ul><li>I then attempted to verify with an incorrect OTP, captured the request, and replaced the referenceId in the error response with the valid referenceId from the previous request.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I1uV28mSZEW0vD0Z3-vXmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PssrSXe1eEZMILcTKyam0A.png" /></figure><ul><li>Forwarding this modified request allowed me to bypass the OTP verification. <strong><em>Thank You!</em></strong></li></ul><p><strong><em>Twitter: @</em></strong><a href="https://twitter.com/rat760">rat760</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13976f724017" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Password Confirmation Bypass When Changing Email Address]]></title>
            <link>https://medium.com/@rat010/password-confirmation-bypass-when-changing-email-address-d82d24d22021?source=rss-5082aa0ea179------2</link>
            <guid isPermaLink="false">https://medium.com/p/d82d24d22021</guid>
            <category><![CDATA[bug-buonty]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Kanhaiya Kumar Singh]]></dc:creator>
            <pubDate>Fri, 10 Jul 2020 01:56:03 GMT</pubDate>
            <atom:updated>2020-07-10T01:56:03.392Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Everyone, I am <strong>Kanhaiya Kumar Singh, </strong>I’m here again with new write-ups on bypassing password confirmation when changing email address.</p><p>Pardon me if there are any mistakes from my side.<br>So let’s get started..!</p><p><strong>About the vulnerability :<br></strong>First of all we call our target as example.com. When a user change his email in example.com they ask please enter your password and after entering correct password then they give permission to change the email while entering wrong password they showing an error.</p><p><strong>Steps to Reproduce :</strong></p><ol><li>First i entered the correct password and capture the request and check that response. Response look like.</li></ol><p>{“id”:306438022,”email”:”sbx63282@bcaoo.com”,”full_name”:”Kanhaiya”,”profile_picture”:null,”language”:”en”,”transfer_default_expiry”:60344800,”default_recipient_email”:”sbx63282@bcaoo.com”,”receiving_email_confirmed”:false,”is_verified”:false,”hide_profile_email”:true,”has_skipped_verification”:false,”onboarded”:false,”otp_enabled”:false,”otp_enabled_at”:null,”plan_tier”:”free”,”memberships”:[{“id”:3067919,”storage_full”:false,”role”:”owner”,”account”:{“id”:3078002,”active_subscription”:true,”storage_limit”:1099511627776,”transfer_limit”:2147483648,”storage_used”:0,”subscription”:{“id”:1883365,”ends_at”:”2021–04–03T19:24:01.000Z”,”status”:”active”}}}]}</p><p>2. After that again i capture that request with wrong password and response look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahzIGK1IvGYJEHeVooBf7g.png" /></figure><p>3. Now the challenging part for me is how to find user <strong>id</strong> and <strong>transfer_ default_id</strong> like that stuff of that victim account. After checking and spending some time, i got and idea let’s check the source code of the victim profile. Boom…!</p><p>4. After checking the source code of that victim profile page i got lot’s of information about victim’s account like <strong>user id</strong>, <strong>email</strong>, <strong>full_name, transfer_default_expiry</strong> like that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*POqfTeN3kIlKs6s9JgFrRA.png" /></figure><p>5. Now i replace one by one all victim information with my correct response and forward that request.</p><p>6. But after waiting of five minute i don’t receive any email like Verify your email.</p><p>7. Everything works fine but suddenly what happened.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F9Y5BbDSkSTiY8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F9Y5BbDSkSTiY8%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F9Y5BbDSkSTiY8%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="304" frameborder="0" scrolling="no"><a href="https://medium.com/media/e13cc3d05fc4c58466f791d2b5f7b1c1/href">https://medium.com/media/e13cc3d05fc4c58466f791d2b5f7b1c1/href</a></iframe><p>8. I notice there is an option for <strong>request a new one</strong> and after requesting i got one mail in my email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*oKPgMiDMzxlbgQGB-GqyVw.png" /></figure><p>9. After confirming email changed successfully.</p><p><strong>Timeline:<br>Bug Reported: </strong>3 April 2020<br><strong>Bug Triaged:</strong> 9 April 2020<br><strong>Bounty Rewarded:</strong> $xxx</p><p>I hope you enjoyed this reading..!</p><p><strong>Thank You!<br>~Kanhaiya Kumar Singh </strong>( <a href="https://twitter.com/rat760">https://twitter.com/rat760</a> )</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d82d24d22021" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OTP Verification Bypass]]></title>
            <link>https://medium.com/@rat010/otp-verification-bypass-ee17d68f8425?source=rss-5082aa0ea179------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee17d68f8425</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[otp-bypass]]></category>
            <category><![CDATA[bug-hunting-poc]]></category>
            <dc:creator><![CDATA[Kanhaiya Kumar Singh]]></dc:creator>
            <pubDate>Fri, 17 Apr 2020 04:33:02 GMT</pubDate>
            <atom:updated>2020-04-17T04:33:02.124Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello guys, I am <strong>Kanhaiya Kumar Singh</strong> and this is my first write-up about my finding on OTP Bypass.</p><p><strong>Description Of Vulnerability :</strong></p><p>First of all let’s assume Website is example.com and this is the Simplest Bug (Vulnerability) that i found. When i created an account in example.com i received one OTP in my email id for verifying email. When i entered the correct OTP and checking the Response to this Request. Response code is very simple <strong>HTTP/1.1 200 Created</strong> and <strong>{} </strong>then i think let’s bypass<strong> </strong>OTP Verification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*YiC3ZamSDBDLPhWjMKJUWg.png" /></figure><p><strong>Steps To Reproduce :</strong></p><ol><li>Create an account using abc123@gmail.com.</li><li>One OTP Sent into abc123@gmail.com email id.</li><li>Paste that correct OTP and Capture the Request into Burp. Now right click on the Request and click on <strong>Do Intercept &gt;Response To This Request</strong> .</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*K4ckWewGXOo04jfmden8EA.png" /></figure><p>4. This is the response code.</p><p>5. Now again create one account victim123@gmail.com.</p><p>6. Again one OTP sent into victim123@gmail.com email id.</p><p>7. But i don’t have any access to Victim email account. Let’s Bypass OTP Verification.</p><p>8. Enter any wrong OTP and capture the request into Burp. Now right click on the Request and click on <strong>Do Intercept &gt;Response To This Request</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*z28D-ABUWPNj5rkyWPK4Qg.png" /></figure><p>9. See the response there is an error message <strong>HTTP/1.1 400 Bad Request</strong> and <strong>{“error”: “user_not_verified”}</strong></p><p>10. Now replace that error message with this <strong>HTTP/1.1 200 Created</strong> and <strong>{}</strong></p><p>11. Boom Account Verified Successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*FduDTO2dbB4o_I5hC2yGvA.png" /></figure><p><strong>Timeline:<br>Bug Reported: </strong>5 February 2020<br><strong>Bug Triaged:</strong> 6 February 2020<br><strong>Bounty Rewarded: </strong>€ xxx</p><p>I hope you enjoyed this reading.</p><p><strong>Thank You!<br>~Kanhaiya Kumar Singh </strong>(<a href="https://twitter.com/rat760">https://twitter.com/rat760</a>)</p><p>Follow me on Twitter</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee17d68f8425" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>