<?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 @0xuserm9 on Medium]]></title>
        <description><![CDATA[Stories by @0xuserm9 on Medium]]></description>
        <link>https://medium.com/@0xuserm9?source=rss-834567d4ece4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jvRYiJkaUrE0TkqUrFQORg.jpeg</url>
            <title>Stories by @0xuserm9 on Medium</title>
            <link>https://medium.com/@0xuserm9?source=rss-834567d4ece4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:10:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xuserm9/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[The Hidden Weapon: How I Turn Mass Assignment into Bounties]]></title>
            <link>https://medium.com/@0xuserm9/the-hidden-weapon-how-i-turn-mass-assignment-into-bounties-459d7c35a727?source=rss-834567d4ece4------2</link>
            <guid isPermaLink="false">https://medium.com/p/459d7c35a727</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[mass-assignment]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[@0xuserm9]]></dc:creator>
            <pubDate>Sun, 22 Mar 2026 16:16:13 GMT</pubDate>
            <atom:updated>2026-07-14T11:00:30.056Z</atom:updated>
            <content:encoded><![CDATA[<h4>إِنَّ اللَّهَ وَمَلَائِكَتَهُ يُصَلُّونَ عَلَى النَّبِيِّ ۚ يَا أَيُّهَا الَّذِينَ آمَنُوا صَلُّوا عَلَيْهِ وَسَلِّمُوا تَسْلِيمًا</h4><p><strong>Salam Alaikum, guys!</strong> Hope you’re all doing well.</p><p>In the modern bug bounty landscape, the “low-hanging fruit” is a myth. The attack surface has evolved. We aren’t just looking for basic reflected XSS or simple SQLi anymore; the real battleground is deep within complex APIs. To find the criticals, you have to stop looking at what the front-end UI allows, and start targeting the backend business logic the developer never intended for you to see.</p><p>Today, we are talking about <strong>Mass Assignment</strong> a vulnerability so prevalent and devastating that it consistently holds a top spot in the <strong>OWASP API Security Top 10</strong> (currently categorized under <em>API3: Broken Object Property Level Authorization</em>). It is the hidden weapon that can turn a seemingly secure endpoint into a critical severity vulnerability. I’ll break down what it is, share my exact <strong>custom methodology</strong> for hunting it, and show you two real-world scenarios where it paid off big time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*7DGqICMaq62oCl__Kq8ITw.jpeg" /></figure><h4>📖 What is Mass Assignment?</h4><p>In modern web development, frameworks (like Ruby on Rails, Spring, or NodeJS) try to make developers’ lives easier by automatically binding incoming HTTP request data (like JSON or form parameters) directly to internal database objects.</p><p><strong>Mass Assignment</strong> happens when a developer allows the user to update an object without explicitly defining <strong><em>which</em> fields are allowed </strong>to be updated. If the database table has a role or is_admin column, and the developer doesn&#39;t filter it out, an attacker can simply pass &quot;role&quot;:&quot;admin&quot; in the JSON body, and the framework will blindly assign it.</p><h3>💻 The Developer Mistake (A Simple Code Example)</h3><p>Here is how a developer might accidentally introduce this vulnerability in Node.js/Express:</p><pre>// ❌ VULNERABLE CODE: Passing the entire request body to the database<br>app.put(&#39;/api/users/current&#39;, async (req, res) =&gt; {<br>    try {<br>        // The developer expects req.body to only contain {&quot;email&quot;: &quot;new@email.com&quot;}<br>        // But the framework blindly accepts and updates whatever we send!<br>        await User.update(req.body, { where: { id: req.user.id } });<br>        res.send(&quot;Profile updated!&quot;);<br>    } catch (err) {<br>        res.status(500).send(&quot;Error&quot;);<br>    }<br>});</pre><p>To fix this, the developer should have used an allow-list, explicitly stating that only specific fields (like email or bio) can be updated.</p><h3>🕵️‍♂️ My Fuzzing Methodology</h3><p>To find these hidden parameters, you have to look where the app isn’t telling you to look. Here is the exact methodology I use to hunt for hidden parameters:</p><ol><li><strong>Map Everything:</strong> I open my target and manually click every single function, link, and setting in the application. The goal is to populate my <strong>Burp Suite history</strong> with as many endpoints and parameters as possible.</li><li><strong>Build a Custom Wordlist:</strong> I use the <a href="https://github.com/xnl-h4ck3r/GAP-Burp-Extension">GAP-Burp-Extension</a>. In the tool options, I configure it to extract all <strong>JSON parameters</strong> from both the <strong><em>requests</em></strong> and the <strong><em>responses</em></strong>, as well as URL paths. This builds a highly contextual, <strong>target-specific wordlist</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*2HqSsdKVMYXbVcSaiuBdJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*k2NKfCB51CX_CT5v-0Rgvw.png" /></figure><p>3.<strong> Fuzz the Endpoints:</strong> Once I have my custom wordlist, I pick an endpoint (GET, POST, PUT, etc.). I fire up <a href="https://github.com/PortSwigger/param-miner">Param Miner</a> in Burp.</p><ul><li>If it’s a GET request, I use “Guess query params”.</li><li>If it’s a POST/PUT request, I use “Guess body params”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZJf5dQgGZFbqx30sO9FQQ.png" /></figure><ul><li>I load my GAP wordlist and let it run.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dtKc6oMUcgrrt4DdZYw0ng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*le8hspYR4IJne3frBDubig.jpeg" /></figure><h3>🔥 Scenario 1: The Dead End IDOR turned Million-User PII Leak</h3><p>While hunting on a public bug bounty program, I spent quite a bit of time mapping out the target. Eventually, I stumbled across a GET request that looked like this:</p><pre>GET /api/v2/managers/{managerId}</pre><p>Naturally, my first instinct was to test for an Insecure Direct Object Reference (IDOR). I swapped the {managerId} with the ID of another user, fully expecting to see their data.</p><p><strong><em>Access Denied.</em></strong></p><p>The endpoint wasn’t vulnerable to a standard IDOR. Many hunters would give up here, assuming it’s secure. But I decided to dig deeper. I sent the request to Param Miner, loaded up the custom wordlist I generated with GAP, and started fuzzing for hidden query parameters.</p><p>Suddenly, Param Miner got a hit: userId.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T-wY39Ho6qPzrevptG8OQw.png" /></figure><p>I modified my request to include the hidden parameter:</p><pre>GET /api/v2/managers/12345?userId=[VICTIM_ID]</pre><p><strong>Boom.</strong> The server responded with a massive JSON object leaking the Personally Identifiable Information (PII) of the victim. Because of this hidden Mass Assignment parameter, I could access the full names and emails of millions of users on the platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*1Wq4bKyfiMhli1iqqEI46w.png" /></figure><h3>🔥 Scenario 2: Chaining Mass Assignment to HTML Injection</h3><p>This target was a bit trickier. The application only allowed users to log in via <strong>OAuth</strong> (Google/Apple). Because of this, your <strong>profile name</strong> in the app was strictly locked to your OAuth name. You <strong>couldn’t change</strong> it in the UI.</p><p>The app had an <strong>“Invite” feature</strong> where you could send an email and a custom message to invite a friend. I tested the message field for HTML injection, hoping I could get an &lt;a&gt; tag to render in the victim&#39;s email. <strong>It was properly sanitized</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*cDF5TQuFaGXRRc3qMblnLg.gif" /></figure><p>I sat back and thought: <em>What if I can </em><strong><em>change my name</em></strong><em>, and inject the HTML payload there? When the email sends, it will say “Invited by [My Name]”, and the payload will trigger!</em></p><p>I went to the <strong>Settings / Account page</strong> and intercepted the background requests. I found a <strong>PUT request</strong> used to update minor account settings:</p><pre>PUT /api/users/current</pre><p>Since there was no UI option to change my name, I fell back to my methodology. I <strong>fuzzed</strong> the JSON body of this PUT request using Param Miner and my GAP wordlist.</p><p>Param Miner flagged a <strong>hidden parameter</strong>: name.</p><p>I intercepted the request and injected my payload:</p><pre>PUT /api/users/current<br>Host: exmple.com<br>Content-Type: application/json<br><br>{<br>  &quot;name&quot;: &quot;&lt;a href=\&quot;evil.com\&quot;&gt;click here to join&lt;/a&gt;&quot;,<br>...<br>  other_setting<br>}</pre><p>To my surprise, the server accepted it! Because the developer failed to filter the allowed update fields, Mass Assignment allowed me to overwrite my OAuth-locked name. When I sent an invite email, the <strong>HTML injection</strong> executed perfectly in <strong>the victim’s inbox</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*lGGybE09xnDdt_WNeGc--g.png" /><figcaption>HTML INJECTION</figcaption></figure><p><strong>Thank you for reading!</strong></p><p>Please <strong>share your feedback</strong> with me in the comments, and if you have any questions <strong>do not hesitate to let me know.</strong></p><p><strong>Happy hunting! 🏹</strong></p><ul><li><strong>X (Twitter):</strong> <a href="https://x.com/MaroineYoucefi">@MaroineYoucefi</a></li><li><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/merouane-youcefi-44b44a284/">Merouane Youcefi</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*8vcBX89bU-W2Fw4JCrkLrg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=459d7c35a727" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Found 4 Bugs in a NASA Scope]]></title>
            <link>https://medium.com/@0xuserm9/how-i-found-4-bugs-in-a-nasa-4446fd45a074?source=rss-834567d4ece4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4446fd45a074</guid>
            <category><![CDATA[nasa]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[xs]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[@0xuserm9]]></dc:creator>
            <pubDate>Sat, 13 Sep 2025 15:47:11 GMT</pubDate>
            <atom:updated>2025-09-13T18:29:54.373Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>بِسْمِ اللَّـهِ الرَّحْمَٰنِ الرَّحِيمِ، وَالصَّلَاةُ وَالسَّلَامُ عَلَىٰ الْمَبْعُوثِ رَحْمَةً لِلْعَالَمِينَ ﷺ</strong></p><p><strong>اللهم انصر اخواننا المستضعفين في غزة وكن لهم عونا ونصيرا</strong></p><p>I’m Merouane Youcefi, a 22-year-old bug hunter from Algeria. This is My first writeup, and I’m excited to share how I found <strong>four related vulnerabilities on a NASA subdomain</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*zL-PEdKRujqET9gLQ8JjrA.png" /><figcaption>4 xss</figcaption></figure><p><strong>Let’s dive in! :))</strong></p><h3>The Recon: Starting with a Simple Dork</h3><p>NASA’s scope (*.nasa.gov) is huge. I needed a smart way to find targets. I went to the <a href="https://www.exploit-db.com/google-hacking-database"><strong>Exploit-DB Google Hacking Database</strong></a> and used a simple dork:</p><blockquote>intitle:&quot;Index Of&quot; site:*.*.nasa.gov</blockquote><p>This helps find <strong>open directories</strong>. After looking through the results, <strong>I found a subdomain lets call it</strong>: x.x.nasa.gov. I visited it and looked around <strong>manually</strong>, but nothing interesting showed up.</p><h3>The Wayback Machine is a Goldmine</h3><p>If the live site has nothing, check the history. I used the <strong>Wayback Machine’s</strong> API to find pages:</p><blockquote><a href="https://web.archive.org/cdx/search/cdx?url=ex.ex.nasa.gov&amp;matchType=domain&amp;fl=original&amp;collapse=urlkey&amp;output=text&amp;filter=statuscode:200">https://web.archive.org/cdx/search/cdx?url=x.x.nasa.gov&amp;matchType=domain&amp;fl=original&amp;collapse=urlkey&amp;output=text&amp;filter=statuscode:200</a></blockquote><p>I started visiting each URL <strong>one by one</strong>. It took time, but I finally found an <strong>old search page</strong>. This looked promising.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*vyVbtXQS9rQ-5UVPV5DRvA.png" /><figcaption>here</figcaption></figure><h3>Finding the First XSS and Discovering Three More:</h3><p>I filled out the options and intercepted the request with Burp. I saw parameters like iyear, imonth, and iday. I tested each one with a basic payload:</p><pre>gg&quot;&gt;&lt;hh&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*tNdlkgSeAebBkZCCvHLuEQ.png" /><figcaption>request</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*PydV7Vtg1JZIoYEvpZvpuA.png" /><figcaption>response</figcaption></figure><p>The imonth= parameter reflected my text right back into the page. This was a good sign! I quickly tried a real XSS payload:</p><pre>&quot;&gt;&lt;img src=x onerror=alert(&#39;HackedByUserm9&#39;)&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*DC6RHmtbybm2QYc2k0a0bg.png" /><figcaption>popup</figcaption></figure><p>I sent the request and… the <strong>alert box popped up!</strong> I had found a <strong>XSS.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*YYY3Ck-vQWvKa4FelDPcDg.gif" /><figcaption>My Honest Reaction xD</figcaption></figure><p>But my hunting didn’t stop there. Using the same techniques, I discovered the same vulnerability existed on <strong>three additional endpoints</strong> within the same subdomain. What started as a single find quickly turned into a discovery of four separate instances of the same vulnerability class.</p><p>But there was a problem. <strong>The XSS only worked in a POST request</strong>. This is often called a <strong>“Self-XSS”</strong> and is usually <strong>low severity</strong> because you can’t easily trick someone into doing it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*SgcfbINaQpFKCamvrRpzTA.gif" /><figcaption>hh</figcaption></figure><h3>Escalating the Bug: Adding CSRF to the Mix</h3><p>I didn’t want to report low-severity bugs. I thought, “<strong>How can I make this worse?</strong>”</p><p>The answer was <strong><em>CSRF</em></strong> (Cross-Site Request Forgery). If I could make a malicious webpage that automatically sends the POST request for me, I could trigger the <strong>XSS in a victim’s browser</strong>.</p><p>I don’t have Burp Pro, so I used a free tool called <a href="https://csrfshark.github.io/app/"><strong><em>CSRFShark</em></strong></a>. I pasted my POST request into it, and it generated a perfect <strong>HTML PoC</strong> for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9C_fm_wUTUVYVnp7wLNFcg.png" /><figcaption>csrf poc</figcaption></figure><p>Now, instead of just Self-XSS flaws, I had four instances of <strong>CSRF vulnerabilities leading to Reflected XSS</strong>. This is much more serious because an attacker could use it to steal cookies or perform actions on the victim’s behalf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iTEQiUgEsTuPzDmICVI4IQ.png" /><figcaption>csrf poc</figcaption></figure><h3>The Result and NASA’s Recognition</h3><p>I reported all four vulnerabilities to NASA through their responsible disclosure program. After about <strong>two months of waiting</strong>, I received a letter of appreciation from their security team acknowledging my findings. They classified the issues as <strong>P3</strong> (Medium severity) vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nu6f6XH0FJGIVO9cOitQUw.jpeg" /><figcaption>letter of appreciation from nasa</figcaption></figure><h3>What I Learned:</h3><ol><li><strong>Never Stop at the Surface:</strong> If the live site is clean, check the Wayback Machine. History has secrets.</li><li><strong>Test Every Parameter:</strong> Even ones that don’t look important can be vulnerable.</li><li><strong>When You Find One, Look for More:</strong> Where there’s one vulnerability, there are often similar issues nearby.</li><li><strong>Chain Your Bugs:</strong> A low-severity bug can become a high-impact find if you combine it with another vulnerability.</li><li><strong>Be Patient:</strong> Responsible disclosure takes time, but the recognition is worth the wait.</li></ol><p><strong>Thank you for reading me</strong>, if you have any questions do not hesitate to let me know. Happy <em>hunting</em> 🏹</p><ul><li><strong>Linkedin account</strong> : <a href="https://www.linkedin.com/in/merouane-youcefi-44b44a284/">https://www.linkedin.com/in/merouane-youcefi-44b44a284/</a></li><li><strong>X account : </strong><a href="https://x.com/MaroineYoucefi">https://x.com/MaroineYoucefi</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4446fd45a074" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>