<?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 Sahaj Gautam on Medium]]></title>
        <description><![CDATA[Stories by Sahaj Gautam on Medium]]></description>
        <link>https://medium.com/@sahaj.gautam14?source=rss-ca9886edb464------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8ZK3iyqiQWYBDHG4Yjgu1Q.jpeg</url>
            <title>Stories by Sahaj Gautam on Medium</title>
            <link>https://medium.com/@sahaj.gautam14?source=rss-ca9886edb464------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:08:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sahaj.gautam14/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[0-Click Account Takeover Earned Me €900 Bounty]]></title>
            <link>https://medium.com/@sahaj.gautam14/0-click-account-takeover-earned-me-900-bounty-f5b3b6dbb606?source=rss-ca9886edb464------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5b3b6dbb606</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <dc:creator><![CDATA[Sahaj Gautam]]></dc:creator>
            <pubDate>Tue, 20 May 2025 05:05:27 GMT</pubDate>
            <atom:updated>2025-06-17T09:26:50.011Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*FfK6jOb8ereRG0r0YMLBdw.jpeg" /></figure><p><strong><em>Hey Community 👋</em></strong><em><br> I’m Sahaj, a beginner bug bounty hunter passionate about learning and improving with every report. This is my very first blog — not just about the €900 bounty, but the late nights, the fails, and the wins that got me here.</em></p><p><em>Before I show you how I landed the €900 0-click Account Takeover, let me share the failures and thinking that led me there. Let’s do this! </em>😈</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FfwoOoDZpEpdQewQdRR%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExOWpxeWp6cTFxaDFkeDV0MHNkYzk2d2lvNjFxOW1icWN4NXFhdHljeiZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2FfwoOoDZpEpdQewQdRR%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExcGlvOHBsOTJjYWhrMDhvcTdra21ieWV6azZ6MnB1enpiOTVwaHI4MyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FfwoOoDZpEpdQewQdRR%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="239" frameborder="0" scrolling="no"><a href="https://medium.com/media/54df38dbd848d3a95918b38fa4a799b3/href">https://medium.com/media/54df38dbd848d3a95918b38fa4a799b3/href</a></iframe><blockquote><strong>Target Overview</strong>: A popular car rental platform</blockquote><p>The target offers a wide range of car rental services, including economy to luxury vehicles, competitive pricing, express pick-up, and keyless car collection — all designed to make renting easy and convenient.</p><p>Like every bug hunter’s ritual 🕵️‍♂️, let’s just call it <strong>redacted.com</strong> for now. The site had the usual sign-up/login forms, along with the classic password reset feature — always a favorite playground for bug hunters :) In addition, it offered functionalities such as modifying user data, changing passwords from account settings , and viewing active, previous, and cancelled reservations — making it an even richer surface for testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*_ux_lwUTBXCZNGXmeWVvTw.png" /></figure><blockquote><strong>Initial Approach: </strong>Host Header Injection for Password Reset Link Poisoning</blockquote><p>Now shifting focus to Password Reset functionality — an often-overlooked area with critical security implications. When requesting a password reset link, I noticed that the link sent in the email included the <strong>Host header value</strong> at the beginning. That caught my attention.💡</p><p>One of my first instincts? Try the classic — <strong>Host Header Injection</strong>. My thought process was simple: If the application builds the password reset URL using the Host header from the request, then by manipulating it, I could craft a reset link pointing to <strong>my attacker-controlled domain</strong>.</p><p>So, I crafted the reset request, swapped the Host header with my attacker domain, and waited to see if the reset email would include evil domain. But no luck 😕. Then I tried adding an X-Forwarded-For header to manipulate the host… Still, nothing. Another dead end 😞</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*_zZFP5y2RSKu0qchXqhW_w.png" /><figcaption>POST password reset request</figcaption></figure><blockquote><strong><em>I tried some bypasses:</em></strong></blockquote><p><strong>1. Add X-Forwarded-Host header</strong></p><p>Host: redacted.com <br>X-Forwarded-Host: evil.com</p><p><strong>2. Inverted Host Pair</strong></p><p>Host: evil.com <br>X-Forwarded-Host: redacted.com</p><p><strong>3. XFF Swap</strong></p><p>Host: evil.com <br>X-Forwarded-For: redacted.com</p><p><strong>4. XFF Flip</strong></p><p>Host: redacted.com <br>X-Forwarded-For: evil.com</p><p><strong>5. Subdomain Trick 1</strong></p><p>Host: evil.com.redacted.com</p><p><strong>6. Subdomain Trick 2</strong></p><p>Host: redacted.com.evil.com</p><p><strong>7. Typical Host Header Injection Bypass</strong></p><p>POST /endpoint/ HTTP/1.1<br>Host: <a href="http://evil.com/">http://evil.com</a><br>==&gt; Response: 403, 404</p><p># Bypass:<br>POST /<a href="https://endpoint/">https://endpoint/</a> HTTP/1.1<br>Host: <a href="http://evil.com/">http://evil.com</a><br>==&gt; Response: 200, 302</p><p><strong>8. Burp Headers Edit</strong></p><p>Host: evil.com<br>X-Forwarded-Host: evil.com</p><p><strong>9. Slash Trick</strong></p><p>Host: evil.com/redacted.com</p><p><strong>10. Query Param Trick</strong></p><p>Host: redacted.com?.evil.com</p><p><strong>11. Unique Trick</strong></p><p>evilredacted.com</p><p><strong>12. Hash Encoding</strong></p><p>evil.com%23@redacted.com</p><p><strong>13. Percent Encoding</strong></p><p>evil.com%25%32%33@redacted.com</p><p><strong>14. Multiple Host Headers</strong></p><p>GET /admin.php HTTP/1.1<br>Host: redacted.com<br>Host: attacker.com</p><p><strong>15. Encoded Host Header</strong></p><p>GET /admin.php HTTP/1.1<br>Host: %74%61%72%67%65%74.com</p><p>I won’t lie — it stung a bit. After all that setup, seeing it fail kind of deflates you😫. But hey, that’s the nature of bug hunting. Not every shot hits, but every miss teaches you something.</p><p>You thought I’d give up? Nope — giving up has never been part of my plan. I’m just getting started. 💪</p><blockquote><strong>Now the real story begins:</strong> How I actually landed upon 0-Click Account Takeover</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxT39Db8zIOODTppk08%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExdGRxMmZodnBqOG5paXNpNXQxMDFhNHF3MWhwd3AzcXdjZDA5bm5tbSZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2FxT39Db8zIOODTppk08%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExbDZ3YXR5bGU0bGx6aTJyZ2YzM3FuYzdtNGlyenpkaXIyMzQxbG53bSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FxT39Db8zIOODTppk08%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/4deb378cb9c47b20eda2c23cf508d18d/href">https://medium.com/media/4deb378cb9c47b20eda2c23cf508d18d/href</a></iframe><p>I was going through my usual password reset checklist, testing different test cases. While requesting a reset link and capturing the request in Burp Suite during the password change, I noticed something curious — my email was being sent in the request body along with the new password, plus, there was an extra parameter containing a long, random string. (still no clue what that was for 🥴).</p><p>At first, I assumed it was some kind of verification or authenticity token making sure the right email was getting the password change. But turns out… it was just a useless param doing absolutely nothing 🫠. Then it hit me — what if I changed the email to someone else’s?</p><p>Here are the steps I followed to discover this vulnerability:</p><p><strong>Steps To Reproduce:</strong></p><ol><li>Create two accounts — one attacker account (e.g., Attacker@mail.com) in chrome, and one victim account (e.g., Victim@mail.com) in firefox.</li><li>On the attacker’s chrome browser, initiate a password reset request for the attacker’s email.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*Q7rcE5SzS9asTh_DT8rQKw.png" /></figure><p>3. You’ll receive the reset link — open it in the attacker’s browser and proceed to change the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*HjXn5TMj_yF4YriVH6H6HQ.png" /></figure><p>4. While submitting the new password, intercept the request with Burp Suite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*z_kbtr6gm7fj2JDxMhCK7Q.png" /><figcaption>Intercepted POST password reset request</figcaption></figure><p>5. In the intercepted request, change the email parameter from the attacker’s email to the victim’s email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*74LxXtS6fuIQ_2dgHEThlg.png" /><figcaption>Modified Request</figcaption></figure><p>6. Forwarded the modified request.</p><p>7. Without the server verifying whose email the password was being changed for, I got a <strong>200 OK</strong> response, with <strong>status: true</strong> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*7F_K63qXWZZA0gWJtd3qoQ.png" /><figcaption>Superb !!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*tvuOlMRLvAWV6_5I4I8LPg.png" /></figure><p>I then logged into the victim’s account using the new password we just set — and boom 💥, it worked! I was in. My reaction was the same as yours — 🤯</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FjquDWJfPUMCiI%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZWVqZDVvdGUzcHd4OTdjemExOXN0ZnI4ZWJuNzd0a2xsZW1kNDUzbyZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2FjquDWJfPUMCiI%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExb2sxNXl4ZjI3ZWJkM2FuNWE4NjR5ZDZjeGZ5YjN6cjRmenp4MnJncCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FjquDWJfPUMCiI%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="387" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee1cfa5146c0a339afd38c5954be6fe7/href">https://medium.com/media/ee1cfa5146c0a339afd38c5954be6fe7/href</a></iframe><p>Yes, it was <em>that</em> simple! 😲 I’m honestly amazed by how such an easy vulnerability popped up. This just proves how powerful a solid checklist is — you don’t have to skip or switch targets just because of a few failures. Keep digging, it <em>will</em> pay off! ✨</p><h4>Impact</h4><p>An attacker could reset the password of <strong>any registered user</strong> without access to their email or any interaction from the victim — leading to a <strong>complete account takeover</strong> with zero clicks. This compromises user data, privacy, and the overall trust in the platform.</p><h4><strong>Mitigation</strong></h4><p>Enforce strict server-side validation to ensure the reset token is bound to the correct user and never trust email values from the client side.</p><p>Sometimes, a small tweak is all it takes to escalate things to a full account takeover — and this one was a lucky catch I stumbled upon in just 5 minutes.🫡</p><p><em>A tiny oversight — like missing backend validation of the email parameter — can open the door to a full account takeover! 🚀</em></p><p>For more such writeups, follow me!! I’ll keep bringing fresh writeups to help us grow stronger together as a community. 🚀💥</p><p>Also, forgive me if I made any mistakes 😅</p><h4>Contact</h4><p>LinkedIn: <a href="https://www.linkedin.com/in/sahaj-gautam-1648771b3/">https://www.linkedin.com/in/sahaj-gautam-1648771b3/</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fw89ak63KNl0nJl80ig%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZ2tmb281cHNpbjhhOW12am00ejB5NXhmNGM3dGJzdHhnNDV1YnNwdSZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2Fw89ak63KNl0nJl80ig%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExeGkzNGEzMHRnNXd0NTF2NHE1cTI0a2VzMDBvNWgwb3dnazZubmhyaSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Fw89ak63KNl0nJl80ig%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="361" frameborder="0" scrolling="no"><a href="https://medium.com/media/f97f2dfd2da36a119b4c0b10c7795c32/href">https://medium.com/media/f97f2dfd2da36a119b4c0b10c7795c32/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5b3b6dbb606" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>