<?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 0xC0MPL3X on Medium]]></title>
        <description><![CDATA[Stories by 0xC0MPL3X on Medium]]></description>
        <link>https://medium.com/@xcmplx?source=rss-9ab3fccd91ea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-HO5yve-hn1qIezGF5_D-g.jpeg</url>
            <title>Stories by 0xC0MPL3X on Medium</title>
            <link>https://medium.com/@xcmplx?source=rss-9ab3fccd91ea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:13:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xcmplx/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[Doctor Bye Bye — Blind SQL Injection — FortID CTF]]></title>
            <link>https://medium.com/@xcmplx/doctor-bye-bye-blind-sql-injection-fortid-ctf-a72fbcddb838?source=rss-9ab3fccd91ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/a72fbcddb838</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[0xC0MPL3X]]></dc:creator>
            <pubDate>Sun, 11 Oct 2026 18:37:28 GMT</pubDate>
            <atom:updated>2026-10-11T18:37:28.794Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Category:</strong> Web<br> <strong>Vulnerability:</strong> SQL Injection (SQLite)<br> <strong>Attack Type:</strong> Blind SQL Injection via ORDER BY<br> <strong>Entry Point:</strong> /api/on-call?sort=PAYLOAD</p><p>Full Source Code (app.py):</p><pre>#!/usr/bin/env python3<br>import json<br>import os<br>import sqlite3<br>from http.server import BaseHTTPRequestHandler, HTTPServer<br>from pathlib import Path<br>from urllib.parse import parse_qs, urlsplit<br><br><br>ROOT = Path(__file__).resolve().parent<br>DATABASE = Path(os.environ.get(&quot;DATABASE_PATH&quot;, &quot;/tmp/doctor-bye-bye.db&quot;))<br>FLAG_FILE = Path(os.environ.get(&quot;FLAG_FILE&quot;, &quot;/tmp/flag&quot;))<br>SQLITE_VALUE_LIMIT = 1024 * 1024<br>SQLITE_SQL_LIMIT = 2048<br>SQLITE_VM_BUDGET = 50_000<br><br><br>def validate_flag(flag):<br>    if not (flag.startswith(&quot;FortID{&quot;) and flag.endswith(&quot;}&quot;)):<br>        raise SystemExit(&quot;FLAG must use the FortID{...} format&quot;)<br>    if len(flag) &gt; 128:<br>        raise SystemExit(&quot;FLAG must be at most 128 characters&quot;)<br>    if any(ord(character) &lt; 32 or ord(character) &gt; 126 for character in flag):<br>        raise SystemExit(&quot;FLAG must contain printable ASCII characters only&quot;)<br><br><br>def load_flag():<br>    try:<br>        return FLAG_FILE.read_text()<br>    finally:<br>        FLAG_FILE.unlink(missing_ok=True)<br><br><br>def initialize_database(flag):<br>    DATABASE.unlink(missing_ok=True)<br>    connection = sqlite3.connect(DATABASE)<br>    try:<br>        connection.executescript(<br>            &quot;&quot;&quot;<br>            CREATE TABLE doctors (<br>                id INTEGER PRIMARY KEY,<br>                slug TEXT NOT NULL UNIQUE,<br>                name TEXT NOT NULL,<br>                specialty TEXT NOT NULL,<br>                room TEXT NOT NULL,<br>                listed INTEGER NOT NULL CHECK (listed IN (0, 1)),<br>                farewell_note TEXT<br>            );<br><br>            INSERT INTO doctors VALUES<br>                (10, &#39;ada-pulse&#39;, &#39;Dr. Ada Pulse&#39;, &#39;Cardiology&#39;, &#39;C-101&#39;, 1, NULL),<br>                (30, &#39;max-well&#39;, &#39;Dr. Max Well&#39;, &#39;Radiology&#39;, &#39;R-204&#39;, 1, NULL),<br>                (50, &#39;paige-turner&#39;, &#39;Dr. Paige Turner&#39;, &#39;Neurology&#39;, &#39;N-303&#39;, 1, NULL),<br>                (70, &#39;ella-ment&#39;, &#39;Dr. Ella Ment&#39;, &#39;Pathology&#39;, &#39;P-118&#39;, 1, NULL),<br>                (90, &#39;zoe-last&#39;, &#39;Dr. Zoe Last&#39;, &#39;Emergency medicine&#39;, &#39;E-001&#39;, 1, NULL);<br>            &quot;&quot;&quot;,<br>        )<br>        connection.execute(<br>            &quot;INSERT INTO doctors VALUES (?, ?, ?, ?, ?, ?, ?)&quot;,<br>            (404, &quot;doctor-bye-bye&quot;, &quot;Dr. Bye Bye&quot;, &quot;Retired&quot;, &quot;-&quot;, 0, flag),<br>        )<br>        connection.commit()<br>    finally:<br>        connection.close()<br><br><br>def select_on_call(order_expression):<br>    query = f&quot;&quot;&quot;<br>        SELECT name, specialty, room<br>        FROM doctors<br>        WHERE listed = 1<br>        ORDER BY {order_expression}<br>        LIMIT 1<br>    &quot;&quot;&quot;<br>    connection = sqlite3.connect(DATABASE)<br>    try:<br>        connection.setlimit(sqlite3.SQLITE_LIMIT_LENGTH, SQLITE_VALUE_LIMIT)<br>        connection.setlimit(sqlite3.SQLITE_LIMIT_SQL_LENGTH, SQLITE_SQL_LIMIT)<br>        operations_left = SQLITE_VM_BUDGET<br><br>        def enforce_budget():<br>            nonlocal operations_left<br>            operations_left -= 1_000<br>            return operations_left &lt;= 0<br><br>        connection.set_progress_handler(enforce_budget, 1_000)<br>        row = connection.execute(query).fetchone()<br>    finally:<br>        connection.close()<br>    if row is None:<br>        raise LookupError(&quot;no on-call doctor&quot;)<br>    return {&quot;name&quot;: row[0], &quot;specialty&quot;: row[1], &quot;room&quot;: row[2]}<br><br><br>class Handler(BaseHTTPRequestHandler):<br>    server_version = &quot;StCodds/1.0&quot;<br><br>    def send_body(self, status, content_type, body):<br>        self.send_response(status)<br>        self.send_header(&quot;Content-Type&quot;, content_type)<br>        self.send_header(&quot;Content-Length&quot;, str(len(body)))<br>        self.send_header(&quot;Cache-Control&quot;, &quot;no-store&quot;)<br>        self.send_header(&quot;X-Content-Type-Options&quot;, &quot;nosniff&quot;)<br>        self.end_headers()<br>        self.wfile.write(body)<br><br>    def do_GET(self):<br>        request = urlsplit(self.path)<br>        if request.path == &quot;/&quot;:<br>            body = (ROOT / &quot;templates&quot; / &quot;index.html&quot;).read_bytes()<br>            self.send_body(200, &quot;text/html; charset=utf-8&quot;, body)<br>            return<br><br>        if request.path == &quot;/static/style.css&quot;:<br>            body = (ROOT / &quot;static&quot; / &quot;style.css&quot;).read_bytes()<br>            self.send_body(200, &quot;text/css; charset=utf-8&quot;, body)<br>            return<br><br>        if request.path == &quot;/api/on-call&quot;:<br>            parameters = parse_qs(request.query, keep_blank_values=True)<br>            order_expression = parameters.get(&quot;sort&quot;, [&quot;name&quot;])[0]<br>            if not order_expression or len(order_expression) &gt; 600:<br>                self.send_json(400, {&quot;error&quot;: &quot;Invalid schedule preference.&quot;})<br>                return<br>            try:<br>                doctor = select_on_call(order_expression)<br>            except (sqlite3.Error, LookupError):<br>                # Query errors deliberately do not expose database details.<br>                self.send_json(400, {&quot;error&quot;: &quot;The on-call board could not be updated.&quot;})<br>                return<br>            self.send_json(200, {&quot;doctor&quot;: doctor})<br>            return<br><br>        self.send_body(404, &quot;text/plain; charset=utf-8&quot;, b&quot;Not found\n&quot;)<br><br>    def send_json(self, status, value):<br>        body = json.dumps(value, separators=(&quot;,&quot;, &quot;:&quot;)).encode()<br>        self.send_body(status, &quot;application/json; charset=utf-8&quot;, body)<br><br>    def log_message(self, message, *args):<br>        print(f&quot;{self.address_string()} - {message % args}&quot;)<br><br><br>if __name__ == &quot;__main__&quot;:<br>    flag = load_flag()<br>    validate_flag(flag)<br>    initialize_database(flag)<br>    port = int(os.environ.get(&quot;PORT&quot;, &quot;8080&quot;))<br>    HTTPServer((&quot;0.0.0.0&quot;, port), Handler).serve_forever()</pre><h3>1. Challenge Overview</h3><p>The challenge provides a small web application that displays the doctor currently on call. By reviewing the source code, I discovered that the application dynamically inserts the user’s sort parameter into an SQL query.</p><p>The objective was to retrieve the flag stored in the farewell_note column of the doctors table, even though the corresponding doctor is hidden from the normal on-call results.</p><p>Rather than retrieving the flag directly, I used a blind SQL injection to infer its contents from the doctor returned by the API.</p><h3>2. Source Code Analysis</h3><h3>2.1. Finding the flag</h3><p>The database initialization function creates a doctors table containing the following columns:</p><pre>CREATE TABLE doctors (<br>    id INTEGER PRIMARY KEY,<br>    slug TEXT NOT NULL UNIQUE,<br>    name TEXT NOT NULL,<br>    specialty TEXT NOT NULL,<br>    room TEXT NOT NULL,<br>    listed INTEGER NOT NULL CHECK (listed IN (0, 1)),<br>    farewell_note TEXT<br>);</pre><p>The application inserts several ordinary doctors, followed by a hidden doctor containing the flag:</p><pre>connection.execute(<br>    &quot;INSERT INTO doctors VALUES (?, ?, ?, ?, ?, ?, ?)&quot;,<br>    (<br>        404,<br>        &quot;doctor-bye-bye&quot;,<br>        &quot;Dr. Bye Bye&quot;,<br>        &quot;Retired&quot;,<br>        &quot;-&quot;,<br>        0,<br>        flag,<br>    ),<br>)</pre><p>This reveals two important details:</p><ul><li>The flag is stored in doctors.farewell_note.</li><li>The record can be identified using slug = &#39;doctor-bye-bye&#39;.</li></ul><p>The listed value is 0, meaning this doctor is excluded from the ordinary on-call results.</p><h3>2.2. Identifying the SQL injection</h3><p>The most interesting function is select_on_call():</p><pre>def select_on_call(order_expression):<br>    query = f&quot;&quot;&quot;<br>        SELECT name, specialty, room<br>        FROM doctors<br>        WHERE listed = 1<br>        ORDER BY {order_expression}<br>        LIMIT 1<br>    &quot;&quot;&quot;</pre><p>The order_expression argument is inserted directly into the SQL statement using an f-string.</p><p>The API obtains this value from the user-controlled sort parameter (Lines: 120-126):</p><pre>if request.path == &quot;/api/on-call&quot;:<br>            parameters = parse_qs(request.query, keep_blank_values=True)<br>            order_expression = parameters.get(&quot;sort&quot;, [&quot;name&quot;])[0]<br>            if not order_expression or len(order_expression) &gt; 600:<br>                self.send_json(400, {&quot;error&quot;: &quot;Invalid schedule preference.&quot;})<br>                return<br>            try:<br>                doctor = select_on_call(order_expression) <br>                ......Snippet</pre><p>Consequently, the request parameter is not restricted to an ordinary column name. SQLite interprets the supplied value as part of the SQL expression.</p><p><strong>Root cause:</strong> User input is incorporated into an SQL query without validation against an allowlist of permitted sort expressions.</p><h3>2.3. Understanding the limitation</h3><p>The SQL query only returns:</p><pre>SELECT name, specialty, room<br>FROM doctors<br>WHERE listed = 1<br>ORDER BY ...<br>LIMIT 1;</pre><p>This creates two obstacles:</p><ol><li>The flag is not among the selected columns.</li><li>The hidden doctor does not satisfy WHERE listed = 1.</li></ol><p>However, the WHERE condition applies to the main query. It does not prevent a scalar subquery from reading a different row in the same database.</p><p>The injection point is inside ORDER BY, so the solution is to make the sort expression depend on a condition about the hidden flag.</p><h3>3. Exploitation</h3><p>Now after we have identified everything we need, its now time to run sqlmap to automate all these</p><p>run the following command:</p><pre> sqlmap -u https://doctor-bye-bye-1b773fc7fd1c.inst8.ctf.fortid.com/api/on-call?sort=1 --batch -T doctors --dump --threads 5 --level 3</pre><p>Because as we all know from the source code the flag is inside the doctors table and here is the output i got:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zuw2-Oil72Rb0drgxFHALg.png" /></figure><blockquote>And Voila here is your flag: FortID{D0C_1M_0UTT4_H3R3_962d672f77}</blockquote><h3>4. Conclusion</h3><p>The challenge demonstrates how an SQL injection in an apparently harmless sorting parameter can expose sensitive database information.</p><p>The important lesson is that restricting the main query’s visible results does not prevent an injected SQL expression from reading other rows. By combining scalar subqueries.</p><p>Also, Here is a Reference:<br> <a href="https://portswigger.net/web-security/sql-injection/blind">Blind SQLi</a> (Portswigger)</p><blockquote><em>Written By 0xC0MPL3X</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a72fbcddb838" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pool Party — CAT CTF OSINT Writeup]]></title>
            <link>https://medium.com/@xcmplx/pool-party-cat-ctf-osint-writeup-e49cd75ab521?source=rss-9ab3fccd91ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/e49cd75ab521</guid>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <dc:creator><![CDATA[0xC0MPL3X]]></dc:creator>
            <pubDate>Sun, 13 Sep 2026 17:20:40 GMT</pubDate>
            <atom:updated>2026-09-13T17:20:40.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mrMZ2kBbqD5XXy91E8JFrA.png" /></figure><h3>Pool Party — OSINT</h3><p><strong><em>Challenge Name:</em></strong> Pool party<br> <strong><em>Points:</em></strong> 100<br> <strong><em>Author:</em></strong> minyawy<br> <strong><em>Category:</em></strong> OSINT / GEOINT<br> <strong><em>Target Flag Format:</em></strong> CATF{&lt;Exact_Location_Name_On_Google_Maps_Underscore_instead_of_spaces&gt;}</p><h3>Challenge Description</h3><p>It was a really hot Friday, and we just wanted to go for a swim.</p><p>We drove to the sports club, but security stopped us at the gate because our friend was not a member, and guests were not allowed.</p><p>While we were outside, another friend called and told us to come to his compound next to the club.</p><p>We spent the rest of the day by the water.</p><p>The pool was not the best, but the red chairs reminded us of the other pool.</p><p>The goal is to find the exact name of the pool on Google Maps.</p><p><strong>Attachment:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*WFdCxGLPn4plXIEZPohKwQ.png" /></figure><h3>Initial Analysis &amp; Clues</h3><p>The challenge description and the image give us some useful clues.</p><h3>Location Context</h3><p>The mention of <strong><em>Friday</em></strong> (Weekend in Egypt), together with the author’s name minyawy, suggests that the location is in Egypt.</p><h3>Important Clues</h3><ul><li>A sports club next to a residential compound.</li><li>A swimming pool inside the compound with red chairs.</li><li>Specific buildings visible behind the pool.</li></ul><h3>Methodology &amp; Execution</h3><h3>1. Information Gathering &amp; Area Filtering</h3><p>Since many large residential compounds in Egypt are in satellite cities, I used an external real estate website to make a list of popular compounds across Egypt.</p><p>The search showed several major areas:</p><ul><li>New Cairo</li><li>Sheikh Zayed City</li><li>6th Of October City</li><li>9 more compounds</li></ul><h4>Reference: <a href="https://www.propertyfinder.eg/blog/en/find-out-the-top-compounds-in-egypt/">Website</a></h4><p>I focused mainly on the first three areas because they were the most prominent results.</p><h3>2. Map Reconnaissance &amp; Keyword Searching</h3><p>Using Google Maps, I searched for swimming pools in the target compounds.</p><p>For example:</p><p>swimming pool in &lt;Compound Name&gt;</p><p>For each pool, I checked the available photos for unique details.</p><p>I also checked Street View when possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kiyeCyCjzOILD8ro4zCpdg.png" /></figure><h3>Key Finding</h3><p>While checking a swimming pool (Swimming Pool Regency) in <strong><em>Sheikh Zayed City</em></strong>, I noticed that the background building looked like the one in image_1.png.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s42UwUNsA_Jgyec1AtWDiw.png" /></figure><h3>3. Visual Verification &amp; Match</h3><p>I opened the photo section of the Google Maps listing and found a user-submitted photo that matched the challenge image.</p><p>The photo showed the same:</p><ul><li>Pool layout</li><li>Red chairs</li><li>Background buildings</li></ul><p>Photo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yDHwRFc3bP1ngMEAphc4-A.png" /></figure><p>This confirmed that I had found the correct pool.</p><h3>Flag</h3><p><strong><em>Location Name on Google Maps:</em></strong> Swimming pool Regency</p><p>The flag format requires spaces to be replaced with underscores.</p><h3>Final Flag</h3><p>CATF{Swimming_pool_Regency}</p><p>Hope you learne something new.</p><p>Written By: 0xC0MPL3X</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e49cd75ab521" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All OSINT Challs — K17 CTF]]></title>
            <link>https://medium.com/@xcmplx/all-osint-challs-k17-ctf-c94c2173ada0?source=rss-9ab3fccd91ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/c94c2173ada0</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[0xc0mpl3x]]></category>
            <category><![CDATA[osint-investigation]]></category>
            <dc:creator><![CDATA[0xC0MPL3X]]></dc:creator>
            <pubDate>Sat, 12 Sep 2026 18:17:48 GMT</pubDate>
            <atom:updated>2026-09-12T18:17:48.167Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QXY7Ti3dyMHl-kKlbfvuKA.png" /></figure><h3>First Challenge: rainier</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*YfeHEVFnyUOb_4JlXiGx9Q.png" /></figure><h4>Description:</h4><blockquote>Can you find where I took this photo? (I got drenched btw)</blockquote><blockquote>Enter the names of the roads at this intersection, in the format K17{street1,street2}, without the street type suffixes.</blockquote><blockquote>For example, if you think the roads are Wallaby Way and George Street, you could enter K17{Wallaby,George} or K17{George,Wallaby}. Capitalisation will be ignored.</blockquote><h4>Attachment:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gq9JBQ3n5vl4Syr0NoAqjQ.jpeg" /></figure><h4>1- Finding The Clues:</h4><p>After opening the image i started zooming there and there trying to find any clue that could lead me to this streat or any sign.</p><p>indeed, after zooming i found this sign:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*acutzu2P0Gu4Fmq7KriAuw.png" /></figure><p>And the text on the sign was Victoria St And now we have the first part of the flag which is Victoria</p><h4>2- Pinpointing The Location:</h4><p>After searching on google maps about Victoria St and there was the catch (maybe for me…) which is there is another street called Victoria St but in Australia (the wrong streat) and i did street view and checked this street entirely but it was a dead end:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q2AOISRcrrCP1LQqFdtR4g.png" /><figcaption>The wrong location</figcaption></figure><p>So i searched again for any other street called Victoria St and i found another street and it was mentioned in <a href="https://en.wikipedia.org/wiki/Victoria_Street,_Singapore">Wikipedia</a> (Victoria St, Singapore):</p><p>Searching for it on google maps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUoR_ZyoSAmVMSL3U3pKMQ.png" /></figure><p>After moving a bit with streat view i found a matching streat quickly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYYy0ijUvW7iHrMUksgvNA.png" /></figure><p>Which is Middle Road The second part of the flag.</p><p>So, The Final flag is: K17{Victoria,Middle}</p><h3>Second Challenge : Larpfest</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*OIa9VvpODJZWlnREHV6n9Q.png" /></figure><h4>Description:</h4><blockquote>This guy has the larp turned up to 100. It looks like he left OPSEC at 0 though.</blockquote><blockquote>The flag is (or was…) somewhere in this repo: <a href="https://github.com/larp-larp-larp/larp">https://github.com/larp-larp-larp/larp</a></blockquote><h4>1- Finding The Clues:</h4><p>So First i visited the given website for that repo and i found four files and 3 commits:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hCvGhFcoGKAGp0IUdU2t_w.png" /></figure><p>At first i checked the files but nothing was useful, then i checked the commits but, they were also useless:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l8S_qC_gsqz_PrxF_lNVmg.png" /></figure><p>So i went straight to the activity tab and as i expected i found that there was a commit there but not in commits:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v7nhnvtazvHk-SJHRwm7bw.png" /></figure><p>Then i clicked at the three dots, then Compare changes and i found the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*54QgRhKwSEV-CZuJbnMiwg.png" /></figure><p>Flag: K17{l00k_im_a_1337_h4x0r}</p><p>Hope you learned something new</p><p>Written By: 0xC0MPL3X</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c94c2173ada0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BrOWSER BOSS FIGHT(Web Exploitation) — UMassCTF 2026 Write-Up]]></title>
            <link>https://medium.com/@xcmplx/browser-boss-fight-web-exploitation-umassctf-2026-write-up-8b06355064df?source=rss-9ab3fccd91ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b06355064df</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[web-exploitation]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[0xC0MPL3X]]></dc:creator>
            <pubDate>Wed, 15 Apr 2026 07:30:28 GMT</pubDate>
            <atom:updated>2026-06-14T09:01:48.295Z</atom:updated>
            <content:encoded><![CDATA[<h3>BrOWSER BOSS FIGHT(Web Exploitation) — UMassCTF 2026</h3><h4>BrOWSER BOSS FIGHT Is An Easy Web Exploitation Challenge With 495 Solves And 100 Points As a Reward.</h4><p>To Start with, I wanna thank UMassCTF organisers for this amazing Event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3SdbtoA24sWEtOFvyJl1Dw.jpeg" /></figure><p>Once we enter the given website we will see this photo with an input field and a door (we should click it when we provide an key in the input filed)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wa1kAmFXB4NfCVJSFlaEqg.png" /></figure><p>If you tried to write any key it would be replaced with “WEAK_NON_KOOPA_KNOCK&quot;, Why is that?</p><p>To anwser this question we must analyze the source code ,After analyzing the source code you can find these lines (the important ones):</p><pre><br>            document.getElementById(&#39;key-form&#39;).onsubmit = function() {<br>                const knockOnDoor = document.getElementById(&#39;key&#39;);<br>                // It replaces whatever they typed with &#39;WEAK_NON_KOOPA_KNOCK&#39;<br>                knockOnDoor.value = &quot;WEAK_NON_KOOPA_KNOCK&quot;; <br>                return true; <br>            };</pre><p>Which simply replaces anything you write with “WEAK_NON_KOOPA_KNOCK” (as this comment tells us)</p><p>Which will simply redirect us to this page :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5INVKmXihXKWZeRWYDJ6Zg.png" /></figure><p>So, Open your favourite proxy intercepter (i will go with burp), And Lets check the response of the server (you can modify the key value but it is useless for now),The important header that caught my eye was ‘<strong>Server’ </strong><em>Which contained</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*I00oywmra_YjR67dm7a-zg.png" /></figure><blockquote>Which simply if you couldn’t see Server: (BrOWSERS CASTLE (A note outside: “King Koopa, if you forget the key, check under_the_doormat! — Sincerely, your faithful servant, Kamek”)</blockquote><p>After reading this hint lets send another request and change the key value (from your request editor) to “under_the_doormat”,Now we can see this page with an important message:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OJMBUQ3pM-_Tuw_x5D4avA.png" /></figure><p>This hint says the axe was removed from him, So, We Would need to give him the axe, How…? you would see.</p><p>If you have noticed , when you do any request after you had visited this page so many values are inserted in the ‘Cookie’ Header and the most important field was “hasAxe=false” Which the hint was refering to, So, We will give him the axe by changing its value to true (“hasAxe=true”)</p><p>Also, Don’t forget to change its value in the “GET” request too!!</p><p>And Congrats 🎉 🎉 you have got the flag which is: “UMASS{br0k3n_1n_2_b0wz3r5_c4st13}”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uU4ReZujt-4HJk8HTh_77A.png" /></figure><p>That was all wish you all understood,</p><p>Happy Hacking 😃!</p><p>This Write-Up is made by:</p><p>0xC0MPL3X</p><p>(From Team N!gthM4re)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b06355064df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brick By Brick(Web Exploitation) — UMassCTF 2026 writeup]]></title>
            <link>https://medium.com/@xcmplx/brick-by-brick-web-exploitation-umassctf-2026-writeup-e8c85a49e6cb?source=rss-9ab3fccd91ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8c85a49e6cb</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[web-exploitation]]></category>
            <category><![CDATA[umassctf-2026]]></category>
            <dc:creator><![CDATA[0xC0MPL3X]]></dc:creator>
            <pubDate>Mon, 13 Apr 2026 13:20:21 GMT</pubDate>
            <atom:updated>2026-04-13T18:13:42.632Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mkseG8xdGsUUd-TxG8hewg.jpeg" /></figure><p>To start with, I wanna thank UMassCTF 2026 organisers for this amazing event</p><p>As you can see below this challenge is an easy web challenge with 620 solves and 100 points as a reward for solving this challenge</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*mp8tDQgU4tOJPpQU6hqQQw.png" /></figure><p>This Challenge wants us to find the (hidden) admin dashboard</p><p>Once you enter the given website you will see this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iY1QQDsvHsv7tXiVSxodgQ.png" /></figure><p>To Save your time there is not anything in the source code</p><p>So, We will head to one of the most common files attackers look in which is <em>robots.txt</em></p><p>But first, what is robots.txt:</p><ul><li>robots.txt is a simple text file which tells the bots or search engines which pages or sections they are allowed to visit and which they shouldn’t</li><li>It is placed in the root directory of the website so bots or search engines can find it fast</li></ul><p>Second ,What is its use:</p><ul><li>robots.txt is used to prevent search engines and bots from crawling to specified pages</li></ul><p>Third,What is written inside it:</p><ul><li><strong>User-agent → </strong>Which specify for whom these instructions are (*) for everyone</li><li><strong>Allow</strong> → Which tells the bots or search engines (that specified by the user agent line) what pages they are allowed to crawl or visit</li><li><strong>Disallow</strong> → Which tells the bots or search engines what pages they are not allowed to crawl or visit</li></ul><p>But, Why do attackers targets it:</p><p>Althought this file is made for bots ,Attackers target it because it may contain:</p><ul><li><strong>Direct acces to high value Pages : </strong>Pages<strong> </strong>that contain<strong> <em>Dissallow</em></strong><em> </em>acts as an hit list for attackers because it may contain the ‘admin dashboard’</li><li><strong>Discovery of sensitive data :</strong> Admins often mistakenly use the file to hide sensitive assets. Attackers look for directives like Disallow: /backup/ or Disallow: /config/ to find database dumps, or configuration files that might contain API keys and credentials</li></ul><p>Now after adding the /robots.txt to the URL you will get this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*kivmX_ss76wiZ2zbPUZj_g.png" /><figcaption>I minimized it so you could see</figcaption></figure><p>To save your time ,The really useful line was that one (you can check the other pages but this was the most useful):</p><pre>Disallow: /internal-docs/it-onboarding.txt</pre><p>After removing /robots.txt and then adding “/internal-docs/it-onboarding.txt” To the URL you will see this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*IlHSRSWf68OdGORpVq1KkQ.png" /><figcaption>i minimized it too so you can see it</figcaption></figure><p>The two section that got my eye were:</p><pre>----------------------------------------------------------------<br>SECTION 1 - DOCUMENT PORTAL<br>----------------------------------------------------------------<br><br>The internal document portal lives at our main intranet address.<br>Staff can access any file using the ?file= parameter:<br><br>----------------------------------------------------------------<br>SECTION 2 - ADMIN DASHBOARD<br>----------------------------------------------------------------<br><br>Credentials are stored in the application config file<br>for reference by the IT team. See config.php in the web root.</pre><p>Lets analyze them:</p><ol><li><strong>Important lines in Section 1:</strong></li></ol><p><strong>?file= parameter → </strong>its like getting a higher privileges (as i think about it)</p><p><strong>2. Important things in Section 2:</strong></p><ul><li><strong>Credentials are stored in the application config file<br>for reference by the IT team. See config.php in the web root.</strong></li></ul><p>This is the most important one ;Which tells us where are the Credentials and where to write the file given which is the ‘ / ’</p><p>If you tried to enter the <em>/config.php </em>file you will get a null page</p><p>Instead,you should append to the URL :</p><p>“/?file=/config.php” This displays the page(grants you higher privileges as i think) <strong>You would see this page</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*ECU4r1E78DS4hm-QgPqooQ.png" /></figure><p>The most important lines that caught my eyes were:</p><ul><li><strong>“// The admin dashboard is located at /dashboard-admin.php.”</strong>(Which tells us the exact location for the admin dashboard)</li><li><strong>“// WARNING: SYSTEM IS CURRENTLY USING DEFAULT FACTORY CREDENTIALS “ </strong>(which means that the password is the as same as the username as i thought about it)</li><li><strong>“// TODO: Change &#39;administrator&#39; account from default password.”</strong> (Which means that the administrator account uses the default password)</li><li><strong>“define(&#39;ADMIN_USER&#39;, &#39;administrator&#39;);” </strong>(which confirms the admin username)</li></ul><p>Now you can get the flag by two ways .</p><p>First way :</p><p>By adding “/?file=dashboard-admin.php”(you would see this image)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*fCgP3WLY-_fAZYu5VGX9ZA.png" /></figure><p>And Congrats 🎉 You have got the flag which is “UMASS{4lw4ys_ch4ng3_d3f4ult_cr3d3nt14ls}”</p><p>Second way:</p><p>By adding “/dashboard-admin.php” Directly to the URL , You would see This page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUEy1T4BcffHZNOKP_b7iw.png" /></figure><p>now write the credentials you had which is:</p><ul><li>User → administrator</li><li>Password → administrator</li></ul><p>You would get this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZJZBNtZ7dcZmDX0XiV-4A.png" /></figure><p>And Congrats 🥳 You have got the flag which is “UMASS{4lw4ys_ch4ng3_d3f4ult_cr3d3nt14ls}”</p><p>What i learned:</p><ul><li>Never put sensitive information in the robots.txt like the ‘admin dashboard’</li><li>Always use strong password to protect yourself and change the factory default password</li></ul><p>What is the impact of that:</p><ul><li>People can easily modify orders or even exploit these websites</li><li>Anyone could modify the web settings and look at the orders and stocks and modify them as he want (which could lead to big loss for the company)</li></ul><p>This was all Wish you all understood.</p><p>This write-up is made by: 0xC0MPL3X</p><p>(From Team N!ghtM4re)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8c85a49e6cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Iam Legend-- Cyber Talents(Easy) Web Challenge]]></title>
            <link>https://medium.com/@xcmplx/iam-legend-cyber-talents-easy-web-challenge-8164272e7737?source=rss-9ab3fccd91ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/8164272e7737</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-hacking]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[cyber-talents]]></category>
            <category><![CDATA[javascript-obfuscation]]></category>
            <dc:creator><![CDATA[0xC0MPL3X]]></dc:creator>
            <pubDate>Wed, 01 Apr 2026 09:48:22 GMT</pubDate>
            <atom:updated>2026-06-14T09:03:32.694Z</atom:updated>
            <content:encoded><![CDATA[<h3>Iam Legend — Cyber Talents(Easy) Web Challenge</h3><h4>Iam Legend is an easy web challenge published in 2018 With 50 points as a Reward</h4><p>Important Info We Will Need To Understand The Challenge</p><p>What is obfuscation(Simple Explaination):</p><p>Obfuscation Is An Art Of Making The Code Harder To Read Or Understanding It ; IN Order To Protect The App From Getting Hacked Or Reverse Engineered (There Is Nothing In The World Safe From Getting hacked) But It Slows Down The Hacker And Raises His Effort; Because It Makes The Code Looks Like A Maze</p><p>First i entered the website Given to me after i clicked <em>Start Challenge</em></p><p>First Thing I Did When I Entered The Website Was Checking The Source Code And Analyzing It</p><p>The Thing That Caught My Eye Was The Obfuscated Code IN The</p><p>&lt;script&gt; …&lt;/script&gt;</p><p>(I Won’t Paste It Because Its So Long) Tip: Copy The Text From The Source Code AFter Clicking ‘ctrl + U’</p><p>Then, I Searched For JS Deobfuscator And I Found This Website</p><p><a href="https://thanhle.io.vn/de4js/">de4js</a> , Next Paste The Obfuscated Message And Choose Eval</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n50OtJf4UGviAbR2GBc2ww.png" /></figure><p>Now The Code Is Written In Decimal ,So I Searched For Decimal To Text Website And I Found This Website:</p><p><a href="https://cryptii.com/pipes/decimal-text/">Decimal To Text</a> ,Next ,Paste The Result You Got From de4js And Remove The “String.FromCharCode( “</p><p>You Will Get This:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*arA9nFx2hsdFDgGhhR6Qmg.png" /></figure><p>From This Result We Can Now Understand The Code And You Can See That The</p><p>The User:Cyber &amp;The Password: Talent</p><p>Write These Credentials In The Website And You Will Get This Message</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V60BPBNpQJyMAwbdm2jNtA.png" /></figure><p>Finally The Flag Is: FLAG{J4V4_Scr1Pt_1S_S0_D4MN_FUN}</p><p>Wish You All Understood , See You In The Next Challenge</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8164272e7737" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>