<?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 nocxs on Medium]]></title>
        <description><![CDATA[Stories by nocxs on Medium]]></description>
        <link>https://medium.com/@rrozif96?source=rss-995ba431bfeb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wawpvI6qRBt0v0tMcRw4BQ.gif</url>
            <title>Stories by nocxs on Medium</title>
            <link>https://medium.com/@rrozif96?source=rss-995ba431bfeb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:42:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rrozif96/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[Race condition on add 1 free domain]]></title>
            <link>https://medium.com/@rrozif96/i-got-unlimited-free-domains-on-wordpress-com-by-accident-sort-of-bb514deb8cd0?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb514deb8cd0</guid>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Sat, 30 May 2026 12:19:40 GMT</pubDate>
            <atom:updated>2026-05-30T12:23:09.383Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>📌 DISCLAIMER</em></strong></p><blockquote>This vulnerability was NOT discovered by me. I’m just a student of bug bounty who loves to learn from real-world reports. Full credit goes to the original researcher (<strong>ASC Lages</strong>) who found and reported this issue on HackerOne. This write-up is my personal breakdown of their public report — written in my own words for learning and sharing purposes. No actual exploitation was performed by me. -&gt; 2616045</blockquote><h3>The Setup</h3><p>We all love free stuff, right?</p><p><a href="https://wordpress.com/">WordPress.com</a> (via Gravatar) gives new users a <strong>free custom domain</strong> when they sign up. It’s a nice perk. One per account. No cheating.</p><p>Or so the original researcher thought.</p><p>They were poking around the claim flow one day, and something felt… off. The process was:</p><ol><li>Sign up for a free Gravatar account</li><li>Click <em>“Claim free custom domain”</em> inside profile settings</li><li>Get redirected to <a href="https://wordpress.com/">WordPress.com</a> checkout</li><li>Pay <strong>$0.00</strong> (my favorite price)</li><li>API call goes to:</li><li>public-api.wordpress.com/rest/v1.1/me/transactions?xxxx</li><li>Domain is added. Done.</li></ol><p>One domain. One transaction. Boring.</p><p>But then they wondered…</p><blockquote><em>What happens if I spam that final request?</em></blockquote><h3>The “Aha” Moment</h3><p>The researcher fired up <strong>Burp Suite</strong> (every bug hunter’s best friend) and caught the last request before domain activation.</p><p>Instead of sending one request, they duplicated it.</p><p>Then again. And again.</p><p>Fifteen times.</p><p>But here’s the trick — they noticed the &quot;meta&quot; parameter in the request body.</p><p>If they sent <strong>all 15 requests with the exact same </strong><strong>&quot;meta&quot; value</strong>, the server just ignored the duplicates. Smart – probably an idempotency thing.</p><p>But what if they changed &quot;meta&quot; to something slightly different for each request?</p><p>&quot;meta1&quot;, &quot;meta2&quot;, &quot;meta3&quot;… you get the idea.</p><p>Then they sent <strong>all 15 requests at the exact same time</strong>.</p><p>🔁 <strong>Parallel. Group. Fire.</strong></p><h3>The Result</h3><p>The server checked: <em>“Does this user already have a free domain?”</em></p><p>For request #1 → <em>No.</em></p><p>For request #2 (arriving nanoseconds later) → <em>Still no.</em></p><p>Requests #3–15 → <em>Also no.</em></p><p>Because none of the requests had finished writing to the database yet, <strong>every single check passed</strong>.</p><p>And just like that — <strong>15 free domains</strong> were added to a single free account.</p><p>No extra payment. No errors. Just… domains.</p><h3>Why Did This Happen? (Short Version)</h3><p>Classic <strong>race condition</strong>.</p><p>The backend logic looked something like this in pseudocode:</p><p>text</p><pre>if user_has_free_domain() == false:<br>    give_free_domain()<br>else:<br>    reject()</pre><p>When requests arrive in parallel, they all see user_has_free_domain() == false at the same time, so they all execute give_free_domain().</p><p>By the time the first request finishes writing to the database, the other 14 have already passed the check.</p><p><strong>No lock. No transaction. No protection.</strong></p><h3>Real Impact (Not Just “Cool Bug”)</h3><p>This isn’t just a flex.</p><ul><li>Domain squatting? Possible.</li><li>Resell free domains for profit? Also possible.</li><li>Completely break the “one per user” business rule? Done.</li></ul><p>From <a href="https://wordpress.com/">WordPress.com</a>’s perspective — that’s lost revenue and abused goodwill.</p><h3>How <a href="https://wordpress.com/">WordPress.com</a> Fixed It (Probably)</h3><p>Based on how similar race conditions are patched, the fix likely included:</p><p>✅ <strong>Database unique constraint</strong> — Prevent duplicate free domain records per user at the DB level.</p><p>✅ <strong>User-level lock (mutex)</strong> — Only allow one domain claim request to process at a time per user.</p><p>✅ <strong>Idempotency key enforcement</strong> — Force unique keys per transaction, even with parallel requests.</p><p>Rate limiting alone wouldn’t stop this — parallel requests arrive too fast.</p><h3>What I Learned From This Report</h3><p>Race conditions aren’t just for banking or voting systems.</p><p>Even a simple “free domain” feature can break if developers forget that <strong>two requests can arrive at almost the same time</strong>.</p><p>Always ask yourself when building features like this:</p><blockquote>“What happens if 100 users click this button at once?”</blockquote><blockquote>“What happens if one user spams this endpoint with 50 parallel requests?”</blockquote><p>If your answer is <em>“I don’t know”</em> — you might have a bug.</p><h3>Why I’m Writing This</h3><p>I’m not a super hacker. I don’t have 50+ CVEs.</p><p>But I <em>am</em> someone who wants to get better at bug bounty.</p><p>And one of the best ways to learn?</p><p><strong>Read real reports. Break them down. Write about them in your own words.</strong></p><p>So that’s what I did here.</p><p>Big respect to <strong>ASC Lages</strong> for finding this and reporting it responsibly.</p><h3>Final Thoughts</h3><p>A free domain.</p><p>A race condition.</p><p>Fifteen domains.</p><p>Not bad for an afternoon of <em>reading</em>, not even hacking.</p><p><em>Found this useful? Clap 👏 and follow for more bug bounty breakdowns — all from public reports I’m learning from.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb514deb8cd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Changed a User’s Password Without Knowing Their Old One. The App Just Said “OK.”]]></title>
            <link>https://medium.com/@rrozif96/i-changed-a-users-password-without-knowing-their-old-one-the-app-just-said-ok-ec0486d75050?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec0486d75050</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[business-logic-bug]]></category>
            <category><![CDATA[bugs]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Sun, 10 May 2026 11:35:57 GMT</pubDate>
            <atom:updated>2026-10-01T11:27:01.110Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Endpoints:</strong> POST /ca/static/spa/eks/rendom-account-ui/update-account-data</p><h3>🧠 The “Wait, Really?” Moment</h3><p>We’ve all forgotten our passwords before. The normal flow is:</p><blockquote><em>“Forgot password?” → Email link → Reset → All good.</em></blockquote><p>But what if someone else could reset your password <em>without</em> knowing your current one, and <em>without</em> any email confirmation?</p><p>That’s exactly what I found.</p><p>I was poking around the account settings of a test account when I spotted a POST request that looked… suspiciously friendly.</p><h3>🔍 The Endpoint</h3><p>text</p><pre>POST /ca/static/spa/eks/rendom-account-ui/update-account-data?userId=121212121 HTTP/2<br>Host: www.rendom.com<br>Cookie: [session of User A]<br>Content-Type: application/json</pre><p>And the payload?</p><p>json</p><pre>{<br>  &quot;newPassword&quot;: &quot;Hacked123!&quot;,<br>  &quot;currentPassword&quot;: &quot;&quot;<br>}</pre><p>Notice anything missing?</p><p>Yeah. A valid currentPassword.</p><p>But I sent it anyway — just to see what happens.</p><h3>💥 The Exploit (Step by Step)</h3><p>Here’s how easy it was to take over an account:</p><ol><li>Log into <strong>User A</strong>’s account (assume session hijack via XSS, shared computer, or just a dev leaving a tab open — happens more than you’d think).</li><li>Open Burp Suite and capture the password change request.</li><li>Change the body to:</li><li>json</li></ol><ul><li>{ &quot;newPassword&quot;: &quot;Hacked123!&quot;, &quot;currentPassword&quot;: &quot;&quot; }</li></ul><ol><li>Forward the request.</li><li>Server responds with <strong>HTTP 200 OK</strong>. No error. No “current password incorrect.” Just… success.</li><li>Log out.</li><li>Log back in using:</li></ol><ul><li>Email: <a href="/service/mailto:victim@example.com">victim@example.com</a></li><li>Password: Hacked123!</li></ul><p>✅ Login successful.</p><p>💀 The original password was never required. The victim is now locked out.</p><h3>🤯 Why This Is Dangerous</h3><p>Let me be blunt:</p><ul><li><strong>No current password check.</strong> None. Zero. Nada.</li><li><strong>Empty </strong><strong>currentPassword field was accepted</strong> without complaint.</li><li><strong>No email notification</strong> to the victim.</li><li><strong>No session invalidation</strong> after password change.</li><li><strong>No re-authentication required.</strong></li></ul><p>An attacker with a stolen session token (from XSS, malware, or even a physical shared device) can permanently take over an account in <strong>one single request</strong>.</p><p>No phishing. No brute force. No OTP bypass needed. Just one POST.</p><h3>📚 How This Should Work (But Didn’t)</h3><p>According to:</p><ul><li><strong>OWASP ASVS v4.0.3 Requirement 2.2.1</strong></li><li>“Verify that users are required to authenticate with their current password before changing their password.”</li><li><strong>CWE-620: Unverified Password Change</strong></li><li>The product does not require knowledge of the original password when setting a new password.</li></ul><p>And real CVEs like:</p><ul><li><strong>CVE-2025–47938</strong> (TYPO3 CMS)</li><li><strong>CVE-2025–63800</strong> (Open Source POS)</li><li><strong>CVE-2025–1107</strong> (CVSS 9.9)</li></ul><p>…all describe the same flaw. This isn’t new, but it’s still surprisingly common — and always critical.</p><h3>🛠️ How to Fix It (Dear Dev Team)</h3><p>Please implement <strong>all</strong> of these:</p><p>✅ <strong>Validate current password</strong> — even if it’s hashed, compare it before allowing a change.</p><p>✅ <strong>Reject empty or missing </strong><strong>currentPassword</strong> with 401 Unauthorized.</p><p>✅ <strong>Send email notification</strong> to the user when password is changed.</p><p>✅ <strong>Invalidate all active sessions</strong> after password change.</p><p>✅ <strong>Log password changes</strong> and monitor for anomalies.</p><p>✅ <strong>Rate-limit</strong> password change attempts.</p><p>And while you’re at it — consider requiring <strong>re-authentication</strong> (password + maybe OTP) for any sensitive account operation.</p><h3>🧃 Final Thoughts</h3><p>This wasn’t a complex exploit. No chaining. No fancy techniques. Just a missing validation and a developer who maybe trusted the frontend too much.</p><blockquote><strong><em>Lesson:</em></strong><em> Never assume the client will validate the current password. Never skip server-side checks. And never — </em>ever<em> — trust an empty string sent by an attacker.</em></blockquote><p>Stay sharp, test everything, and always question the “harmless” requests.</p><p>— <em>Your friendly neighborhood bug hunter</em> 🐞</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec0486d75050" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypass of Open Redirect Fix on lovable.dev via /..// Path Traversal]]></title>
            <link>https://medium.com/@rrozif96/bypass-of-open-redirect-fix-on-lovable-dev-via-path-traversal-d6ccb6e23a12?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6ccb6e23a12</guid>
            <category><![CDATA[report]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Sat, 09 May 2026 10:45:04 GMT</pubDate>
            <atom:updated>2026-05-09T10:45:04.729Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Disclaimer:</em></strong></blockquote><blockquote><em>This write-up is for </em><strong><em>educational purposes only</em></strong><em>. The vulnerability described below was discovered by another security researcher and disclosed on HackerOne (Report #3599248). I did not find this bug myself — I’m simply studying and explaining it to help others learn. Full credit goes to the original reporter.</em></blockquote><blockquote><em>🔗 Reference: </em><a href="https://hackerone.com/reports/3599248"><em>HackerOne Report #3599248</em></a></blockquote><h3>🧠 The Gist (in plain English)</h3><p>Picture this:</p><p>You just logged into lovable.dev. You get a link like:</p><p><a href="https://lovable.dev/auth/post-login?redirect=/dashboard">https://lovable.dev/auth/post-login?redirect=/dashboard</a></p><p>That redirect parameter tells the app where to send you after login. Normally, it should <strong>only</strong> send you to pages inside lovable.dev — like /dashboard or /settings.</p><p>But someone found a trick that makes the app send you to <strong>any website</strong> — even though the devs already tried to fix it once before.</p><h3>🔁 The Original Fix (from report #3581815)</h3><p>The first bug used something like /\\google.com to escape the redirect filter.</p><p>The devs blocked /\\ and /%5C (backslash patterns).</p><p><strong>But blocking bad patterns is like playing whack-a-mole.</strong></p><p>You block one, and another pops up.</p><h3>🔓 The Bypass (this report)</h3><p>The new payload is:</p><p>/..//google.com</p><p>Full URL:</p><p><a href="https://lovable.dev/auth/post-login?redirect=/..//google.com">https://lovable.dev/auth/post-login?redirect=/..//google.com</a></p><h3>What happens step-by-step:</h3><ol><li>You’re logged in to lovable.dev.</li><li>You click that special link (looks like it’s staying inside the site).</li><li>The server sees /..//google.com.</li><li>It normalizes (cleans up) the path:</li></ol><ul><li>/..//google.com → removes /.. → becomes //google.com</li></ul><ol><li>Server sends a redirect: Location: //google.com</li><li>Browser sees //google.com and thinks:</li><li><em>“Oh, two slashes means use the same protocol (https) and go to </em><a href="https://google.com/"><em>google.com</em></a><em>”</em></li><li>🎉 You’re now on https://google.com — an <strong>external</strong> site.</li></ol><h3>🧨 Why This Is Dangerous (Impact)</h3><p>This is not just “a weird redirect thing”. It’s a real phishing weapon:</p><ul><li><strong>Trusted domain</strong> — The link starts with lovable.dev, so victims trust it.</li><li><strong>Post-login</strong> — You’re already authenticated, so fake login pages look super convincing.</li><li><strong>Silent</strong> — You don’t notice you left the real site until it’s too late.</li></ul><p>Attackers could:</p><ul><li>Steal your session token via a fake login page.</li><li>Show you a “Session expired, please re-enter password” popup (but it’s their server).</li><li>Redirect to a malicious site that looks exactly like Lovable.</li></ul><h3>🛠️ Why the Fix Didn’t Work</h3><p>The first fix used a <strong>denylist</strong> (blocking /\\ and /%5C).</p><p>Denylists almost always fail because there are infinite bypasses.</p><p>In this case, the bypass worked because:</p><ul><li>The server normalized /..// into //</li><li>The browser interprets //domain.com as a <strong>protocol-relative external URL</strong></li><li>No one checked: <em>“Wait, is this really an internal path after normalization?”</em></li></ul><h3>✅ How to Actually Fix This (For Devs)</h3><p>Never trust a denylist. Instead:</p><h3>Option 1 (Safest): Allowlist</h3><p>Only allow specific paths:</p><p>javascript</p><pre>const allowed = [&quot;/dashboard&quot;, &quot;/settings&quot;, &quot;/profile&quot;];<br>if (!allowed.includes(redirect)) {<br>  redirect = &quot;/dashboard&quot;;<br>}</pre><h3>Option 2 (More flexible but still safe)</h3><p>Parse and validate the URL properly:</p><p>javascript</p><pre>let url;<br>try {<br>  url = new URL(redirect, &quot;&lt;https://lovable.dev&gt;&quot;);<br>} catch (e) { /* invalid */ }</pre><pre>// Block if it has a hostname (external)<br>if (url.hostname !== &quot;lovable.dev&quot; &amp;&amp; url.hostname !== &quot;&quot;) {<br>  // Reject — this is an external redirect<br>}</pre><h3>Option 3 (Block protocol-relative URLs)</h3><p>If you see // at the <strong>start</strong> of the string after normalization → reject it immediately.</p><h3>📚 Final Takeaways (for learners)</h3><p><strong>Concept</strong> <strong>Example</strong> Path traversal /..// gets normalized to // Protocol-relative URL //google.com = https://google.com Denylist bypass Blocked /\\ but forgot ..// Proper fix Allowlist + parse URL + reject external domains</p><p>This is a <strong>classic open redirect</strong> that kept coming back because the fix was reactive, not proactive.</p><h3>🙏 Shoutout</h3><p>Again, full credit to the original hacker who found this on HackerOne.</p><p>I’m just a curious learner breaking down their work to understand it better.</p><p>🔐 Stay curious, stay ethical, and always validate redirects with an allowlist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6ccb6e23a12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️‍♂️ I Accidentally Stalked a Dead LinkedIn Page (And So Could You)]]></title>
            <link>https://medium.com/@rrozif96/%EF%B8%8F-%EF%B8%8F-i-accidentally-stalked-a-dead-linkedin-page-and-so-could-you-5fc8c25539c2?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fc8c25539c2</guid>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Mon, 04 May 2026 23:33:37 GMT</pubDate>
            <atom:updated>2026-05-04T23:33:37.957Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>…Until LinkedIn fixed it.</strong></h4><p><em>Source: HackerOne report #3604288 — </em><a href="https://hackerone.com/reports/3604288"><em>Access to Deactivated LinkedIn Company Pages via Competitor Analytics API</em></a></p><h3>Let me tell you a little story.</h3><p>A few weeks ago, someone on HackerOne (LinkedIn’s bug bounty platform) found something… interesting.</p><p>They discovered that if you had access to LinkedIn’s <strong>Competitor Analytics API</strong> (which is meant for legitimate business users to spy on their rivals — in a legal way, of course), you could actually pull analytics data from <strong>company pages that were already dead and buried</strong>.</p><p>That’s right.</p><p>Deactivated. Gone. No longer existent. <em>RIP</em> pages.</p><p>But the API didn’t care. It kept serving their secrets.</p><h3>🤔 Wait — what’s the big deal?</h3><p>Imagine you shut down your company’s LinkedIn page. You hit delete. You move on.</p><p>But a competitor — or just a curious rando with an API key — could still access:</p><ul><li>Engagement metrics (likes, comments, shares)</li><li>Follower growth history</li><li>Post performance data</li><li>Maybe even aggregated member interaction info</li></ul><p>It’s like someone keeping a diary of your old house after you’ve moved out — and leaving the key under the mat for anyone with a badge.</p><h3>🔐 The technical mumbo-jumbo (made simple)</h3><p>This is a classic <strong>IDOR</strong> vulnerability.</p><p>That stands for <strong>Insecure Direct Object Reference</strong> — fancy talk for:</p><blockquote><em>“The API uses a direct ID to fetch data, but forgets to check if the user is </em>still allowed<em> to see it.”</em></blockquote><p>In this case:</p><ol><li>You call the API with a company_id parameter.</li><li>The API checks: “Does this company exist?” ✅</li><li>But it <em>doesn’t</em> check: “Is this company still active?” ❌</li></ol><p>So a deactivated page — with ID 67890 — still responds like a zombie.</p><h3>📅 Timeline (short &amp; sweet)</h3><p><strong>Date</strong> <strong>Event</strong> March 14, 2026 Vulnerability reported to LinkedIn via HackerOne March 24, 2026 Public disclosure (after fix) Status <strong>Resolved</strong> — LinkedIn patched it</p><p>No CVE ID yet, and no word on bounty amount. But respect to the hunter who found it.</p><h3>🧠 Why this matters (even if it’s “just Medium” risk)</h3><p>LinkedIn classified this as <strong>Medium severity (5.3)</strong>. Here’s why it’s still a problem:</p><p><strong>Risk</strong> <strong>Real-world impact</strong> Data leakage Historical analytics of dead companies can reveal strategy, growth, or failure patterns Privacy violation Member interactions (comments, reactions) may still be accessible Unfair advantage Competitors can mine data from pages that should be off-limits Compliance headaches GDPR and other privacy laws don’t like “oops, we let anyone see that”</p><p>So yeah — not critical, but definitely not cool.</p><h3>🛡️ What LinkedIn should have done (and probably does now)</h3><p>javascript</p><pre>// Before (vulnerable)<br>if (companyExists(companyId)) {<br>  return getAnalytics(companyId);<br>}</pre><pre>// After (fixed)<br>if (companyExists(companyId) &amp;&amp; companyIsActive(companyId)) {<br>  return getAnalytics(companyId);<br>}<br>throw new Error(&quot;Page not available&quot;);</pre><p>Also: validate user permissions <strong>even after</strong> the object exists. And check status flags. And maybe don’t serve dead people’s mail.</p><h3>😬 But wait — LinkedIn has other privacy issues too</h3><p>This isn’t LinkedIn’s only oopsie.</p><p>Around the same time, there were reports that LinkedIn was scanning browser extensions without clear permission — looking for job-search tools, competitor trackers, even extensions that might reveal religion or health conditions. <em>(Source: Hotdry Blog / The Coli forums)</em></p><p>So this API bug is part of a larger pattern:</p><p><strong>LinkedIn collects a lot. And sometimes protects it… poorly.</strong></p><h3>🧾 What you can do (as a user or dev)</h3><h3>If you’re a LinkedIn user:</h3><ul><li>You can adjust your data export preferences (though that won’t stop API bugs like this)</li><li>Be aware that even deactivated pages might have leaked data historically</li></ul><h3>If you’re a developer (any API, not just LinkedIn):</h3><ul><li>Always validate <strong>object status</strong> — not just existence</li><li>Use indirect references if possible (don’t expose raw DB IDs)</li><li>Test edge cases: deleted, suspended, expired, deactivated</li><li>Assume someone will try to request company_id=999999 just for fun</li></ul><h3>🎬 Final thoughts</h3><p>This bug was fixed. LinkedIn responded responsibly through HackerOne.</p><p>But it’s a great reminder that:</p><blockquote><strong><em>APIs are like unlocked doors. You can have the best lobby security in the world, but if you forget to check if the room still exists… people will walk right in.</em></strong></blockquote><p>So next time you build an endpoint that fetches data by ID, ask yourself:</p><p><em>“What happens if this resource is dead — but someone still has the key?”</em></p><h3>🔗 Source &amp; credit</h3><p>Full disclosure and technical details:</p><p>👉 <a href="https://hackerone.com/reports/3604288">HackerOne Report #3604288 — Access to Deactivated LinkedIn Company Pages via Competitor Analytics API</a></p><p>Thanks to the anonymous security researcher who reported this. And to LinkedIn for fixing it (even if it took a nudge).</p><p><em>Like this write-up? Clap 👏, share 🔁, and follow for more API security stories told without the jargon.</em></p><p><em>— Your friendly neighborhood bug hunter</em> 🐞</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fc8c25539c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Opened One API Endpoint and Accidentally Found of Student Records ️‍♂️]]></title>
            <link>https://medium.com/@rrozif96/i-opened-one-api-endpoint-and-accidentally-found-of-student-records-%EF%B8%8F-%EF%B8%8F-c6ce7632167f?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6ce7632167f</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bugs]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Sun, 03 May 2026 15:12:55 GMT</pubDate>
            <atom:updated>2026-05-03T15:17:06.314Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v6QR7hsfyP4B6bVAk9f93g.png" /></figure><h3>The Short Story (TL;DR)</h3><p>I stumbled upon an unauthenticated API endpoint at <a href="https://example.edu/api/mahasiswa.">https://example.edu/api/mahasiswa.</a></p><p>It happily served up student records — names, addresses, phone numbers, academic info — without asking for a single login or token.</p><p>All I had to do was change a number in the URL. 💀</p><h3>How I Found It</h3><p>I was casually browsing (no login, no special tools — just Chrome) and tried:</p><p>text</p><pre>&lt;https://example.edu/api/mahasiswa?nim=1234&gt;</pre><p>The server immediately responded with:</p><p>json</p><pre>{<br>  &quot;status&quot;: &quot;success&quot;,<br>  &quot;data&quot;: {<br>    &quot;nama_mahasiswa&quot;: &quot;GUGUGAGA&quot;,<br>    &quot;nim&quot;: &quot;2020&quot;,<br>    &quot;tanggal_lahir&quot;: &quot;2002-05-12&quot;,<br>    &quot;jenis_kelamin&quot;: &quot;GAY&quot;,<br>    &quot;email&quot;: &quot;farah@example.edu&quot;,<br>    &quot;nomor_handphone&quot;: &quot;123123123&quot;,<br>    &quot;agama&quot;: &quot;Islam&quot;,<br>    &quot;status_pernikahan&quot;: &quot;&quot;,<br>    &quot;status_mahasiswa&quot;: &quot;Aktif&quot;,<br>    &quot;nama_perguruan_tinggi&quot;: &quot;University of Example&quot;,<br>    &quot;tanggal_masuk_kuliah&quot;: &quot;2020-08-15&quot;,<br>    &quot;kode_perguruan_tinggi&quot;: &quot;EX001&quot;,<br>    &quot;status_perguruan_tinggi&quot;: &quot;Swasta&quot;,<br>    &quot;nama_program_studi&quot;: &quot;Informatika&quot;,<br>    &quot;jenjang&quot;: &quot;S1&quot;,<br>    &quot;semester&quot;: &quot;8&quot;,<br>    &quot;ipk&quot;: &quot;3.78&quot;,<br>    &quot;jumlah_sks&quot;: &quot;144&quot;,<br>    &quot;prov_kota_pt&quot;: &quot;Jawa Timur - Malang&quot;,<br>    &quot;alamat_domisili&quot;: &quot;Jl. Kalimantan No. 12, Malang&quot;,<br>    &quot;prov_kota_domisili&quot;: &quot;Jawa Timur - Malang&quot;,<br>    &quot;alamat_ktp&quot;: &quot;Jl. Merdeka No. 45, Surabaya&quot;,<br>    &quot;prov_kota_ktp&quot;: &quot;Jawa Timur - Surabaya&quot;<br>  }<br>}</pre><p>No 401. No 403. Just… pure PII served on a silver platter.</p><h3>The Real Problem</h3><p>Then I changed nim=1234 to nim=1235, 1236, etc.</p><p>Every single change gave me <strong>another student’s full data</strong>.</p><p>It felt like flipping through someone’s private filing cabinet.</p><p>With a simple script, an attacker could:</p><ul><li>Download thousands of student records in minutes</li><li>Collect names, addresses, phone numbers, and academic stats</li><li>Use the data for <strong>phishing</strong>, identity theft, or harassment</li></ul><h3>Why This Is Scary (aka Impact)</h3><ul><li><strong>PII exposure</strong> — Full names, addresses, phone numbers, and academic records leaked</li><li><strong>No authentication</strong> — Anyone on the internet can access it</li><li><strong>Mass data harvesting</strong> — Automating NIM enumeration is trivial</li><li><strong>Privacy violation</strong> — Students never consented to this</li><li><strong>Phishing risk</strong> — Attackers could call or email students pretending to be the university</li></ul><h3>What Should Be Fixed</h3><ul><li><strong>Add authentication</strong> — Even a simple API key or OAuth check would stop random access</li><li><strong>Implement rate limiting</strong> — Prevent mass enumeration</li><li><strong>Hide sensitive fields</strong> — Don’t return phone/address unless absolutely necessary</li><li><strong>Use pagination with access control</strong> — Don’t allow NIM enumeration like that</li></ul><h3>Responsible Disclosure Note</h3><p>I’ve anonymized the real target (example.edu).</p><p>The actual issue has been reported through proper channels.</p><p>Publishing this as an educational example so others don’t make the same mistake.</p><h3>Final Thoughts</h3><p>This wasn’t hacking.</p><p>This was typing ?nim= into a URL and getting lucky — or unlucky, depending on whose data was exposed.</p><p>If you build APIs, <strong>never trust the client</strong>.</p><p>And if you find something like this, report it.</p><p>But also, maybe write about it — because someone needs to hear this story.</p><p><em>Stay curious, but stay responsible.</em> 🧢</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6ce7632167f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Redirect via redirect Parameter on Signup&Sign in Endpoint]]></title>
            <link>https://medium.com/@rrozif96/open-redirect-via-redirect-parameter-on-signup-sign-in-endpoint-9c75a91bdaf8?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c75a91bdaf8</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Fri, 01 May 2026 10:06:52 GMT</pubDate>
            <atom:updated>2026-05-01T10:09:06.254Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUKsPaxnZoSwYJMefCXgag.png" /></figure><p>I found a small but interesting issue on one of your assets — specifically on komunitas.example.com.</p><h3>In a Nutshell</h3><p>There’s an <strong>Open Redirect</strong> vulnerability on the /auth/signup endpoint using the redirect parameter.</p><p>This means both logged-in and non-logged-in users can be silently sent to any external website without validation.</p><h3>Where exactly?</h3><p><a href="https://komunitas.example.com/auth/signup?redirect=">https://komunitas.example.com/auth/signup?redirect=</a></p><h3>How to reproduce (super easy)</h3><ol><li>Log into komunitas.example.com (or even without login, still works).</li><li>Visit this link:</li><li><a href="https://komunitas.example.com/auth/signup?redirect=https://evil.com">https://komunitas.example.com/auth/signup?redirect=https://evil.com</a></li><li>The server responds with a <strong>302 redirect</strong> to https://evil.com — no questions asked.</li></ol><h3>What I tried (and worked)</h3><ul><li><a href="https://evil.com/">https://evil.com</a></li><li>//evil.com</li><li>https:%2F%2Fevil.com</li><li><a href="https://sub.evil.com/">https://sub.evil.com</a></li></ul><h3>Sample response from server</h3><p>text</p><pre>HTTP/2 302 Found<br>Location: &lt;https://evil.com&gt;</pre><h3>Why bother?</h3><p>This could be used for:</p><ul><li>Phishing attacks (<a href="https://evil.com/">evil.com</a> pretending to be <a href="https://example.com/">example.com</a>)</li><li>Redirecting users to malware/scam sites</li><li>Abusing trust in the real domain name</li></ul><h3>Quick fix suggestions</h3><ul><li>Validate the redirect parameter strictly.</li><li>Allow <strong>only relative paths</strong> (e.g., /dashboard) or a whitelist of safe domains.</li><li>Block external URLs (especially http / https).</li></ul><p>Cheers,</p><p>A friendly security researcher</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c75a91bdaf8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use-After-Free in curl’s SMB connection reuse]]></title>
            <link>https://medium.com/@rrozif96/use-after-free-in-curls-smb-connection-reuse-3c6653ac9d57?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c6653ac9d57</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bugs]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 01:06:38 GMT</pubDate>
            <atom:updated>2026-04-30T01:06:38.791Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Learning from HackerOne report #3591956</strong></p><p><em>By: Security learner (based on real disclosure)</em></p><h3>🧠 What I studied</h3><blockquote>This write-up is based on a real vulnerability report I found on HackerOne: <a href="https://hackerone.com/reports/3591956">Report #3591956</a>.I’m sharing this as part of my learning journey in security research — all credit to the original reporter and the curl team.</blockquote><h3>🧃 The bug in one sentence</h3><p>If you tell curl to fetch <strong>two different SMB files from the same server</strong>, it might crash because it tries to read memory that was already freed — a <strong>Use-After-Free</strong>.</p><h3>🧸 Let’s make it super simple</h3><p>Imagine you borrow a sticky note from your friend’s desk (that’s req-&gt;path pointing into smbc-&gt;share).</p><p>Then you return the whole desk to your friend (that’s free(smbc-&gt;share)).</p><p>But later, you still try to <strong>read what’s on that sticky note</strong> (that’s strlen(req-&gt;path)).</p><ul><li>The note is gone.</li><li>The desk might now hold someone else’s stuff.</li><li>Result? Confusion → crash → maybe worse.</li></ul><p>That’s exactly what happens in curl’s SMB code.</p><h3>🧩 Technical bits (simplified)</h3><h3>What’s happening behind the scenes</h3><ol><li>curl parses the first SMB URL like</li><li>smb://server/share1/file1</li><li>→ it creates a connection object and stores &quot;share1\\0file1\\0&quot;.</li><li>→ req-&gt;path just <strong>points to</strong> &quot;file1&quot; <em>inside</em> that storage.</li><li>When you give a second URL with the same server but different share:</li><li>smb://server/share2/file2</li><li>→ curl reuses the connection (good for speed).</li><li>→ But in the process, it <strong>frees the old connection’s storage</strong> that req-&gt;path still points to!</li><li>Later, when sending the SMB request</li><li>→ strlen(req-&gt;path) tries to read the now-freed memory.</li><li>→ <strong>Boom</strong> — ASAN screams: heap-use-after-free.</li></ol><h3>⚠️ Why should we care?</h3><ul><li><strong>Crash (DoS)</strong> — an app using libcurl could just die.</li><li><strong>Info leak</strong> — the freed memory might get reused for something else (like a password or crypto key), and a strlen() read could expose it.</li><li><strong>Potential code execution</strong> — if an attacker can control what fills that freed memory before the read, they might trick curl into doing bad things.</li></ul><p>And the scariest part?</p><blockquote><em>You don’t even need a real SMB server. A fake one, or just two URLs in one command, can trigger this.</em></blockquote><h3>🛠 How to reproduce (the boring but useful version)</h3><p>bash</p><pre># Build curl with ASAN &amp; SMB<br>./configure --with-openssl --enable-smb<br>make CFLAGS=&quot;-fsanitize=address -g&quot; LDFLAGS=&quot;-fsanitize=address&quot;</pre><pre># Run a fake SMB server (provided by reporter)<br>python3 fake_smb_server.py 5445</pre><pre># Trigger the bug<br>./src/.libs/curl -u guest:guest \\<br>  &quot;smb://127.0.0.1:5445/share1/file1&quot; -o /dev/null \\<br>  &quot;smb://127.0.0.1:5445/share2/file2&quot; -o /dev/null</pre><p>ASAN will print a colorful “heap-use-after-free” error.</p><h3>🩹 How to fix (conceptually)</h3><p>Make req-&gt;path <strong>independent</strong> – copy the string instead of just pointing into connection-owned memory.</p><p>Or, when connection is freed, set all related request pointers to NULL.</p><h3>🙌 Final thoughts — as a learner</h3><p>I learned this from HackerOne report #3591956. Huge thanks to the reporter and the curl team. Even curl — a tool millions use — can have simple but dangerous memory bugs. That’s why we need automated testing (fuzzing, ASAN) and manual reviews. Never assume software is bulletproof.</p><h3>🔗 References</h3><ul><li>Original HackerOne report: <a href="https://hackerone.com/reports/3591956">https://hackerone.com/reports/3591956</a></li><li>Curl SMB implementation: lib/smb.c</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c6653ac9d57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blinded by 403: How I Almost Missed a Critical .git Exposure (On a Government Site)]]></title>
            <link>https://medium.com/@rrozif96/blinded-by-403-how-i-almost-missed-a-critical-git-exposure-on-a-government-site-310c11ee03ff?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/310c11ee03ff</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bugs]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Wed, 29 Apr 2026 13:36:38 GMT</pubDate>
            <atom:updated>2026-04-29T13:36:38.372Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TfAsUhbPzKXrXFnyvoX9fg.png" /></figure><blockquote>A short story about finding a security hole on an Indonesian government website</blockquote><h3>The Beginning: Just Curious About .git</h3><p>So there I was, doing some casual security testing (within reasonable boundaries, of course), when I opened:</p><p><a href="https://eturjawali.korlantas.polri.go.id/"><strong>https://rendom.rendom.target.go.id</strong></a></p><p>Nothing special. Looks like a typical government website.</p><p>But I got curious… many developers these days forget to <strong>delete the .git folder</strong> when deploying to production. The .git folder is where all the code history, configuration, and sometimes even passwords are stored.</p><p>“Eh, let me just check.”</p><h3>First Attempt: Blocked 🤔</h3><p>I tried accessing:</p><p><a href="https://rendom.rendom.target.go.id/">https://rendom.rendom.target.go.id</a>/.git/</p><p>Result?</p><p><strong>403 Forbidden.</strong></p><p><em>“Alright, maybe it’s safe. They blocked it.”</em></p><p>I almost closed the tab and moved on.</p><h3>But Wait…</h3><p>I remembered one lesson from bug bounty hunting:</p><blockquote><em>Sometimes a 403 on the root folder </em><strong><em>doesn’t mean the files inside are safe</em></strong><em>.</em></blockquote><p>So I tried accessing specific files inside the .git folder:</p><ul><li>/.git/config</li><li>/.git/index</li><li>/.git/HEAD</li></ul><p>And the result? <strong>Success. All of them loaded.</strong></p><p>What I thought was “safe” turned out to be just a fence with the gate wide open.</p><p>The root folder was blocked from showing directory listings, but <strong>individual files inside were freely accessible</strong>.</p><h3>Time to Bring Out Git-Dumper</h3><p>After confirming the files were accessible, I ran:</p><p>bash</p><pre>git-dumper &lt;https://rendom.rendom.terget.go.id/.git/&gt; dumped-repo/</pre><p>What happened in the next 5 minutes?</p><ul><li>Entire commit history (including deleted ones ❌)</li><li>Full source code down to config files</li><li>And the most dangerous one…</li></ul><p>/application/config/database.php</p><p>Found it!</p><p>The contents looked something like this:</p><p>php</p><pre>$db[&#39;default&#39;] = array(<br>    &#39;hostname&#39; =&gt; &#39;localhost&#39;,<br>    &#39;username&#39; =&gt; &#39;root&#39;,<br>    &#39;password&#39; =&gt; &#39;SuperSecretPassword123&#39;,<br>    &#39;database&#39; =&gt; &#39;eturjawali_db&#39;<br>);</pre><p><strong>Host, username, password, database name</strong> — complete package.</p><h3>The Impact? Don’t Ask.</h3><p>With this file, an attacker could:</p><ol><li><strong>Read the entire database</strong> (citizen data, reports, etc.)</li><li><strong>At minimum, steal the source code</strong> to find other vulnerabilities</li><li><strong>Log in using those credentials</strong> if the database is accessible from the outside</li></ol><p>I didn’t proceed to the database — testing ethics and responsibility. But if a malicious actor found this? Big trouble.</p><h3>Why Did This Happen?</h3><p>Two root causes:</p><ol><li><strong>The .git folder still exists on the production server</strong> (a cardinal sin in deployment)</li><li><strong>The 403 rule only applies to the root folder</strong> — like installing an alarm on the garage door while leaving the kitchen window wide open</li></ol><p>The server configuration essentially looked like this:</p><p>✅ /web/.git/ → 403 Forbidden</p><p>❌ /web/.git/config → 200 OK</p><p>Clearly inconsistent.</p><h3>How to Fix It?</h3><p>Simple. The proper configuration should be:</p><p><strong>Nginx:</strong></p><p>nginx</p><pre>location ~ /\\.git/ {<br>    deny all;<br>    return 404;<br>}</pre><p><strong>Apache:</strong></p><p>apache</p><pre>&lt;LocationMatch &quot;^/.*\\.git/&quot;&gt;<br>    Require all denied<br>&lt;/LocationMatch&gt;</pre><p>Or the simplest solution: <strong>delete the .git folder from the production server</strong> and use git archive / CI/CD for clean deployments.</p><h3>Moral of the Story</h3><ol><li><strong>Don’t just see 403 and give up.</strong> Sometimes the fence is solid, but you can peek through the windows.</li><li><strong>The .git folder is a double-edged sword.</strong> Once it lives on a production server, disaster awaits.</li><li><strong>Rotate leaked database passwords.</strong> Right now.</li></ol><h3>Final Thoughts</h3><p>I’ve reported this vulnerability following proper procedures. I didn’t continue exploitation to the database because we’re not here to cause damage.</p><p>But to my fellow developers managing web servers:</p><blockquote>“Don’t let your server become a .git museum.”</blockquote><p>If there’s a .git folder on your production server — delete it! Or at least configure the blocking rules properly, not half-heartedly.</p><p>If you enjoyed this writeup, follow my Medium for more security stories that (hopefully) won’t give you a headache.</p><p><em>Cheers, stay safe, and don’t be the developer who forgets to delete .git 🫡</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=310c11ee03ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ One Weird Query String That Let Anyone Hijack Any Account in Rocket.Chat]]></title>
            <link>https://medium.com/@rrozif96/one-weird-query-string-that-let-anyone-hijack-any-account-in-rocket-chat-38725c7ddc9f?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/38725c7ddc9f</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bounties]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Mon, 27 Apr 2026 07:12:30 GMT</pubDate>
            <atom:updated>2026-04-27T07:12:30.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZEDvR46xBOh3mZm-Y5AAQ.png" /></figure><p><strong>Disclaimer:</strong></p><p><em>This vulnerability was discovered and reported by another security researcher. I’m just explaining it in simple words for educational purposes. Full credit goes to the original reporter [</em><strong><em>reports/3564655]</em></strong><em>.</em></p><p>Ever seen a vulnerability so simple yet so scary?</p><p>This is one of them.</p><p>Imagine you’re running <a href="https://rocket.chat/">Rocket.Chat</a> — an open-source team chat app like Slack.</p><p>Now imagine someone from across the internet can log into your account just by adding a few weird characters to a URL.</p><p>No password. No email. No permission.</p><p>Sounds like a movie? Nah, it’s real. And it’s called <strong>NoSQL injection</strong>.</p><h3>🧠 The TL;DR (Too Long; Didn’t Read)</h3><ul><li><strong>Bug type:</strong> NoSQL injection via access_token parameter</li><li><strong>Impact:</strong> Unauthenticated account takeover</li><li><strong>Attack vector:</strong> ?access_token[$ne]=null</li><li><strong>One condition:</strong> At least one OAuth token must exist in the database</li><li><strong>Affected versions:</strong> Pretty much all older <a href="https://rocket.chat/">Rocket.Chat</a> versions before patches in late 2024 / early 2025</li></ul><h3>🔍 What Actually Happens Under the Hood</h3><p><a href="https://rocket.chat/">Rocket.Chat</a> allows users to log in using OAuth (login with Google, GitHub, etc.).</p><p>When you do that, the app stores an OAuth token in MongoDB.</p><p>Normally, to fetch your token, the app does something like:</p><p>javascript</p><pre>db.tokens.findOne({ access_token: &quot;real_token_here&quot; })</pre><p>But here’s the problem:</p><p>They didn’t check if access_token is actually a string.</p><p>So when an attacker sends:</p><p>text</p><pre>&lt;https://target.com/login?access_token[$ne]=null&gt;</pre><p>The backend turns that into:</p><p>javascript</p><pre>db.tokens.findOne({ access_token: { $ne: null } })</pre><p>That means:</p><blockquote><em>“Give me </em><strong><em>any</em></strong><em> token in the database where access_token is NOT null”</em></blockquote><p>And MongoDB just… gives the first one it finds.</p><p>Poof. Now the attacker has someone’s valid OAuth token.</p><h3>🎯 Why This Is So Dangerous</h3><ul><li>✅ <strong>No login required</strong> — completely unauthenticated</li><li>✅ <strong>Works remotely</strong> — just a single HTTP GET request</li><li>✅ <strong>Instant account takeover</strong> — you become another user</li><li>✅ <strong>No logs suspicion</strong> — looks like a normal API call</li></ul><p>The only tiny requirement:</p><p>At least one user must have ever logged in via OAuth.</p><p>In most real-world deployments? That’s guaranteed.</p><h3>🛠️ Example Attack in Action</h3><p>Let’s say <a href="https://rocket.chat/">Rocket.Chat</a> is running at:</p><p>text</p><pre>&lt;https://chat.victim.com&gt;</pre><p>Attacker opens browser console or uses curl:</p><p>bash</p><pre>curl &quot;&lt;https://chat.victim.com/api/v1/login?access_token[$ne]=null&gt;&quot;</pre><p>Server responds with:</p><p>json</p><pre>{<br>  &quot;status&quot;: &quot;success&quot;,<br>  &quot;data&quot;: {<br>    &quot;userId&quot;: &quot;some_user_id&quot;,<br>    &quot;authToken&quot;: &quot;real_oauth_token_12345&quot;<br>  }<br>}</pre><p>Attacker then uses that token to make authenticated API calls or log into the web interface.</p><p>Game over.</p><h3>🧹 How It Got Fixed</h3><p><a href="https://rocket.chat/">Rocket.Chat</a> patched this by:</p><ol><li><strong>Validating the type</strong> of access_token — it must be a string</li><li><strong>Rejecting any query</strong> that contains MongoDB operators like $ne, $gt, $regex, etc. in auth-related parameters</li></ol><p>Example fix (simplified):</p><p>javascript</p><pre>if (typeof accessToken !== &#39;string&#39;) {<br>  throw new Error(&#39;Invalid token format&#39;);<br>}</pre><h3>🧯 Who Should Care?</h3><ul><li><strong>Self-hosted </strong><a href="https://rocket.chat/"><strong>Rocket.Chat</strong></a><strong> admins</strong> (especially if still on older versions)</li><li><strong>Pentesters</strong> looking for NoSQL injection</li><li><strong>Bug bounty hunters</strong> — this pattern exists in many Node.js + MongoDB apps</li></ul><h3>✅ Final Casual Advice</h3><p>If you’re running <a href="https://rocket.chat/">Rocket.Chat</a>:</p><p>bash</p><pre># Check your version<br># Upgrade immediately if below:<br>8.0.3, 8.1.2, 8.2.1, 8.3.0, 7.13.5, 7.12.6, 7.11.6, 7.10.9</pre><p>If you’re a dev:</p><blockquote><em>Never trust user input. Especially </em><em>?access_token[$ne]=null — that’s not a token, that’s a cry for help.</em></blockquote><p><em>Stay safe, sanitize your inputs, and don’t let MongoDB operators play as access tokens. ✌️</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38725c7ddc9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Race Condition Allows Users to Obtain More Than 1 Free Domain]]></title>
            <link>https://medium.com/@rrozif96/race-condition-allows-users-to-obtain-more-than-1-free-domain-a1db2b12a380?source=rss-995ba431bfeb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1db2b12a380</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[nocxs]]></dc:creator>
            <pubDate>Thu, 23 Apr 2026 23:12:13 GMT</pubDate>
            <atom:updated>2026-04-23T23:12:13.076Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Disclaimer: This is a report from someone else that I am studying, not my own finding. (Source: Automattic | Report #2616045 — Race condition on add 1 free domain | HackerOne)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEvkkk2OAitiowmO7vTt2Q.png" /></figure><p><strong>Affected Platform:</strong></p><p><a href="https://wordpress.com/">wordpress.com</a> (related to Gravatar service)</p><p><strong>Brief Description</strong></p><p>When a platform offers free accounts, they typically limit certain features (e.g., only 1 free domain claim per account). If a race condition flaw exists, a user can exploit it to bypass these limits and obtain more than they should.</p><p>In this case, a user with a free <a href="https://wordpress.com/">WordPress.com</a> account (via Gravatar) could obtain more than 1 free domain by sending multiple parallel requests during the domain claim transaction process.</p><p><strong>Steps to Reproduce (relaxed style):</strong></p><ol><li>Create a free account on Gravatar.</li><li>Log in to that account, then select the free domain claim menu (usually in the profile section — hidden menu, intentionally redacted as █████).</li><li>After clicking, you will be redirected to a <a href="https://wordpress.com/">WordPress.com</a> URL like:</li><li>https://wordpress.com/start/domain-for-gravatar/domain-only?search=yes&amp;new=(your gravatar domain name)</li><li>Continue the process until you reach the checkout page (even though it’s free, there is still a transaction process).</li><li>Reach this endpoint:</li><li>public-api.wordpress.com/rest/v1.1/me/transactions? ██████</li><li>Prepare a group of requests (using Burp Suite or similar tools), then duplicate that request 1–15 times.</li><li>Change the “meta” parameter in each request to a different name (e.g., “meta1”, “meta2”, etc.).</li><li>Send all requests simultaneously / in parallel.</li><li>Result: More than 1 free domain will be obtained (even though only 1 per account is intended).</li></ol><p>Full PoC details are in the attached files (screenshots, video, or request/response logs).</p><p><strong>Impact:</strong></p><p>A malicious user could obtain more than 1 free domain on <a href="https://wordpress.com/">WordPress.com</a>, which should not be possible on a free account. This harms the platform because of:</p><ul><li>Abuse of resources (free domains)</li><li>Potential illegal resale</li><li>Bypassing feature limitation systems</li></ul><p><strong>Remediation Recommendations:</strong></p><ul><li>Use a locking mechanism (e.g., row-level lock or Redis lock) during the domain claim process.</li><li>Ensure transactions are atomic so only one request succeeds.</li><li>Use an anti-replay token (e.g., a single-use nonce).</li><li>Limit request frequency per user in a short time window (rate limiting).</li></ul><p><strong>Reference:</strong></p><p>CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization (‘Race Condition’)</p><p>Hope this helps for learning purposes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1db2b12a380" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>