<?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 Tameem khalid on Medium]]></title>
        <description><![CDATA[Stories by Tameem khalid on Medium]]></description>
        <link>https://medium.com/@tameemkhalid?source=rss-2cc760ebc2df------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5aq6IRWdqzqFQy39tekJ_A@2x.jpeg</url>
            <title>Stories by Tameem khalid on Medium</title>
            <link>https://medium.com/@tameemkhalid?source=rss-2cc760ebc2df------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:23:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tameemkhalid/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[Playing With Password Reset Function]]></title>
            <link>https://medium.com/@tameemkhalid/playing-with-password-reset-function-9346bcd8e125?source=rss-2cc760ebc2df------2</link>
            <guid isPermaLink="false">https://medium.com/p/9346bcd8e125</guid>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[password-reset]]></category>
            <category><![CDATA[bugbounting]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Tameem khalid]]></dc:creator>
            <pubDate>Thu, 06 Jan 2022 08:59:19 GMT</pubDate>
            <atom:updated>2022-01-06T13:49:58.734Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*r0Cs4B52J6mVNAFqNXesSg.jpeg" /></figure><p>I’m Tameem Khalid, a cybersecurity researcher and profession as security analyst. This article is about a vulnerability that I was able to exploit and perform password reset poisoning.</p><h4>What Is Password Reset Poisoning?</h4><p>Password reset poisoning is a technique whereby an attacker manipulates a vulnerable website into generating a password reset link pointing to a domain under their control. This behaviour can be leveraged to steal the secret tokens required to reset arbitrary users’ passwords and, ultimately, compromise their accounts.</p><h4>Let’s Begin</h4><p>For the privacy of the application, let’s call it redacted.com as the domain. Like every web application, there was a password reset function. So I just started playing around with it.</p><p>Here is one of the amazing checklists that you can implement while hunting. <a href="https://github.com/harsh-bothra/HowToHunt">https://github.com/harsh-bothra/HowToHunt</a></p><p>After analysing the request, I just noticed one unnecessary parameter named “callback”. The request is like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*iay9r6ijNQp_VEIzml7xFg.jpeg" /><figcaption>Request for password reset</figcaption></figure><p>Let’s take a pause and look into it. And now you know what to do, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*BCc-3o-ed_VmkBuDpiKJPA.png" /><figcaption>manipulated request</figcaption></figure><p>Yes, I changed the “callback” parameter value to the Burp Collaborator payload and checked whether it was executed or not. And the result is like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2fviuBWud7OnYotVSfDx2A.png" /><figcaption>Result</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*cdOmL4OBa4wMzB3pzpYuaw.gif" /></figure><p>The Burp Collaborator payload was executed and replaced the password reset link along with the token. When the victim clicks this link, the password reset token will be delivered to the attacker’s server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QLAKbeqIgBlGZnJL788jMQ.png" /><figcaption>Attacker gets the password reset token!!</figcaption></figure><h4>Attack Scenario</h4><ol><li>The attacker obtains the victim’s email address or username, as required, and submits a password reset request on their behalf. When submitting the form, they intercept the resulting HTTP request and modify the “Callback” parameter so that it points to a domain that they control. For this example, we used Burp Collaborator.</li><li>The victim receives a genuine password reset email directly from the website. This seems to contain an ordinary link to reset their password and, crucially, contains a valid password reset token that is associated with their account. However, the domain name in the URL points to the attacker’s server:<br> <a href="https://7iq969dpiaezim94zc2qtknodfj57u.burpcollaborator.net/k1NMNAoPAUJA5U2NqvgejuAUvZJR182UJyA4MXJfLWtIMIUCtpZEMogQUstW">https://7iq969dpiaezim94zc2qtknodfj57u.burpcollaborator.net/k1NMNAoPAUJA5U2NqvgejuAUvZJR182UJyA4MXJfLWtIMIUCtpZEMogQUstW</a></li><li>If the victim clicks this link (or it is fetched in some other way, for example, by an antivirus scanner), the password reset token will be delivered to the attacker’s server.</li><li>The attacker can now visit the real URL for the vulnerable website and supply the victim’s stolen token via the corresponding parameter. They will then be able to reset the user’s password to whatever they like and log in to their account.</li></ol><h4>Conclusion</h4><p>Password Reset Poisoning is one of those attacks that appear very trivial and are very much on the practical side rather than the theoretical, often used as low-hanging fruit in bug bounty programmes. A web developer should consider creating a whitelist of trusted domains during the initial setup of the application.</p><h4>Timeline</h4><p>12 Dec 2021: Issue discovered and reported to Redacted</p><p>26 Dec 2021 : Rewarded $$$</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*oZPa0u-1U2e_rr3PDhCcIw.gif" /></figure><p>Connect Me On LinkedIn :<a href="https://www.linkedin.com/in/tameem-khalid/">https://www.linkedin.com/in/tameem-khalid/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9346bcd8e125" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Host Header Injection On Password Reset Functionality An Easy #P2]]></title>
            <link>https://medium.com/@tameemkhalid/host-header-injection-on-password-reset-functionality-an-easy-p2-5c6263c2e3d4?source=rss-2cc760ebc2df------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c6263c2e3d4</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Tameem khalid]]></dc:creator>
            <pubDate>Mon, 27 Sep 2021 07:08:04 GMT</pubDate>
            <atom:updated>2022-01-06T08:57:23.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2vwum6MAl7jb-2eW3pgznw.jpeg" /></figure><p>This article is about a vulnerability I was able to find in the BugCrowd private program.</p><p><strong>What is Host Header Injection ?</strong></p><p>Host Header Injection is an attack in which an attacker can manipulate the Host header and cause the application to behave in unexpected ways. Header simply specifies which web site should process the HTTP request. The web server uses the value of this header to dispatch the request to the specified website. In short if any malicious user is able to handle this header to their desired domain and if server is not validating it then it leads to host header injection.</p><p><strong>Why Host Header Attack Happens?</strong></p><p>It is a injection type of attack that is done on the HTTP Headers.</p><p>* HTTP Headers are dynamically generated by based on the input of the user. User input can be edited, or spoofed by attackers.It is accessible by everyone.</p><ul><li>If website fails to correctly validate or verify the HTTP Host headers.</li></ul><p><strong>What is impact of the Bug?</strong></p><p>· <strong>Web cache Poisoning:</strong> Attacker poisons web-cache of the website so anyone who visits the cached page gets infected</p><p>· <strong>Password Reset Poisoning: </strong>Application usually generate a secret token by using host header functionality. To create the password reset link they use domains mentioned in the host header and append it with the password reset token.</p><p><strong>Attack Scenario</strong></p><p>⦁ The attacker sends a reset password request to another user by modifying the Host Header in the request with any malicious site.<br>⦁ The user receives an email to reset the password, clicks the link and proceeds further with the malicious link.<br>⦁ By this way, an attacker can obtain valid password reset token for any user.</p><p>when the HOST name is changed from the password reset, there appears a request like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*AFxVJNYXkz2m4WgTTvA1SA.png" /><figcaption>Request For Password reset and change Host name to Malicious Host</figcaption></figure><p>Since we have changed the host to Attacker Host from redacted.com, there we might observe changes in our password reset token URL.</p><p>As stated above, the reset password URL changed and the URL looks like as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*4wnBuhqt5pp9n4qodlY-Qg.png" /><figcaption>Malicious Host is Reflected in Url. Now Victim will Click on the link.</figcaption></figure><p>The victim will receive the malicious link in their email, and, when clicked, will leak the user’s password reset link / token to the attacker, leading to full account takeover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*Vv-yCl5mv9YWfIlqSIk-Pw.png" /><figcaption>Attacker gets the password reset token!! Attacker can takeover the account!</figcaption></figure><h4>Conclusion</h4><p>Many application developers did not realize that the HTTP host header is accessible and controllable by all users. In an application security perspective, the input given by the user is always deceivable, and it is unsafe to trust. So, a web developer should consider host header issues as a serious ongoing threat, which must be inspected deeply. Moreover, we must implement the required mitigation measures to safeguard ourselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ikXch5v_boSYDfO62NQB9w.gif" /></figure><h4>Timeline</h4><p>08 May 2021: Issue discovered and reported to Redacted</p><p>21 May 2021 : 20 points #P2</p><p>28 June 2021 : Rewarded $1000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TwNf5cDNZ77oXE1-jjoJzw.png" /></figure><p>Connect Me On LinkedIn :<a href="https://www.linkedin.com/in/tameem-khalid/">https://www.linkedin.com/in/tameem-khalid/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c6263c2e3d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>