<?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 Swati Choudhary on Medium]]></title>
        <description><![CDATA[Stories by Swati Choudhary on Medium]]></description>
        <link>https://medium.com/@at0625309?source=rss-3466ff3032da------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Swati Choudhary on Medium</title>
            <link>https://medium.com/@at0625309?source=rss-3466ff3032da------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:54:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@at0625309/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[First Bug Report, First Duplicate. What a Way to Start!]]></title>
            <link>https://medium.com/@at0625309/first-bug-report-first-duplicate-what-a-way-to-start-1cd252c44f99?source=rss-3466ff3032da------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cd252c44f99</guid>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Swati Choudhary]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 15:55:18 GMT</pubDate>
            <atom:updated>2026-11-28T15:55:18.327Z</atom:updated>
            <content:encoded><![CDATA[<p>I found something suspicious, got excited, investigated it, and submitted my first bug bounty report.</p><p>I was already imagining the satisfaction of my first accepted report.</p><p>Instead, I got one word: Duplicate.</p><p>Not quite the debut I had planned. Here’s the story.</p><p>While testing a web application, I came across what appeared to be an authentication-related endpoint.</p><p>I started experimenting with the “Origin” header using Burp Suite. I modified its value and noticed something interesting: the server was reflecting my supplied Origin in the response.</p><p>After a bit of testing, I suspected that the application was using a weak “startsWith()” check to validate origins instead of properly validating the hostname.</p><p>For example, if the application trusted origins beginning with:</p><p><a href="https://targetdomain.com/">“https://targetdomain.com</a>&quot;</p><p>then an origin like:</p><p><a href="https://targetdomain.com.attacker.com/">“https://targetdomain.com.attacker.com</a>&quot;</p><p>could potentially pass that check, even though it belongs to an entirely different domain.</p><p>The response included:</p><pre>Acess-Control-Allow-Origin: https://targetdomain.com.attacker.com<br>Access-Control-Allow-Credentials: true</pre><p>That caught my attention.</p><p>I decided to investigate further. One of the possibilities I explored was subdomain takeover, thinking an unclaimed subdomain might provide another way to exploit the weak origin validation.</p><p>Unfortunately, I couldn’t find a takeover candidate.</p><p>Still, the behaviour looked suspicious enough to investigate further, so I decided to submit a report to HackerOne.</p><p>And then came the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3rqSarbD62I7M4EVk7kXoA.jpeg" /></figure><p>My first bug bounty submission, and someone had already reported it. Not exactly the start I had imagined!</p><p>Looking Back</p><p>A couple of things I’d approach differently now:</p><p>-<strong> Excitement isn’t impact</strong>. Seeing the Origin reflected along with “Access-Control-Allow-Credentials: true” got me excited, but I hadn’t established what an attacker could actually achieve. The important question wasn’t just whether the server reflected an origin. Could an attacker-controlled website make an authenticated request and read sensitive information from the response? I hadn’t proved that end-to-end.</p><p>-<strong> Not every lead turns into a finding</strong>. I explored the possibility of subdomain takeover, but it didn’t lead anywhere. Looking back, I could have spent more time understanding the actual impact of the CORS behaviour instead of focusing on one possible attack path.</p><p><strong>Final Thoughts</strong></p><p>Well, that’s how my first bug bounty submission went.</p><p>No bounty, no acceptance — just a duplicate notification and, somehow, a whole article out of it.</p><p>I guess not every bug bounty story needs a happy ending. Sometimes, all you get is a good story to tell.</p><p>Anyway, thought I’d share this little experience here. Hope you enjoyed reading it.</p><p>See you around!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cd252c44f99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When ‘Forgot Password’ Becomes ‘Found Account Takeover’ — Part 1: Identification]]></title>
            <link>https://medium.com/@at0625309/when-forgot-password-becomes-found-account-takeover-part-1-identification-46578b0afbc2?source=rss-3466ff3032da------2</link>
            <guid isPermaLink="false">https://medium.com/p/46578b0afbc2</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Swati Choudhary]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 09:17:47 GMT</pubDate>
            <atom:updated>2026-11-26T09:17:47.373Z</atom:updated>
            <content:encoded><![CDATA[<p>Enter your email, get a link, set a new password. That’s all “Forgot Password” looks like from the outside.<br>But every reset flow quietly answers three questions, and each one is a place where account takeover can hide:<br>1. Identification — whose account is being reset?<br>2. Token generation — what proves this reset request is legitimate?<br>3. Token delivery — who actually receives the reset link?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6cIT39J0oIINGmpHu_k8LA.jpeg" /></figure><p><strong>A small note: This is more or less the checklist I’ve put together while exploring password reset testing. Thought I’d share it here in case it helps someone else too, especially those just getting started. Hopefully, it saves you a few rabbit holes along the way!</strong></p><p>I’ve split my password reset testing notes into three parts to keep things easier to follow. This one starts with identification — figuring out whose account we’re actually resetting. If the app gets identification wrong, nothing downstream can save it — a perfectly random token sent to the wrong person is still a takeover.<br>All testing below assumes accounts you own and a program whose scope allows it.<br><strong><em>1. Enumeration: the app tells you who exists</em></strong><br>The reset form is often the easiest place to learn whether an email is registered. Apps leak this in three layers — check all three, because fixing one doesn’t fix the others.<br>Layer 1 — the UI. “Reset link sent” for one email, “No account found” for another. Obvious, and usually already reported.<br>Layer 2 — the API. The page shows a generic “If an account exists…” message, but the JSON behind it doesn’t:<br>// registered</p><pre><br>HTTP/1.1 200 OK<br>{“status”: “success”, “message”: “Request processed”}</pre><p>// unregistered</p><p>HTTP/1.1 200 OK<br>{“status”: “error”, “message”: “User does not exist”}</p><p>Same status code, different body. In Burp, send both requests to Comparer and diff status, headers, body, length and redirects.</p><p>Layer 3 — timing. Identical responses can still differ in time, because a real account triggers extra work (token creation, sending an email). Send 20–30 requests for each identifier and compare averages. One slow response proves nothing; a consistent gap does.<br>Severity check: enumeration is information disclosure, not takeover. Many programs mark it informative unless the platform is sensitive (health, dating, finance) or you can chain it.<br><strong><em>2. Parameter manipulation: who does the backend actually trust?</em></strong><br>Many reset endpoints take more than just email in the body. The question is whether the backend independently validates each parameter, or just trusts whatever the client sends.<br>HTTP Parameter Pollution (HPP). Send the email field twice, or as an array, and see which account the backend acts on — and who the link actually gets mailed to.<br>email=victim@mail.com&amp;email=attacker@mail.com<br>{“email”: [“victim@mail.com”, “attacker@mail.com”]}<br>This isn’t theoretical. A GitLab report (HackerOne #2293343) showed that sending the email field as an array caused the reset link to go to both the victim’s and the attacker’s inboxes — letting the attacker complete the reset with no interaction from the victim. A similar bug in ReadMe’s reset flow worked the same way: a duplicated email parameter made both addresses receive the link, so the attacker could take over using their own copy.<br>Also worth trying: a CRLF-style injection to append a second recipient (email=victim@mail.com%0A%0Dcc:attacker@mail.com), and swapping email for a user_id or similar identifier the frontend never exposes but the API still accepts.<br>Testing approach (two accounts you control):<br>1. Capture a normal reset request in Burp.<br>2. Duplicate the identifier field, as a repeated param and as a JSON array.<br>3. Check where the email actually lands — not just what the API responds with.<br>4. Try conflicting identifiers (email of account A + user_id of account B) and see which one wins.<br>The goal is to map the server’s real lookup logic, not just throw payloads at it.<br><strong><em>3. Normalization, Unicode, and multi-tenant collisions</em></strong><br>Case, spaces, encoding. Test whether Researcher@Example.com, a trailing space, or URL-encoded characters resolve to the same account as the plain registered email — and whether registration, login, and password reset all normalize the same way. A mismatch between flows (login is case-insensitive, reset is case-sensitive) is itself a bug worth flagging.</p><p>Unicode normalization — a real-world account takeover pattern.</p><p>GitHub disclosed a password reset vulnerability in 2016 involving Unicode characters in email addresses. Its lookup process could normalize an attacker-supplied address to match another user’s account, while the reset token was delivered to the submitted address.</p><p>Django experienced a related issue, tracked as CVE-2019–19844. A crafted Unicode email address could match an existing user’s email after case transformation, allowing the reset token to be sent to the submitted address instead of the registered one.</p><p>A more recent example is Weblate’s CVE-2026–134838, published in November 2026, which involved Unicode case-insensitive email matching in its password reset flow.</p><p><strong>The pattern to test for: does the app perform its lookup using a normalized identifier but deliver the reset link using the raw, attacker-controlled value?</strong> If those two steps use different values, that’s where account takeover can happen.<br><br>Multi-tenant apps. If the same email can exist under two different organizations, check whether the tenant/org ID is something the client supplies and the server trusts blindly. Initiate a reset from each tenant with accounts you control, compare the requests, and try swapping the tenant identifier to see if it changes which account gets resolved.</p><p><strong>4. Rate limiting, and what actually makes a report</strong><br>Even an app that doesn’t leak account existence directly should still throttle reset requests. Check whether the limit is per-IP, per-identifier, or both, and whether it can be bypassed by rotating identifiers or source IPs. Weak limits don’t cause takeover by themselves, but they turn a slow manual enumeration into an automatable one — and can enable reset-request flooding against real users.</p><p><strong>Identification-stage checklist</strong><br><strong>Area → What to check</strong><br>Enumeration → UI message, API body, response timing<br>Normalization → Case, whitespace, encoding, Unicode<br>Parameter trust → HPP, arrays, CRLF injection, alternate identifiers<br>Multi-tenant → Client-supplied tenant/org ID<br>Rate limiting → Per-IP vs per-identifier, bypass via rotation</p><p>What makes it a strong report<br>A working exploit needs all of: the exact behavior, the security boundary it violates, reproducible steps on accounts you control, and the concrete impact (not just “a parameter can be modified”). “I can see the response differs” is a weak enumeration report; “here’s the reset link landing in both inboxes, with a screen recording” is a strong takeover report.</p><p>At this point, the password hasn’t even been touched, and things are already going wrong.</p><p>Imagine what happens when we get to the token.</p><p>In Part 2, we’ll look at what happens after identification — how reset tokens are generated, what makes them predictable, and why a token that looks random isn’t necessarily secure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKVG0Ijv4SITkHjSs4ndKw.jpeg" /></figure><p>Because apparently, generating a password reset link is also an opportunity to make questionable security decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46578b0afbc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Biggest Path Traversal Mistake I Didn’t Know I Was Making — Here’s The Path Traversal Checklist…]]></title>
            <link>https://medium.com/@at0625309/the-biggest-path-traversal-mistake-i-didnt-know-i-was-making-here-s-the-path-traversal-checklist-6f11eb3fe414?source=rss-3466ff3032da------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f11eb3fe414</guid>
            <category><![CDATA[directory-traversal]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Swati Choudhary]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 17:53:34 GMT</pubDate>
            <atom:updated>2026-07-04T17:53:34.007Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The Biggest Path Traversal Mistake I Didn’t Know I Was Making — Here’s The Path Traversal Checklist I Wish I Had</strong></h3><p>A few weeks ago, I was testing a web application when I noticed something that looked interesting — a “.jpeg” file being loaded by the application.</p><p>My brain immediately went into “time to find a Path Traversal vulnerability” mode.</p><p>I started throwing payloads at it. Basic traversal, encoded payloads, different bypasses… if it was on my checklist, I probably tried it.</p><p>Nothing.</p><p>At first, I blamed the application.</p><p>“Looks like they’ve secured this pretty well.”</p><p>But the more I looked at it, the more something felt off. Why wasn’t anything behaving the way I expected?</p><p>The answer had nothing to do with my payloads.</p><p>It had everything to do with what I was testing.</p><p>The file path was hard-coded. My input never influenced it in the first place.</p><p>In other words, I was trying to exploit a vulnerability where there wasn’t even an attack surface.</p><p>That small realization completely changed how I approach Path Traversal testing. Before thinking about payloads or bypasses, I now ask a much simpler question:</p><p>“Can user input actually control the file path?”</p><p>If the answer is no, it’s time to move on.</p><p>If the answer is yes, that’s when the real testing begins.</p><p>This article is the checklist I wish I had on day one — a methodology to help you identify what is actually worth testing before you spend the next 30 minutes throwing “../../../etc/passwd” at something that was never vulnerable in the first place.</p><h3>Step 1: Before You Touch a Single Payload, Ask This One Question</h3><p>This is the mistake that cost me the most time.</p><p>When you see a feature that loads a file — an image, a PDF, a report, a template — it’s tempting to jump straight to:</p><p>../../../etc/passwd</p><p>Resist the urge.</p><p>Instead, ask yourself a much simpler question:</p><p>”Can I actually control the file that’s being accessed?”</p><p>If the answer is no, congratulations — you’ve just saved yourself from testing something that was never vulnerable in the first place.</p><p>Look for places where the application reads, downloads, displays, or includes files. Then figure out where that file path comes from.</p><p>Ask yourself:</p><p>Can I influence the filename through a parameter like “file=”, “page=”, or “doc=”?</p><p>Can I modify it through a POST request, cookie, or even a header?</p><p>Is the application building the path using something like “base_directory + user_input”?</p><p>Here’s the difference:</p><p>Hard-coded</p><p>/images/profile.jpeg</p><p>The application always loads the same file. Your input doesn’t matter, so Path Traversal isn’t a realistic attack here.</p><p>User-controlled</p><p>/download?file=report.pdf</p><p>Now your input decides which file gets opened.</p><p>That’s where your testing should begin.</p><p>The biggest lesson I learned wasn’t a new payload — it was realizing that an attack only works if you can influence the thing being attacked.</p><h3>Step 2: Does the application let you step outside?</h3><p>You’ve confirmed that the file path is influenced by user input.</p><p>Now it’s time to answer the next question:<br>Can you escape the directory the developer intended you to stay in?</p><p>Start with simple traversal sequences like ../ (or ..\ on Windows).<br>If the payload works, great — you’ve confirmed directory traversal.</p><p>If it doesn’t, don’t stop there.</p><p>Pay attention to how the application responds.</p><p>Does the response change?</p><p>Do you get a different error message?</p><p>Is your input being normalized or sanitized?</p><p>Is the application rejecting your input altogether?</p><p>Your job at this stage isn’t to prove impact.</p><p>It’s to answer one question:</p><p>“Can I escape the directory the developer expected me to stay in?”</p><h3>Step 3: Don’t trust the first “NO” — time to test the filters.</h3><p>You tried “../”.</p><p>The application rejected it.</p><p>Look like a dead end? not quite.</p><p>All You’ve learned so far is that the application doesn’t like ../.</p><p>What you haven’t learned yet is whether it actually fixed the vulnerability.</p><p>There’s a big difference.</p><p>Some applications block the exact string “../” and call it a day. Others decode, normalize, or process your input in ways that can unintentionally bring it back.</p><p>This is where a few well-chosen variations are worth trying.</p><p>URL Encoding: “..%2f” (“%2e” = “.”, “%2f” = “/”)</p><p>Double Encoding: “%252e%252e%252f” (useful if input is decoded more than once)</p><p>Mixed Separators: “../” or “..” (depending on the target platform)</p><p>Normalization Tricks: Variations like “….//” can sometimes bypass naive string replacement filters.</p><p>Notice the pattern?</p><p>You’re not randomly changing payloads.</p><p>Each variation is testing a different assumption about how the application processes your input.</p><p>The goal isn’t to find a payload that works. It’s to understand why one works when another doesn’t.<br>Once you understand that, you’re no longer guessing — you’re testing.</p><h3>Step 4: Now Prove Why It Matters</h3><p>Congratulations — you’ve confirmed Path Traversal.</p><p>But hold on.</p><p>Reading “/etc/passwd” is a proof of concept, not the end goal.</p><p>Now ask yourself:</p><p>“What can an attacker actually access because of this?”</p><p>Look for files that have real security value, such as configuration files, “.env” files, source code, logs, or credentials. Focus on demonstrating impact, not just file access.</p><p>A single exposed secret is often a much stronger finding than dozens of harmless files.</p><p>Remember: Don’t collect files. Collect impact.</p><h3>Final Thoughts</h3><p>If there’s one thing I hope you take away from this article, it’s this:</p><p>Don’t start with payloads. Start with questions.</p><p>One of the biggest mistakes I made was assuming that every file-handling feature deserved Path Traversal testing. It doesn’t.</p><p>The first payload should never be “../../../etc/passwd”.</p><p>The first question should always be:</p><p>”Can I actually influence the file path?”</p><p>That one question has saved me far more time than any payload list ever could.</p><p>This checklist isn’t meant to replace your creativity or experience. It’s simply a reminder that good testing isn’t about trying more payloads — it’s about asking better questions.</p><p>If you’re just starting out in web security, I hope this methodology helps you avoid the same mistake I made and spend more time testing the things that actually matter.</p><h3>If you spotted something I could improve or if you approach Path Traversal differently, I’d genuinely love to hear your perspective. I’m always learning, and constructive feedback helps me become a better researcher.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f11eb3fe414" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>