<?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 Abdelrahman Sayed on Medium]]></title>
        <description><![CDATA[Stories by Abdelrahman Sayed on Medium]]></description>
        <link>https://medium.com/@0xboody?source=rss-4cf8eb35b71f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GKlpAFN_LNbe8DxagZf8kw.jpeg</url>
            <title>Stories by Abdelrahman Sayed on Medium</title>
            <link>https://medium.com/@0xboody?source=rss-4cf8eb35b71f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:20:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xboody/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[Exploiting Password Reset Link After Email Change]]></title>
            <link>https://medium.com/@0xboody/exploiting-password-reset-link-after-email-change-17fe2babc01e?source=rss-4cf8eb35b71f------2</link>
            <guid isPermaLink="false">https://medium.com/p/17fe2babc01e</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Abdelrahman Sayed]]></dc:creator>
            <pubDate>Mon, 23 Dec 2024 12:00:39 GMT</pubDate>
            <atom:updated>2024-12-23T12:02:14.880Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>الحمدُ للهِ حمدًا كثيرًا طيِّبًا مُباركًا فيه</strong></p><p>I’m happy to share my first bug in an external bug bounty program. This discovery highlights a high issue in how password reset links and email changes were managed. At its core, a password reset process must always validate the current email address to ensure account security. Let’s dive into the steps to reproduce this vulnerability and understand its impact.</p><h3>Steps to Reproduce</h3><p>First, I created an account with the email user1@gmail.com on the target application. After completing the registration process, I logged out of this account</p><p>Next, I initiated a password reset for user1@gmail.com using the application&#39;s &quot;Forgot Password&quot; feature. This action triggered a password reset email containing a link to reset the account password. Importantly, I did not click on this link at this stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9piCJBPIbsqXtprfm5mHuw.png" /><figcaption>user1@gmail.com inbox</figcaption></figure><p>I logged back into the account using the original credentials. And I navigated to the account settings and changed the email address from user1@gmail.com to <a href="/service/mailto:user2@gmail.com">user2@gmail.com</a></p><p>I returned to the password reset email originally sent to user1@gmail.com</p><p>Clicking the reset link allowed me to reset the password for the account, even though the account email had been changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YM6Zv83oMkk2rQ71pietAA.png" /><figcaption>Add new password</figcaption></figure><p>I set a new password, thereby gaining control over the account</p><h3>Impact</h3><p>When a user requests a password reset, they receive a link via email to set a new password. This link is designed to be a single-use token with a limited validity period. However, if this link remains valid even after the user’s email is changed, several risks arise:</p><ol><li><strong>Persistent Access</strong>: An attacker with access to an old reset link can use it indefinitely if it doesn’t expire, even after the user’s email has been updated.</li><li><strong>Account Takeover</strong>: The attacker can reset the password, lock out the legitimate user, and access sensitive information or perform malicious activities.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17fe2babc01e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>