<?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 Na_stark on Medium]]></title>
        <description><![CDATA[Stories by Na_stark on Medium]]></description>
        <link>https://medium.com/@Moosha?source=rss-ab800f974300------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jRsGMSBZByLPLyRBFXLhTw.jpeg</url>
            <title>Stories by Na_stark on Medium</title>
            <link>https://medium.com/@Moosha?source=rss-ab800f974300------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:59:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Moosha/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[Account Takeover With a 4-Digit Code: How "Rate Limiting" Gave Me Unlimited Guesses]]></title>
            <link>https://medium.com/@Moosha/account-takeover-with-a-4-digit-code-how-rate-limiting-gave-me-unlimited-guesses-e6be35af2085?source=rss-ab800f974300------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6be35af2085</guid>
            <dc:creator><![CDATA[Na_stark]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 04:56:40 GMT</pubDate>
            <atom:updated>2026-07-27T05:06:12.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kktyKe-2NqZeA6S2.jpg" /></figure><h4>A critical-severity bug where the counter was real, the lockout was real — and neither of them mattered.</h4><blockquote><strong>TL;DR</strong> — A subscription-commerce platform let customers log in with a 4-digit code sent by email. The verify endpoint allowed 5 guesses per code, then returned 429 max_attempts. Solid, right? Except the endpoint that <em>sends</em> the code had no limit at all — and every new code reset the counter. Loop send → guess 5 times and 10,000 possibilities become a few minutes of work. Any customer account, with nothing but their email address. <strong>Severity:</strong> Critical · <strong>Status:</strong> Resolved · <strong>Time to triage:</strong> 2 days · <strong>Time to fix:</strong> 8 days</blockquote><h2>The setup</h2><p>The target was a subscription-billing platform that powers checkout and customer portals for thousands of online stores. Customers don&#39;t get a password there. They get <strong>passwordless login</strong>: type your email, receive a short code, type the code, you&#39;re in.</p><p>Passwordless is great UX. It also means the code <em>is</em> the password. Everything depends on how many times an attacker is allowed to guess it.</p><p>So that&#39;s the only question I cared about:</p><blockquote>How many guesses do I actually get?</blockquote><h2>Step 1 — Finding the real limit</h2><p>The login flow works in three moves:</p><ol><li>GET /portal/login — the page hands you a hidden identifier (a random session-ish string)</li><li>POST …/send_code — with your identifier + email, the server emails a 4-digit code</li><li>POST …/verify_code — with identifier + email + access_code</li></ol><p>I requested a code for my own test account and started feeding the verify endpoint wrong values.</p><pre>POST /portal/verify_code HTTP/1.1<br>Host: shop.example-store.com<br>Content-Type: application/json<br><br>{&quot;identifier&quot;:&quot;&lt;A&gt;&quot;,&quot;email&quot;:&quot;victim@example.com&quot;,&quot;access_code&quot;:&quot;5001&quot;}</pre><p>Attempts 1 through 5:</p><pre>HTTP/1.1 422 Unprocessable Entity<br><br>{&quot;status&quot;:&quot;error&quot;}</pre><p>Attempt 6:</p><pre>HTTP/1.1 429 Too Many Requests<br><br>{&quot;error&quot;:&quot;max_attempts&quot;,&quot;status&quot;:&quot;error&quot;}</pre><p>There it is. <strong>Five guesses per code, then locked.</strong> Five out of 10,000 is a 0.05% chance. That&#39;s a perfectly reasonable defense.</p><p>At this point most testing stops. &quot;Rate limiting present.&quot; Move on.</p><p>I didn&#39;t move on, because the counter was attached to something I could throw away.</p><h2>Step 2 — The question that broke it</h2><p>The lockout wasn&#39;t tied to my <strong>account</strong>. It wasn&#39;t tied to my <strong>IP</strong>. It was tied to the <strong>code</strong> (via that identifier).</p><p>Which raises an obvious follow-up:</p><blockquote>What happens if I just ask for a <em>new</em> code?</blockquote><pre>POST /portal/send_code HTTP/1.1<br>Host: shop.example-store.com<br>Content-Type: application/json<br><br>{&quot;identifier&quot;:&quot;&lt;B&gt;&quot;,&quot;email&quot;:&quot;victim@example.com&quot;}</pre><pre>HTTP/1.1 200 OK<br><br>{&quot;status&quot;:&quot;success&quot;}</pre><p>Fresh code. Fresh identifier. <strong>Fresh counter.</strong> Five more guesses.</p><p>I fired the send endpoint 22 times back to back for the same email address. Twenty-two 200 OKs. No throttle, no CAPTCHA, no cooldown, no &quot;you&#39;ve requested too many codes&quot; — nothing.</p><p>The victim&#39;s inbox fills with login codes, and that&#39;s the <em>only</em> signal anything is wrong.</p><h2>Step 3 — Doing the math</h2><p>Now the numbers flip completely:</p><ul><li>Guesses — Chance of success</li><li>One code, hard cap — 5 — 0.05%</li><li>Unlimited re-sends — ∞ — <strong>100%</strong></li></ul><p>The keyspace is 10,000 codes. Five guesses per cycle means <strong>~2,000 cycles worst case</strong>, ~1,000 on average. Each cycle is two HTTP requests. Requests can run in parallel across multiple identifiers.</p><p>That&#39;s not a theoretical attack surface. That&#39;s a coffee break.</p><p>The attack loop, in pseudocode:</p><pre>for base in range(0, 10000, 5):<br>    ident = get_identifier()            # GET login page<br>    send_code(ident, victim_email)      # POST send  → always 200<br>    for guess in range(base, base + 5): # 5 free guesses<br>        r = verify(ident, victim_email, f&quot;{guess:04d}&quot;)<br>        if r.status == 200:<br>            return r.session_token      # 🎉</pre><p>I ran it against <strong>my own test account</strong> and it returned a valid authenticated session token.</p><h2>Step 4 — Proving impact, not just the bypass</h2><p>A brute-forced code is a finding. A brute-forced code that reaches real data is a <em>critical</em>.</p><p>With the session token from my own account I called the customer API:</p><pre>GET /customers/&lt;id&gt; HTTP/1.1<br>Authorization: Bearer &lt;session-token-from-brute-force&gt;</pre><pre>HTTP/1.1 200 OK</pre><p>Full account access:</p><ul><li>Personal data — name, email, phone, shipping and billing addresses</li><li>Order history and active subscriptions</li><li><strong>Write access</strong> — modify or cancel subscriptions, change the shipping address, manage stored payment methods</li></ul><p>Changing the shipping address on an active recurring subscription is the part that stings. It&#39;s not a one-time theft; it silently redirects every future delivery.</p><h2>Why this rated Critical</h2><p>Four properties, and they stack:</p><ol><li><strong>Zero prerequisites.</strong> The attacker needs an email address. Not a password, not a leaked hash, not a session. Emails are public, scraped, and in every breach dump on the internet.</li><li><strong>Zero user interaction.</strong> The victim clicks nothing. They just get emailed a lot of codes.</li><li><strong>Platform-wide.</strong> The login flow is shared infrastructure across every store on the platform. One bug, every merchant&#39;s customer base.</li><li><strong>Real money on the other side.</strong> Payment methods and recurring deliveries, not a forum profile.</li></ol><p>Nothing about the exploit is clever. That&#39;s exactly why it was worth reporting.</p><h2>The actual root cause</h2><p>It&#39;s tempting to write this up as &quot;no rate limiting.&quot; That&#39;s wrong, and getting it right matters for the fix.</p><p>The rate limit <strong>existed</strong> and <strong>worked</strong>. The bug is that the counter was scoped to a <strong>disposable object</strong>.</p><blockquote><strong>If your attempt counter lives on something the attacker can create for free, you do not have an attempt counter.</strong></blockquote><p>The code was the unit of protection. The attacker controls how many codes exist. Therefore the attacker controls the budget.</p><h2>How to fix it</h2><p>The patch here isn&#39;t one change, it&#39;s a set — each one alone is bypassable.</p><p><strong>1. Scope the counter to the identity, not the code.</strong> Track failures per <strong>account</strong> (and per IP/device as a secondary signal). Failed attempts on the previous code must carry over to the next one. This is the fix that actually closes the hole.</p><p><strong>2. Rate-limit code generation.</strong> Something like: 3 codes per 15 minutes per account, with exponential backoff. There&#39;s no legitimate reason for one email address to request 22 codes in a minute.</p><p><strong>3. Invalidate old codes on re-send.</strong> Issuing a new code should kill the previous one. Multiple simultaneously-valid codes multiply the attacker&#39;s hit rate for free.</p><p><strong>4. Grow the keyspace.</strong> 4 digits = 10,000. Six digits = 1,000,000 — 100× better, and still easy to type. Better yet, use a signed magic link and skip typed codes entirely.</p><p><strong>5. Add a hard lockout with a real signal.</strong> After N failures across all codes: lock the flow for a cooling-off period, require an alternate factor, and <strong>notify the account owner</strong>. In this bug, the only defense the victim ever had was noticing the flood in their inbox.</p><h2>The lesson for other hunters</h2><p>The takeaway isn&#39;t &quot;test for rate limits.&quot; Everyone does that. The takeaway is what you do the moment you see 429.</p><p>A 429 is not proof of a defense. It&#39;s a hint about where the defense&#39;s boundary is drawn. So ask:</p><ul><li><strong>What is the counter attached to?</strong> A code? A session? A token? An IP? A user?</li><li><strong>Can I make more of that thing?</strong> If yes, and it&#39;s free and unauthenticated — the limit is decorative.</li><li><strong>Does the limit survive rotation?</strong> Old-code → new-code, old-session → new-session, old-IP → new-IP.</li><li><strong>Is there a matching limit on the <em>generation</em> endpoint?</strong> The verify side is the one everyone hardens. The send side is where the bug usually lives.</li></ul><p>I&#39;ve now seen the same shape on 2FA verification, password reset, OTP checkout, and email confirmation flows. It&#39;s the same sentence every time:</p><blockquote>The lockout guarded the credential. The attacker was allowed to mint new credentials.</blockquote><h2>Timeline</h2><ul><li>Day 0 — Reported with full end-to-end proof of concept</li><li>Day 2 — Triaged and confirmed as Critical</li><li>Day 8 — Fixed and resolved</li></ul><p>An eight-day turnaround on a platform-wide auth bug. Credit where it&#39;s due — that&#39;s a security team that takes reports seriously.</p><h2>Responsible testing note</h2><p>Every request in this research hit <strong>my own test account</strong> on <strong>my own test store</strong>, inside an authorized bug bounty program. No third-party account was ever targeted, and no real customer data was accessed. All identifiers, hostnames, tokens, and email addresses in this write-up are placeholders.</p><p><em>If you&#39;re building passwordless auth: the code is the password. Give it the same brute-force protection you&#39;d give a password field — counted per user, surviving rotation, and enforced on both ends of the flow.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6be35af2085" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[41 Wrong 2FA Codes, Then the Right One Worked]]></title>
            <link>https://medium.com/@Moosha/41-wrong-2fa-codes-then-the-right-one-worked-b7791107e971?source=rss-ab800f974300------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7791107e971</guid>
            <dc:creator><![CDATA[Na_stark]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 04:56:07 GMT</pubDate>
            <atom:updated>2026-07-27T05:07:12.118Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EoJSONBNT7yTU4kc.jpg" /></figure><h4>The second factor had no rate limit, no lockout, and no session invalidation. It was a formality.</h4><blockquote><strong>TL;DR</strong> — An admin panel&#39;s 2FA verification endpoint accepted unlimited attempts on the same session token. I sent 41+ wrong 6-digit codes with no lockout, no throttle, and no session invalidation — then submitted the correct code on that same token and was logged straight in. An attacker holding a stolen password can walk the 1,000,000-code space and bypass 2FA entirely. <strong>Severity:</strong> High · <strong>Class:</strong> CWE-307 (improper restriction of authentication attempts) · <strong>Prerequisites:</strong> the victim&#39;s password — precisely the scenario 2FA exists to defend against</blockquote><h2>What 2FA is actually for</h2><p>Two-factor authentication has one job: <strong>make a stolen password insufficient.</strong></p><p>Credential stuffing, phishing, password reuse, breach dumps — the password is assumed compromised. That&#39;s the premise. So the security of the whole scheme reduces to a single question:</p><blockquote>Given the password, how many guesses does the attacker get at the second factor?</blockquote><p>If the answer is &quot;unlimited,&quot; the second factor doesn&#39;t exist. A 6-digit code is 1,000,000 possibilities — a large number for a human and a small one for a script.</p><h2>The flow</h2><p>After the password step, the login process here goes:</p><ol><li>POST /auth/merchant_initiate_2fa with the identity token → returns {&quot;requires_2fa&quot;: true, &quot;session_token&quot;: &quot;&lt;ST&gt;&quot;}</li><li>POST /auth/merchant_send_2fa with the session token → emails a 6-digit code</li><li>POST /auth/merchant_verify_2fa with {session_token, verification_code, store_id} → session on success</li></ol><p>Step 3 is the gate. So I hammered it.</p><h2>The test, and the detail that makes it airtight</h2><p>I sent wrong codes against the <strong>same</strong> session_token, one after another:</p><pre>POST /api/admin/auth/merchant_verify_2fa HTTP/2<br>Host: admin.example.com<br>Content-Type: application/json<br><br>{&quot;session_token&quot;:&quot;&lt;ST&gt;&quot;,&quot;verification_code&quot;:&quot;000001&quot;,&quot;store_id&quot;:&lt;id&gt;}</pre><pre>HTTP/2 406<br>{&quot;error&quot;:&quot;Invalid or expired 2FA&quot;}</pre><p><strong>41+ consecutive wrong codes.</strong> No lockout. No throttle. No CAPTCHA. And critically — the session token stayed alive the whole time.</p><p>Two supporting observations:</p><ul><li>merchant_send_2fa returned 200 on six rapid calls — no send throttle either, so an attacker can also mint fresh codes at will.</li><li>Ten verify requests fired in parallel were all processed, so attempts can be run concurrently.</li></ul><h4>Ruling out the obvious objection</h4><p>A triage engineer&#39;s first question is fair: <em>maybe the session died early and you were just hitting a dead session 41 times.</em></p><p>I could rule that out because the API distinguishes the two states:</p><ul><li>wrong code on a live session → {&quot;error&quot;:&quot;Invalid or expired 2FA&quot;}</li><li>genuinely dead session → {&quot;error&quot;:&quot;Invalid or expired session&quot;}</li></ul><p>I got the first message every time. The session was alive for all 41 attempts.</p><h4>The decisive proof</h4><p>Then I did the thing that turns a strong argument into an unarguable one — after those 41+ failures, on the <strong>same session token</strong>, I submitted the <strong>correct</strong> code:</p><pre>{&quot;session_token&quot;:&quot;&lt;ST&gt;&quot;,&quot;verification_code&quot;:&quot;&lt;correct&gt;&quot;,&quot;store_id&quot;:&lt;id&gt;}</pre><pre>HTTP/2 200<br>{&quot;redirect_url&quot;:&quot;https://&lt;store&gt;.admin.example.com/merchant/…&quot;,&quot;status&quot;:&quot;success&quot;}</pre><p>Authenticated into the admin panel.</p><p>That single request closes every counter-argument. It proves the endpoint doesn&#39;t degrade, doesn&#39;t shadow-ban, doesn&#39;t silently invalidate after N tries. Failed attempts cost the attacker <strong>nothing</strong>, and the correct code is still accepted when it arrives.</p><blockquote>Don&#39;t just show that wrong guesses are accepted. Show that the <strong>right</strong> guess still works afterwards. That&#39;s the difference between &quot;no rate limit observed&quot; and &quot;2FA bypass demonstrated.&quot;</blockquote><h2>Impact</h2><p>An attacker with a merchant user&#39;s password — from credential stuffing, reuse, phishing, or a breach dump — iterates the 1,000,000-code space, in parallel, until it hits. Then they&#39;re in the admin panel with that user&#39;s privileges: customer records, order data, payment configuration, staff management, store settings.</p><p>There&#39;s no user interaction, no additional prerequisite, and no defensive signal. The victim sees some 2FA emails, at most.</p><p>The severity is High rather than Critical for one honest reason: <strong>the attacker needs the password first</strong>. That&#39;s a real prerequisite. It&#39;s also the exact threat model 2FA was deployed to defeat — so the control is providing zero of the protection it&#39;s credited with.</p><h2>The fix</h2><p><strong>1. Cap attempts per session token — five, then burn the token.</strong> Invalidate the session and force the whole login to restart. This is the core fix.</p><p><strong>2. Cap attempts per account across sessions.</strong> Otherwise the attacker restarts the flow to get a fresh budget — the counter must survive session rotation. (This is the single most common incomplete fix for this bug class.)</p><p><strong>3. Throttle code sending.</strong> No legitimate user requests six codes in a minute.</p><p><strong>4. Expire codes quickly</strong> — 5 to 10 minutes — and make each single-use, invalidated on first successful verification and on re-send.</p><p><strong>5. Serialize verification per session.</strong> One in-flight verify at a time, and make the counter increment atomic. Otherwise a concurrency race reopens the hole even after the limit exists.</p><p><strong>6. Add backoff and alerting.</strong> Exponential delay after the second failure, and alert the account owner on repeated failed 2FA — that&#39;s the only signal the victim would otherwise get.</p><h2>Takeaways for hunters</h2><p><strong>Test the second factor with the same energy as the first.</strong> Login endpoints are hardened by default; 2FA verification endpoints are frequently an afterthought — same team, same sprint, far less scrutiny.</p><p><strong>Count out loud, in the report.</strong> &quot;41+ consecutive wrong codes, no lockout&quot; is reproducible and specific. &quot;No rate limiting&quot; is an opinion.</p><p><strong>Learn the error-message vocabulary.</strong> The difference between &quot;invalid 2FA&quot; and &quot;invalid session&quot; was the evidence that my attempts were landing on a live session. Response text is data — diff it across states.</p><p><strong>Always finish with the successful attempt.</strong> It converts a plausible finding into a demonstrated bypass and pre-empts the &quot;our WAF would have caught it at scale&quot; response.</p><p><strong>Check three axes, not one:</strong> per-token limits, per-account limits across tokens, and concurrency. A fix that addresses only the first is common and is worth re-testing after the patch lands.</p><h2>Responsible testing note</h2><p>Everything was tested end-to-end on <strong>my own account and my own store</strong> within an authorized bug bounty program, using a code that was legitimately emailed to me. No third-party account was targeted and no full brute-force was executed — the demonstration stopped at proving the attempt budget is unbounded. Hostnames, tokens, and IDs here are placeholders.</p><p><em>Unlimited guesses turn a second factor into a speed bump. If failed attempts don&#39;t cost the attacker something, the control isn&#39;t doing the job it was bought for.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7791107e971" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypassing File Upload Limits via Race Condition]]></title>
            <link>https://medium.com/@Moosha/bypassing-file-upload-limits-via-race-condition-a01fa08cb634?source=rss-ab800f974300------2</link>
            <guid isPermaLink="false">https://medium.com/p/a01fa08cb634</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[hackerone]]></category>
            <dc:creator><![CDATA[Na_stark]]></dc:creator>
            <pubDate>Tue, 28 Apr 2026 10:03:47 GMT</pubDate>
            <atom:updated>2026-04-28T10:03:47.404Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_EjAx6V_dSYJ4CHx1h6Yg.jpeg" /><figcaption><strong>Bypassing File Upload Limits via Race Condition</strong></figcaption></figure><p>*How parallel requests can break business logic that looks rock solid on the surface*</p><p>— -</p><p>## Introduction</p><p>Hey folks 👋</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*-VaShM8hPoJvn2DNriYCqw.png" /></figure><p>In this write-up, I want to share one of my favorite bug classes to hunt for: **race conditions in business logic**. Specifically, I’ll walk you through a scenario where I was able to bypass a strict file attachment limit on a support ticketing system by sending parallel requests at just the right moment.</p><p>For privacy reasons, I won’t be naming the actual target. Instead, I’ll use a fictional company called **”AcmeSupport”** running a help desk at `help.acmesupport.com`. The vulnerability and methodology are real, only the target name has been changed.</p><p>Let’s dive in.</p><h3>The Target: AcmeSupport Help Desk</h3><p>AcmeSupport allows users to open support tickets and attach files (logs, screenshots, etc.) to help the support team troubleshoot issues. According to the UI and the documentation, **a maximum of 10 attachments per ticket** is enforced.</p><p>This kind of limit makes sense for several reasons:</p><p>- It prevents storage abuse<br>- It keeps support tickets manageable for agents<br>- It mitigates resource exhaustion</p><p>But the question I always ask when I see such a limit is: **how is this limit enforced on the backend?**</p><p>— -</p><p>## Discovery</p><p>I started by going through the standard ticket creation flow:</p><p>1. Navigated to `<a href="https://help.acmesupport.com/hc/en-us/requests/new/%60">https://help.acmesupport.com/hc/en-us/requests/new/`</a><br>2. Filled out the new ticket form<br>3. Started attaching files one by one</p><p>After uploading 10 files, the application correctly blocked any further uploads. The frontend would not even let me select an 11th file. Good UX, but I never trust client-side enforcement, so I kept digging.</p><p>I fired up Burp Suite and started inspecting the actual upload request. Each file upload was its own HTTP `POST` request to a specific endpoint, with the file in the body.</p><p>That’s when the lightbulb went off 💡 — if every upload is a separate request, what happens if I send a bunch of them at the *exact same moment*?</p><p>— -</p><h3>POC</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DYPrFld-lT0sJe-ui-IrLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PKZKCi90ANDr_SrHMwIyjA.png" /></figure><p>— -</p><p>## Exploitation: The Race</p><p>Here’s how I tested the theory:</p><p>**Step 1:** I started a new ticket form and intercepted a single file upload request in Burp.</p><p>**Step 2:** I sent that request to Burp Repeater.</p><p>**Step 3:** Inside Repeater, I duplicated the request roughly **20 times** — double the supposed limit.</p><p>**Step 4:** I selected all 20 tabs, grouped them together, and used Burp’s **”Send group in parallel (single connection)”** feature. This option uses HTTP/2 single-packet attack technique, which bundles all requests into one TCP packet so they arrive at the server with sub-millisecond differences.</p><p>**Step 5:** Hit send and watch the responses.</p><p>**Result:** All 20 requests returned a `200 OK`. Every single file was accepted. Refreshing the ticket showed all 20 attachments successfully uploaded, completely bypassing the documented limit of 10.</p><p>The window of opportunity is tiny, often just a few milliseconds, but that’s all you need.</p><p>— -</p><h4>Why Did This Work?</h4><p>The backend logic likely looked something like this in pseudocode:</p><p>```python<br>function handleUpload(ticketId, file):<br> count = db.getAttachmentCount(ticketId) # Step 1: Check<br> if count &gt;= 10: # Step 2: Decide<br> return error(“Limit reached”)<br> db.saveAttachment(ticketId, file) # Step 3: Update<br> return success<br>```</p><p>When 20 requests hit this function in parallel, every single one reads `count = 0` (or some value below 10) before any of them have a chance to call `saveAttachment`. They all pass the check, and they all write to the database.</p><p>There’s no atomicity, no locking, no transaction isolation. Just a beautiful, exploitable gap.</p><p>— -</p><h3>Lessons Learned</h3><p>A few takeaways from this hunt:</p><p>- **Don’t trust client-side limits.** They exist for UX, not security.<br>- **Whenever you see a numeric limit, ask yourself how it’s enforced.** Counters are race condition magnets.<br>- **Burp’s parallel send feature is your best friend.** The HTTP/2 single-packet attack made this trivial to test.<br>- **Race conditions are often dismissed as low-impact.** But when you connect them to storage, cost, DoS, or social engineering vectors, the impact story becomes much stronger.</p><p>— -</p><h3>Final Thoughts</h3><p>Race conditions are one of those bug classes that feel almost magical when they work. The application *thinks* it’s enforcing a rule, the developers *swear* the limit is solid, and yet a few well-timed packets blow right past it.</p><p>They’re everywhere — coupon codes, voting systems, balance transfers, file uploads, friend requests, follower counts. Anywhere there’s a counter or a quota, there’s likely a race waiting to be found.</p><p>Happy hunting</p><p>— -</p><p>Got questions? Drop them in the comments.*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a01fa08cb634" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Takeover AWS Bucket]]></title>
            <link>https://medium.com/@Moosha/beyond-takeover-aws-bucket-58c7b22d9e8a?source=rss-ab800f974300------2</link>
            <guid isPermaLink="false">https://medium.com/p/58c7b22d9e8a</guid>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[bugcrowd]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Na_stark]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 23:45:48 GMT</pubDate>
            <atom:updated>2026-01-27T00:19:16.654Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*Wk5NpOwSvYk1OoVw_ShRoQ.png" /><figcaption>Beyond AWS S3 Bucket</figcaption></figure><p><strong>اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا</strong></p><p>New article one of the interesting findings.</p><p>One of coolest finding I covered Beyond AWS s3 bucket.</p><p>Nowadays find S3 Bucket is something impossible but let’s think out the box Amazon is Hosting provider for domains service Right What if Its not the only Hosting provider that Vulnerable to Takeover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*T_-9vClJdFfQVE3kqcMvZQ.jpeg" /></figure><p>So I Search to find every Hosting provider possible like Amazon AWS,After search grep the all provider and try every Hosting provider to see if its vulnerable or not.</p><p>After a long Nights I find another Hosting providers are vulnerable I was able to Takeover the domain across the Provider, So I bring my Bash skills build a Tool That bring me the Hosing provider of the domains and only the Hosting Provider vulnerable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*ayX-Q0PIDkxVAaOxaJPaeA.png" /></figure><p>Steps:</p><p>1-I go to scope grap the main domain then put it in the bash tool after bring me the vulnerable domain.</p><p>I will publish the Tool in Github Soon But here it:</p><pre>#!/bin/bash<br><br><br>TARGETS=(<br>    &quot;example&quot;<br>    &quot;example&quot;<br>    &quot;example&quot;<br>)<br><br>get_subdomains() {<br>    domain=$1<br><br>    response=$(curl -s -X GET &quot;https://$$$$$$$$/v1/domain/$domain/subdomains?children_only=false&quot; \<br>        -H &quot;accept: application/json&quot; \<br>        -H &quot;apikey: $API_KEY&quot;)<br><br>    echo &quot;$response&quot; | jq -r --arg domain &quot;$domain&quot; &#39;.subdomains[] + &quot;.&quot; + $domain&#39;<br>}<br><br>check_cname() {<br>    subdomain=$1<br>    cname=$(dig +short CNAME &quot;$subdomain&quot; | tr &#39;A-Z&#39; &#39;a-z&#39;)<br><br>    if [[ -z &quot;$cname&quot; ]]; then<br>        return<br>    fi<br><br>    for service in &quot;${TARGETS[@]}&quot;; do<br>        if [[ &quot;$cname&quot; == *&quot;$service&quot;* ]]; then<br>            echo -e &quot;$subdomain -&gt; \e[31m$cname\e[0m&quot;<br>        fi<br>    done<br>}<br><br>main() {<br>    read -p &quot;Enter Domain name: &quot; domain<br><br>    get_subdomains &quot;$domain&quot; | while read -r sub; do<br>        check_cname &quot;$sub&quot;<br>    done<br>}<br><br>main</pre><p>2- I go to the Hosting provider to see if I am able to Take over the domain and Volaa once I claim the domain report it to them and the team was so respectful</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*cxbbscXI3RFjPs0DWnYZ9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*nxe4g2nQ8seyYnjC5Yek4Q.png" /></figure><p>Right Now i Think i am able to Bypass the fix of that by a Trick i will report it to them and update the writeup once their something to share.</p><p>I hope to enjoy reading thinking outside the box Never fails.</p><p>See you in another writeups.</p><p>#HackerOne #BugBounty #Tips #Hacking #BugCrowd</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58c7b22d9e8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Server-Side Redirect Misconfiguration Leading to Internal Information Disclosure]]></title>
            <link>https://medium.com/@Moosha/introduction-116a46af0195?source=rss-ab800f974300------2</link>
            <guid isPermaLink="false">https://medium.com/p/116a46af0195</guid>
            <dc:creator><![CDATA[Na_stark]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 05:38:39 GMT</pubDate>
            <atom:updated>2026-01-04T05:50:27.841Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*emG9UXigXaMpLMx9vwfdvA.jpeg" /><figcaption>Server-Side Redirect Misconfiguration Leading to Internal Information Disclosure</figcaption></figure><blockquote><strong>Introduction</strong></blockquote><blockquote><strong>During a security assessment of a web application, I identified a server-side redirect misconfiguration that can lead to internal infrastructure information disclosure.</strong></blockquote><blockquote><strong>Although this issue was responsibly reported, it remains unresolved at the time of writing. <br>This article explains the finding in an educational and anonymized manner, using only placeholder domains such as `example.com`.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*yEsdI3QhXjuhlBtP8QZI7Q.png" /></figure><h4><strong>High-Level Overview</strong></h4><h4><strong>The affected application implements a redirect mechanism intended to forward users to another internal or external resource. Due to improper validation of user-controlled input, an attacker can manipulate the redirect path.</strong></h4><h4>Instead of safely redirecting the user, the server attempts to process the supplied path, resulting in a server-generated error page that exposes internal details.</h4><p>— -</p><h3>Affected Component (Example):</h3><blockquote>https://redirect.example.com/&lt;user-controlled-path&gt;</blockquote><p><strong>The application implicitly trusts the path portion of the request without enforcing strict validation or allow-listing.</strong></p><p>— -</p><h4>Root Cause:</h4><blockquote>- The redirect endpoint accepts user-controlled input<br>- No strict validation or allow-list is applied<br>- The backend attempts to process unexpected values<br>- The server returns detailed error responses on failure</blockquote><blockquote>This behavior strongly indicates that the redirect logic is handled server-side rather than client-side.</blockquote><p>— -</p><h4>Proof of Concept:</h4><blockquote>GET id/attacker-controlled.example HTTP/1.1<br>Host: redirect.example.com</blockquote><h3>Observed Behavior</h3><p>Instead of returning a standard 301 or 302 redirect response, the server returns a <strong>backend-generated error page</strong>.</p><p>Depending on the environment, the response may disclose:</p><ul><li>Internal hostnames</li><li>Backend service identifiers</li><li>Reverse proxy or framework details</li><li>Error handling behavior</li></ul><p>Security issues are not always about direct exploitation. Sometimes, the risk lies in <strong>what an attacker can learn</strong>.</p><p>Minimizing information exposure is a critical part of building secure and resilient systems.</p><p>Thanks for your reading, Looking forward another article</p><p>#Bug-bounty #Hacking #bugHunting #Application-secuirty</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=116a46af0195" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>