<?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 CyberLabyrinthX on Medium]]></title>
        <description><![CDATA[Stories by CyberLabyrinthX on Medium]]></description>
        <link>https://medium.com/@cyberlabyrinthx?source=rss-b2d73a010ff7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*T3_rubG3s1RG5AnKK5TxaA.jpeg</url>
            <title>Stories by CyberLabyrinthX on Medium</title>
            <link>https://medium.com/@cyberlabyrinthx?source=rss-b2d73a010ff7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:17:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cyberlabyrinthx/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[Exploiting Mass Assignment Vulnerability]]></title>
            <link>https://cyberlabyrinthx.medium.com/exploiting-mass-assignment-vulnerability-38934c5589ea?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/38934c5589ea</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[portswigger]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Sun, 02 Aug 2026 21:02:34 GMT</pubDate>
            <atom:updated>2026-08-02T21:10:00.745Z</atom:updated>
            <content:encoded><![CDATA[<p>Identifying hidden endpoints and parameters using Param Miner, Sniper, and content discovery tools.</p><p>Another step in my API Security learning journey. Today, I learned about Mass Assignment vulnerabilities through PortSwigger labs and completed an interesting challenge. This writeup explains my approach, findings, and the steps I followed to solve the challenge.</p><p>Mass Assignment (also known as auto binding) is a vulnerability that allows an application to accept and process attacker supplied parameters that developers never intended to expose. To identify this issue, the first step is to perform API reconnaissance and discover hidden endpoints and parameters. Once these have been identified, they can be tested to determine whether the API is vulnerable to mass assignment. Common tools for API reconnaissance include Param Miner, Burp Intruder, Burp Repeater, and the Content Discovery extensions available through the BApp Store.</p><h4>You can practice the lab here:</h4><p><a href="https://portswigger.net/web-security/api-testing/lab-exploiting-mass-assignment-vulnerability">Lab: Exploiting a mass assignment vulnerability</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GmvNFP0Sf6E_irKET_iiAA.png" /></figure><h3>Endpoint and parameter reconnaissance</h3><p>While browsing the application, I looked for URL patterns that suggested the presence of API endpoints, such as paths containing /api/. Identifying these patterns helped uncover potential API routes for further testing and reconnaissance.</p><h4>Content Discovery tool</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*fGDhAuuhUQYDLMA5oAUZEw.png" /></figure><p>After identifying the endpoint, I sent the request to Burp Repeater to inspect and test it further. I also used the Content Discovery tool to uncover hidden endpoints and parameters that were not accessible through the application’s visible interface.</p><h4>Result:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UMPb_vmRasIuwrfj1elwjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*LADg6vbp5-w_-oTNLOccZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bB73NkTXD8lF3rLPnQVk3w.png" /></figure><p>After gathering enough reconnaissance data, I used Burp Intruder to enumerate hidden API endpoints by fuzzing the /api/example path with a wordlist. The wordlist included common API naming conventions and application related keywords identified during the initial reconnaissance phase.</p><h4>Burp Intruder</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etqhlCI6LkUeM7EKExKV4Q.png" /></figure><h4>Param Miner BApp</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HCl8DZm1duTL8UCjlbr-Sg.png" /></figure><p>The Param Miner BApp can automatically guess up to 65,536 parameter names per request based on information gathered from the target scope.</p><h4>Result:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zQOX-Z3suyTvp-ns-YhwQ.png" /></figure><p>After identifying endpoints and hidden parameters, the next step is to test their behavior by modifying HTTP methods, request bodies, and content types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jf-9_z7DkLzUhHnucFx3sw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-CWLPfbVINhDBRjP1RU7Q.png" /></figure><h4>TESTING THE VULNERABILITY</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDnR14zo4RGNjg2myafKEg.png" /></figure><p>The unexpected object value caused different application behavior, suggesting it affects the query logic while the valid value does not. This could indicate that the object value may be modified by an attacker.</p><h4>Exploiting the vulnerability</h4><p>The attacker sends a POST request with item_price set to 0 and percentage set to 100 in an attempt to exploit the vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bg5uWFoDX2ed-NLFZPrwRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIkFrE0hi3jmt8HGxZI38w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38934c5589ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaching a network to get access to a secret project]]></title>
            <link>https://cyberlabyrinthx.medium.com/breaching-a-network-to-get-access-to-a-secret-project-5acd80456cd1?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5acd80456cd1</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[vulnhub-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 19:08:21 GMT</pubDate>
            <atom:updated>2026-07-28T19:08:21.615Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jWBFzSa6vR-KH1o0.jpg" /></figure><h3>TASK DESCRIPTION</h3><p>According to information from our intelligence network, ICA is working on a secret project. We need to find out what the project is. Once you have the access information, send them to us. We will place a backdoor to access the system later. You just focus on what the project is. You will probably have to go through several layers of security. The Agency has full confidence that you will successfully complete this mission. Good Luck, Agent!</p><p><a href="https://www.vulnhub.com/entry/ica-1,748/">ICA: 1</a></p><h3>NETWORK ENUMERATION</h3><p>To discover active services and open ports on the target IP, I ran RustScan and NMAP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PvOiQW3gGM3xXDJt0_JsZg.png" /></figure><p>The scan results showed that port 22 runs OpenSSH 8.4p1 on Debian, port 3306 runs MySQL 8.0.26, and port 80 hosts an Apache 2.4.48 web server running a qdPM login page. The web application on port 80 immediately caught my attention as an interesting entry point, so I decided to pivot my focus there and continue with the investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AwKviGK5SyQJe1rZTB7LcQ.png" /></figure><h3>Vulnerability Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1NSWLlaYxlxshdTyt5sDtg.png" /></figure><p>After opening the qdPM login page, I looked for an exploit for its version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GcTLxIl9KQMrIsjaOhCaRA.png" /><figcaption><a href="https://www.exploit-db.com/exploits/50176">https://www.exploit-db.com/exploits/50176</a></figcaption></figure><h4><strong>Directory Traversal</strong></h4><p>After identifying the path traversal vulnerability, I checked the directory indicated in the GHDB and found the database file there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*F3OPUtE1jrEiigAXNfeqMQ.png" /></figure><p>The file exposed credentials to the website database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*jMtcBzkJ0lF2u21Xczwmyw.png" /></figure><h3>Exploitation</h3><p>The credentials found in the database weren’t hashed or even encrypted. They were encoded. I decoded them using the Cyber Swiss Army Knife.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*q22Tdq7c2WEh7YzdqAn1wA.png" /></figure><p>Then, I attempted to access the SSH port using the decoded credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*A67B9hWjC1hO6ji2s6r-mQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdniH94QyZ-cKKUPkyDcDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*C_fE_fUI3lc6Toxo" /></figure><p>I connected to both users via SSH and there was no difference there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cOXqDOCBwhmcF6zmBMw8MQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qL1zl_-DVylSSbWPiXsMDQ.png" /></figure><h3>POST EXPLOITATION</h3><p>After gaining a shell as the users dexter and travis, I began enumerating the system for possible privilege escalation vectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*_FkGuAGf9dMCX8dP8XNCHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*A6Sgt5M-1ULqQa5CxNB_-g.png" /></figure><h4>Privilege Exploitation</h4><p>Here the /opt/get_access file was running with root privileges then I created my own malicious /tmp/cat command and it was executed with root privileges. Instead of displaying the file, it launched:</p><blockquote>/bin/bash</blockquote><p>This provided a root shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*KsJmH13jU17woYGhzLaOtw.png" /></figure><h4>Analysis:</h4><p>The get_access contained this dangerous function:</p><blockquote>system(“cat /root/system.info”);</blockquote><p>then I created a malicious “cat “ command using these commands on my CLI to exploit the vulnerability.</p><blockquote>echo ‘/bin/bash’ &gt; /tmp/cat</blockquote><blockquote>chmod +x /tmp/cat</blockquote><p>made it executable</p><blockquote>export PATH=/tmp:$PATH</blockquote><p>changed the search order</p><p>If the function were like this</p><blockquote>system(“/bin/cat / root/system.info”);</blockquote><p>I wouldn’t have been able to exploit it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5acd80456cd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Death Note — Exploited Authentication & Privilege Escalation vulnerabilities to compromise a server]]></title>
            <link>https://cyberlabyrinthx.medium.com/death-note-exploited-authentication-privilege-escalation-vulnerabilities-to-compromise-a-server-c120dbc2911c?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c120dbc2911c</guid>
            <category><![CDATA[vulnhub-walkthrough]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[web-hacking]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 21:05:06 GMT</pubDate>
            <atom:updated>2026-07-27T21:05:06.730Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/637/0*JdtiKMj-s4Ed8zwU.png" /></figure><p>In this WordPress penetration test activity, I used the <a href="https://en.wikipedia.org/wiki/KISS_principle"><strong>KISS</strong></a> (“<strong>Keep it simple, stupid</strong>”) principle to compromise an administrative account on the vulnerable WordPress website. The Death Note vulnerable machine is from the <a href="https://www.vulnhub.com/entry/deathnote-1,739/">VulnHub</a>.</p><p><a href="https://www.vulnhub.com/entry/deathnote-1,739/">Deathnote: 1</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r48kZHImkU8BHK4qm-559w.png" /></figure><h3>Enumeration</h3><p>After deploying the target machine from the <a href="https://www.vulnhub.com/entry/deathnote-1,739/">VulnHub</a>, I started enumerating running services with Nmap and Rustscan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ks9oQoLUG2tOSedk4UM1fw.png" /></figure><p>During enumeration, I identified an Apache HTTP service running on the target. I began interacting with the target web application looking for any low-hanging fruits that could provide an initial foothold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMECqwjbFVNvHCGxsX0Nsw.png" /></figure><p>Directory enumeration combined with active OSINT led to the discovery of the application’s login page, where I identified an authentication vulnerability that could be leveraged for initial access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iRdgBU9l0jb610zJgkBY3A.png" /><figcaption>Directory Brute Forcing Attack</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*wS3TPYbzwJ8fmovxT-z2Nw.png" /><figcaption>Directory Traversal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IKyjO3E4hXeh5BpYaj2qDw.png" /><figcaption>Directory Traversal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2KfFnPAVguGFFQfx2mMMNQ.png" /><figcaption>Directory Brute Force Attack</figcaption></figure><h3>Authentication Vulnerability</h3><p>I tried all possible username and passwords to find a valid account based on findings from the passive OSINT and noticed that the website’s error message helps bad actors find valid account names as you see in the screenshots below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4HKfxXXCE-zJV2YokVsgaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pv3M7i4wU5fNpMoNZYk1pw.png" /></figure><h3>Exploitation</h3><p>After finding a valid account on the website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CGOzcRwvCb4vqc92bSdw5Q.png" /></figure><p>I successfully compromised the account to move even further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WwP1Qrfk__e6vcozvdbkZg.png" /></figure><p>This was the account with administrative privileges and tried to find a page to deliver my reverse shells to establish a foothold on the system.</p><h3>Lateral Movement</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4guoA6AYi0lnzBn8qxDI6Q.png" /></figure><p>While searching the file upload page, I discovered a note.txt file. The file contained passwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5fSICwL4vSABc3oMn2rLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iTocl195Fh6Bzr63dbZQ_g.png" /></figure><p>There were only two usernames discoverable on the website: <strong>“L or l” </strong>and <strong>“Kira.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eZxXBrk6R7VceHOqMPlIDw.png" /></figure><p>I brute-forced the password list for the ‘l’ user account on the SSH service and gained access to the target system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*coFVgBUpMteoYKiBg1K-dw.png" /></figure><h3>Post-exploitation</h3><p><strong>Basic system information</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UewRy6CMG8OE3Fa1eABLHA.png" /></figure><p>The system contained only standard SUID executables, including mount, umount, passwd, su, and several authentication-related binaries. The current user did not have permission to execute sudo, and none of the remaining SUID binaries presented an immediately exploitable privilege escalation path. I therefore continued with further local enumeration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AqCFsuNjD5xtkKNXNlySZg.png" /></figure><p><strong>Interesting configuration files</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fS_CViKssLdrkDYLaMirNQ.png" /></figure><p><strong>Files and directories</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nHtjRxiSqLGYn07c5HUANA.png" /></figure><p>The output contained many irrelevant files such as package documentation and license files. However, one file caught my attention:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*coMd232XUD-1XhRFDJa-jw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cTEaiZV-KU8J8tKKzjtlww.png" /></figure><p>After reading this message, I went into the `fake-notebook-rule` folder and found an encoded hint there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aP_y1J04fZ3rauZP7XLa7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oUBNgDgS0nRPGxbM_ATl1w.png" /></figure><p>After decoding the HEX value to base64, I found a password to the Kira account. Instead of reading the .txt file from the Kira’s directory, I started looking for a privilege escalation vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIEQQM9DKAVzJAwNyJCzIA.png" /></figure><p>I checked the available sudo permissions using:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97fEIegv0mvzSocO_YK_lQ.png" /></figure><p>The output revealed that the current user had permission to execute a command with root privileges. Due to this insecure sudo configuration, I was able to escalate my privileges. Then the sudo -l command spawned a root shell, confirming successful privilege escalation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdMGJxSaRkVeGQe3tE_UXg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c120dbc2911c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WordPress Penetration Testing and Privilege Escalation]]></title>
            <link>https://cyberlabyrinthx.medium.com/wordpress-penetration-testing-and-privilege-escalation-46203b75d0f0?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/46203b75d0f0</guid>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 03:54:09 GMT</pubDate>
            <atom:updated>2026-07-25T03:54:09.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zX4gKMGa7o35dtqq.jpg" /></figure><p><a href="https://www.vulnhub.com/entry/looz-1,732/">Looz: 1</a></p><p><strong>Leveraging RustScan, OpenVas, BurpSuite and NMAP for Rapid Network Enumeration</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vauTLt7QRy7Ce_Sthu2ggg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OqpNigiyizzLRC6S58ljyw.png" /></figure><p>In the initial reconnaissance phase, I executed a high-speed port scan against the target machine using RustScan (sudo rustscan -a 192.168.0.108) to bypass the typical speed bottlenecks associated with standard sequential scanning. Once RustScan rapidly identified the open ports, it automatically handed them off to Nmap to run a targeted SYN stealth scan and confirm the underlying service versions. The scan revealed a total of four open ports on the target machine with the MAC address 08:00:27:CD:BD:62. The discovered services include SSH on port 22 , an HTTP web server on port 80, a MySQL database on port 3306, and a service running on port 8081 identified as blackice-icecap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ae4MC-vkuVwq8FynnA4ebA.png" /></figure><p>Although the initial RustScan results focused primarily on the active ports it caught quickly, the follow-up Nmap aggressive scan (-sS -A -F -sC) provided a much wider scope by explicitly evaluating additional ports like 139 and 445, revealing that they were closed. Furthermore, Nmap unlocked precise version details such as OpenSSH 8.2p1, Nginx 1.18.0, MariaDB 5.5.5-10.5.10, and Apache httpd 2.4.38, which were not detailed in the RustScan port scan phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vemll6isTAz8Ph0Su4pcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEE0DuLUKjxLtLkRyJEHWg.png" /></figure><p>Based on the reconnaissance results from RustScan, Nmap, and OpenVAS, I have gathered enough findings to move forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQIQVnjcDMypMTJpdVYksQ.png" /></figure><p>Here, I initiated directory brute forcing attack using <strong>Gobuster</strong> with the SecLists wordlist and common file extensions to look for hidden directories or administrative panels. However, the enumeration only returned standard assets such as index.html and the images directory and yielded no immediate high-value targets or hidden files.</p><p>While analyzing the HTTP traffic using Burp Suite Proxy, I inspected the response headers returned by the target server (192.168.0.108:8081). The headers revealed critical technology version disclosure, exposing the underlying system components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wbXnJ1K7e7ul9Wsg0jW5qQ.png" /></figure><p>After confirming the website is the WordPress, I attempted to access port 8081 and navigate to the /wp-login page but I was redirected to this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rtZ0BAs4Cd0NJc3-Yxdksw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LCVW44M0VvluHLyvJ4pDvg.png" /></figure><p>Then I started enumerating themes on this WordPress website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJwMH0V56PKkKk2CHiFnPQ.png" /></figure><pre>         __          _______   _____<br>         \ \        / /  __ \ / ____|<br>          \ \  /\  / /| |__) | (___   ___  __ _ _ __ ®<br>           \ \/  \/ / |  ___/ \___ \ / __|/ _` | &#39;_ \<br>            \  /\  /  | |     ____) | (__| (_| | | | |<br>             \/  \/   |_|    |_____/ \___|\__,_|_| |_|<br><br>                  WordPress Security Scanner<br>                         Version 4.0.1<br>                    An Automattic endeavor<br>                    https://automattic.com<br>_______________________________________________________________<br><br>[+] URL: http://wp.looz.com/ [192.168.0.108]<br>[+] Started: Sat Jul 25 05:21:56 2026<br>[+] Command Line: wpscan --url http://wp.looz.com/ --enumerate t --api-token [REDACTED]<br>[+] Hostname: cipherfrost<br><br>Interesting Finding(s):<br><br>[+] Headers<br> | Interesting Entries:<br> |  - Server: nginx/1.18.0 (Ubuntu)<br> |  - X-Powered-By: PHP/7.4.20<br> | Found By: Headers (Passive Detection)<br> | Confidence: 100%<br><br>[+] XML-RPC seems to be enabled: http://wp.looz.com/xmlrpc.php<br> | Found By: Direct Access (Aggressive Detection)<br> | Confidence: 100%<br> | References:<br> |  - http://codex.wordpress.org/XML-RPC_Pingback_API<br> |  - https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_ghost_scanner/<br> |  - https://www.rapid7.com/db/modules/auxiliary/dos/http/wordpress_xmlrpc_dos/<br> |  - https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_xmlrpc_login/<br> |  - https://www.rapid7.com/db/modules/auxiliary/scanner/http/wordpress_pingback_access/<br><br>[+] WordPress readme found: http://wp.looz.com/readme.html<br> | Found By: Direct Access (Aggressive Detection)<br> | Confidence: 100%<br><br>[+] The external WP-Cron seems to be enabled: http://wp.looz.com/wp-cron.php<br> | Found By: Direct Access (Aggressive Detection)<br> | Confidence: 60%<br> | References:<br> |  - https://www.iplocation.net/defend-wordpress-from-ddos<br> |  - https://github.com/wpscanteam/wpscan/issues/1299<br><br>[+] WordPress version 5.7.2 identified (Insecure, released on 2021-05-12).<br> | Found By: Rss Generator (Passive Detection)<br> |  - http://wp.looz.com/?feed=rss2, &lt;generator&gt;https://wordpress.org/?v=5.7.2&lt;/generator&gt;<br> | Confirmed By: Rss Generator (Passive Detection)<br> |  - http://wp.looz.com/?feed=comments-rss2, &lt;generator&gt;https://wordpress.org/?v=5.7.2&lt;/generator&gt;<br><br>[+] WordPress theme in use: twentytwentyone<br> | Location: http://wp.looz.com/wp-content/themes/twentytwentyone/<br> | Last Updated: 2026-05-19 7:00pm GMT (2 months ago, per WordPress.org)<br> | Active Installs: 200,000 (per WordPress.org)<br> | Readme: http://wp.looz.com/wp-content/themes/twentytwentyone/readme.txt<br> | [!] The version is out of date, the latest version is 2.8<br> | Style URL: http://wp.looz.com/wp-content/themes/twentytwentyone/style.css?ver=1.3<br> | Style Name: Twenty Twenty-One<br> | Style URI: https://wordpress.org/themes/twentytwentyone/<br> | Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. Wi...<br> | Author: the WordPress team<br> | Author URI: https://wordpress.org/<br> |<br> | Found By: Css Style In Homepage (Passive Detection)<br> |<br> | Version: 1.3 (80% confidence)<br> | Found By: Style (Passive Detection)<br> |  - http://wp.looz.com/wp-content/themes/twentytwentyone/style.css?ver=1.3, Match: &#39;Version: 1.3&#39;<br><br>[+] Enumerating Most Popular Themes (via Passive and Aggressive Methods)<br><br>[+] twentytwentyone<br> | Location: http://wp.looz.com/wp-content/themes/twentytwentyone/<br> | Last Updated: 2026-05-19 7:00pm GMT (2 months ago, per WordPress.org)<br> | Active Installs: 200,000 (per WordPress.org)<br> | Readme: http://wp.looz.com/wp-content/themes/twentytwentyone/readme.txt<br> | [!] The version is out of date, the latest version is 2.8<br> | Style URL: http://wp.looz.com/wp-content/themes/twentytwentyone/style.css<br> | Style Name: Twenty Twenty-One<br> | Style URI: https://wordpress.org/themes/twentytwentyone/<br> | Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. Wi...<br> | Author: the WordPress team<br> | Author URI: https://wordpress.org/<br> |<br> | Found By: Urls In Homepage (Passive Detection)<br> |<br> | Version: 1.3 (80% confidence)<br> | Found By: Style (Passive Detection)<br> |  - http://wp.looz.com/wp-content/themes/twentytwentyone/style.css, Match: &#39;Version: 1.3&#39;<br><br>[+] twentynineteen<br> | Location: http://wp.looz.com/wp-content/themes/twentynineteen/<br> | Last Updated: 2026-05-19 7:00pm GMT (2 months ago, per WordPress.org)<br> | Active Installs: 90,000 (per WordPress.org)<br> | Readme: http://wp.looz.com/wp-content/themes/twentynineteen/readme.txt<br> | [!] The version is out of date, the latest version is 3.3<br> | Style URL: http://wp.looz.com/wp-content/themes/twentynineteen/style.css<br> | Style Name: Twenty Nineteen<br> | Style URI: https://wordpress.org/themes/twentynineteen/<br> | Description: Our 2019 default theme is designed to show off the power of the block editor. It features custom sty...<br> | Author: the WordPress team<br> | Author URI: https://wordpress.org/<br> |<br> | Found By: Known Locations (Aggressive Detection)<br> |  - http://wp.looz.com/wp-content/themes/twentynineteen/, status: 500<br> |<br> | Version: 2.0 (80% confidence)<br> | Found By: Style (Passive Detection)<br> |  - http://wp.looz.com/wp-content/themes/twentynineteen/style.css, Match: &#39;Version: 2.0&#39;<br><br>[+] twentytwenty<br> | Location: http://wp.looz.com/wp-content/themes/twentytwenty/<br> | Last Updated: 2026-05-19 7:00pm GMT (2 months ago, per WordPress.org)<br> | Active Installs: 200,000 (per WordPress.org)<br> | Readme: http://wp.looz.com/wp-content/themes/twentytwenty/readme.txt<br> | [!] The version is out of date, the latest version is 3.1<br> | Style URL: http://wp.looz.com/wp-content/themes/twentytwenty/style.css<br> | Style Name: Twenty Twenty<br> | Style URI: https://wordpress.org/themes/twentytwenty/<br> | Description: Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor...<br> | Author: the WordPress team<br> | Author URI: https://wordpress.org/<br> |<br> | Found By: Known Locations (Aggressive Detection)<br> |  - http://wp.looz.com/wp-content/themes/twentytwenty/, status: 500<br> |<br> | Version: 1.7 (80% confidence)<br> | Found By: Style (Passive Detection)<br> |  - http://wp.looz.com/wp-content/themes/twentytwenty/style.css, Match: &#39;Version: 1.7&#39;<br> Checking Known Locations - Time: 00:00:13 &lt;================================================================================================================================================================&gt; (400 / 400) 100.00% Time: 00:00:13<br>[i] 3 theme(s) Identified.<br>[+] WPScan DB API OK<br> [redacted]<br> | Requests Done (during the scan): 13<br> | Requests Remaining: 25<br>[+] Finished: Sat Jul 25 05:22:30 2026<br>[+] Requests Done: 417<br>[+] Cached Requests: 65<br>[+] Most response codes received: 404: 398, 401: 13, 200: 3, 500: 3<br>[!] Too many client errors (4xx). This could indicate access restrictions, authentication issues, or WAF blocking<br>[+] Data Sent: 109.614 KB<br>[+] Data Received: 87.417 KB<br>[+] Memory used: 198.656 MB<br>[+] Elapsed time: 00:00:33<br>  </pre><p>The scan quickly flagged that the site is running an outdated WordPress 5.7.2 core from 2021, along with an active XML-RPC endpoint (xmlrpc.php) and an exposed readme.html file. The scan also found the external WP-Cron enabled and three outdated default themes (Twenty Twenty-One, Twenty Nineteen, and Twenty Twenty) sitting on old versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uct1pyEusAeBxMLwibOhog.png" /><figcaption>readme.html file</figcaption></figure><p>During the plugin enumeration phase, the scanner only detected Akismet plugin.<strong> </strong>The directory path (/wp-content/plugins/akismet/) threw a 403 Forbidden error, which just means directory listing is turned off. Because of that, the exact version number stayed hidden, meaning we can&#39;t immediately check for version-specific CVEs on it without digging deeper.</p><p><strong>Code Analysis</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxY7pSx3VukQIz12gK1BXw.png" /></figure><p>I used the username and the password found in the comment, and accessed in the admin dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OiR-m7CuWR8S3NRpWuwcEg.png" /><figcaption>Admin Dashboard</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FW9lzJDwciz6bS%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExdWJvbWE0NjFtamkxOXJ0YzJwY2NxbWtvNDF4aXBqNG1xdzVkcG1wciZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2FW9lzJDwciz6bS%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZ2cxd3pibW4ycjJnZXM4dDVscnl6aDVpZnBvNDY1ZTd1NnhvcXN5NyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FW9lzJDwciz6bS%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="374" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5a574300f8541e49f25edbcb19b0e25/href">https://medium.com/media/e5a574300f8541e49f25edbcb19b0e25/href</a></iframe><p>I prepared a reverse shell and checked the pages to upload it and finally found it haha</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1qgulIZyLAY_ZS7QNg-ow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ysBABTWiU5ej1d7P6CEAZg.png" /></figure><p>But things didn’t go as expected, and I couldn’t upload the reverse shell using this method. But I tried to use Metasploit and it is also failed. Then I remembered that SSH service was also running, and I brute-forced SSH using the second admin username from the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBMZNiY9Q4aHLrrZRrMMhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2eDYV8bDrdx8Ga7Vz04_vA.png" /></figure><p>By bruteforcing the SSH credentials of the secondary administrator, I gained a foothold in the target system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uDTqZyga3bWmsSydtaRc7Q.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FQfXKe522OEagWgTVpf%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPWVjZjA1ZTQ3bG45bnl2dXI3ZWRlZHRjeHJhZGs2b245cmthNHNsM25yOGdxZGh2NyZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2FQfXKe522OEagWgTVpf%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExNDNxcHdwdzA0cTNjd3p2cXFoeDhmY2w3YXd4ZXhvcnZnMzdxdHh6YSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FQfXKe522OEagWgTVpf%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="233" frameborder="0" scrolling="no"><a href="https://medium.com/media/df201f8f835f2464a57de0e36a7ab806/href">https://medium.com/media/df201f8f835f2464a57de0e36a7ab806/href</a></iframe><p>After securing my initial foothold, the next phase is <strong>privilege escalation</strong>😎 enumeration.</p><h3>Checking current user and privileges</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oCTf2AlQUcwvqD-WiZyhaA.png" /></figure><h3><strong>Checking OS version and kernel</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxlaMvdJGCyJebfuabEnpg.png" /></figure><h3>Checking currently logged-in users and history</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*GejmS1yFsE_s1fPGLk2xtQ.png" /></figure><h3>Finding SUID/SGID files</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4URkVsf9ny4oBBou02_oQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYaYb_AUVXzRcPMUVbnavA.png" /><figcaption><a href="https://gtfobins.org/#shell">https://gtfobins.org/#shell</a></figcaption></figure><p>🧐Hmm, standard Linux systems don’t have a SUID binary named shell_testv1.0 in a user&#39;s home directory. The shell_testv1.0 has the SUID bit set (s) and is owned by root, any user on the system who executes this binary will temporarily run it with full root privileges. Let’s run it !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9v5_STcmcnjZjG9sQz0__w.png" /></figure><p>Can privilege escalation be done here in another way?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FUHprOB2h0CBWJ7gz9i%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPWVjZjA1ZTQ3eHQ1a2QzYzdqM2N4bmw2NjNhdmQ5cTMwYjg4am1jYW8xN3I3Z2E3MyZlcD12MV9naWZzX3NlYXJjaCZjdD1n%2FUHprOB2h0CBWJ7gz9i%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExNWcxaGV5Y3N4bTJscnB4aW10czc4Y3U5ZjVmYTU5cjhrYXZ6MGRyZSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FUHprOB2h0CBWJ7gz9i%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/889f23937c6257029dd9fba2a10246f0/href">https://medium.com/media/889f23937c6257029dd9fba2a10246f0/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46203b75d0f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blind SQL injection attack with Conditional Responses using Sniper and Cluster Bomb]]></title>
            <link>https://cyberlabyrinthx.medium.com/blind-sql-injection-attack-with-conditional-responses-using-sniper-and-cluster-bomb-9759ebc69657?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9759ebc69657</guid>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[ethical-hacking-training]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 16:23:22 GMT</pubDate>
            <atom:updated>2026-07-23T16:23:22.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*_sGbjMJYclDfm_g0" /></figure><p><a href="https://portswigger.net/web-security/learning-paths/sql-injection/sql-injection-exploiting-blind-sql-injection-by-triggering-conditional-responses/sql-injection/blind/lab-conditional-responses">Error</a></p><p>Blind SQL Injection is a type of SQL injection where the application does not show query results or database errors, but an attacker can still extract data by observing differences in the application’s behavior (such as responses or timing). As a result, many attack techniques, including UNION-based attacks, are ineffective.</p><p>In this case, the application processes the TrackingID value from the cookie header and includes it in a SQL query. By injecting payloads into this parameter and observing the application’s behavior, we can test whether the application is vulnerable to blind SQL injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8IaZ_CMHmO91ChyaMC2fPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJUzwVyePFN4npsPvc30hA.png" /></figure><p>Using the payloads below, it was easy to determine whether the vulnerability exists. As you can see, the “Welcome back” message appeared when the condition evaluated to true ’ AND ’1&#39;=’1 and disappeared when it evaluated to false ‘ AND ’1&#39;=’2. This difference in application behavior confirms the presence of a blind SQL injection vulnerability.</p><pre>&#39;+AND+&#39;1&#39;=&#39;1</pre><pre>&#39;+AND+&#39;1&#39;=&#39;2</pre><p>After confirming that the “Welcome back” message appears when the condition evaluates to true, the following exploit was used to verify the existence of a user named <em>administrator</em> in the users table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*58ivQvLCUUXqvKZ0hBkoZQ.png" /></figure><pre>&#39;+AND+(SELECT+&#39;a&#39;+FROM+users+WHERE+username=&#39;administrator&#39;)=&#39;a</pre><p>After confirming the existence of the <em>administrator</em> user, the following payload was used to determine the length of the user’s password.</p><pre>&#39;+AND+(SELECT+&#39;a&#39;+FROM+users+WHERE+username=&#39;administrator&#39;+AND+LENGTH(password)&gt;1)=&#39;a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVWnYrfiJEtrRncrPzm5eA.png" /></figure><p>In the payload above, the number in the LENGTH(password) &gt; 1 condition is incremented with each request (e.g., 1, 2, 3, and so on) to determine the password length. During this process, the “Welcome back” message continues to appear while the condition is true. Once the condition becomes false, the message disappears and indicates that the correct password length has been reached.</p><p>To automate this process, I used the <strong>Sniper</strong> attack type in Burp Suite Intruder, which allowed me to systematically iterate through values and efficiently determine the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1zLvSrZ51K5r-fRgBORfg.png" /></figure><p>I placed the payload position on the numeric value 1 and in the Payloads configuration panel, I set the payload type to Numbers then defined a range from 1 to 50 as an estimated password length.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K3vQzzDS9Boqro3NcDE4fQ.png" /></figure><p>Before launching the attack, I configured the Grep — Match feature to flag responses containing the <em>“Welcome back”</em>. This allowed me to quickly distinguish between true and false conditions based on the presence or absence of this message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t4wAIHANFRnJXe_Hu4lidg.png" /></figure><p>After determining the password length, the following payload was used to brute-force each character individually in order to fully extract the password.</p><pre>&#39;+AND+(SELECT+SUBSTRING(password,1,1)+FROM+users+WHERE+username=&#39;administrator&#39;)=&#39;a</pre><p>For this step, both Sniper and Cluster Bomb attack types can be used. The main difference is that<strong> </strong>Cluster Bomb can save time<strong> </strong>by testing multiple positions and characters simultaneously, while Sniper works sequentially<strong>. </strong>In Sniper, the process goes character by character: first X = 1 is tested with all characters (a–z), then X = 2 with a–z, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8pLEhHddx07yvxWyVRbtiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bzqttEEamqMc3JDDfDiIpw.png" /></figure><p>In the first Payloads tab of Burp Suite Intruder, the payload type is set to Numbers, with a sequential range configured from 1 to 20. This allows Intruder to automatically iterate through numeric values. In the second Payloads tab, the payload type is set to Simple list, where a list of lowercase characters (a–z) and digits (0–9) is provided. This enables systematic brute-forcing of each character.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C2Oa-kmfb_JIFk2SCBAt1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7c1dCg1mo5bmBjOviGgpgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ge9wWac-li_gn5If5K1pIA.png" /></figure><p>After successfully extracting the password, I was able to log in to the <em>administrator</em> account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J13Lg1peFpa7xL71deYjUA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9759ebc69657" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database Hacking]]></title>
            <link>https://cyberlabyrinthx.medium.com/database-hacking-95876a79d11d?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/95876a79d11d</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ethical-hacker]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[data-hackers]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Wed, 22 Jul 2026 16:13:56 GMT</pubDate>
            <atom:updated>2026-07-22T16:13:56.095Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*3xyoA8izFUXRMJkv.png" /></figure><p>This is the second part of the previous writeup. If you have skipped <a href="https://cyberlabyrinthx.medium.com/sql-injection-union-attack-414b16d88d18">the first part</a>, it is recommended to read it first in order to understand and continue with this section.</p><p>Today, we will explore how to use SQL injection to interact with a database and list its contents.</p><p>After identifying the number of columns and which of them can hold string data, the next step is to determine the database type and version. We can use the <a href="https://portswigger.net/web-security/sql-injection/cheat-sheet">SQL injection cheat sheet</a> here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I2EdT5luKg6oTgEJNVObQw.png" /></figure><p>After sending payloads, the result revealed the following information:</p><p>the system is running PostgreSQL 12.22 on a 64-bit Ubuntu operating system. Specifically, Ubuntu 20.04.4 is the underlying OS, and the architecture (x86_64-pc-linux-gnu) confirms a 64-bit Linux environment. Additionally, the database was compiled using GCC 9.4.0, which provides further insight about everything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*brnhC8lpbtGIwnc0_xd4uQ.png" /></figure><p>Now that PostgreSQL has been identified, we can start sending database-<a href="https://portswigger.net/web-security/sql-injection/cheat-sheet">specific payloads</a> to enumerate table names and column names.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FeEpwmgYdlOb3hDCA2mCcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPVc2DirinI62NlprFpRxA.png" /></figure><p>⚠️Sometimes payloads may not work as expected. In such cases, we can try sending them using different encoding techniques.</p><p><a href="https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/SQL%20Injection">PayloadsAllTheThings/SQL Injection at master · swisskyrepo/PayloadsAllTheThings</a></p><p>Now we can proceed to review the administrator account as well as other user accounts that were <a href="https://en.wikipedia.org/wiki/Exfiltration">exfiltrate</a>d from the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KRJ-iVVxlcJbDNXcjstjpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdMu_aOqr0lYW5XDkSWaQA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95876a79d11d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL injection UNION attack]]></title>
            <link>https://cyberlabyrinthx.medium.com/sql-injection-union-attack-414b16d88d18?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/414b16d88d18</guid>
            <category><![CDATA[growth-hacking]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Wed, 22 Jul 2026 12:01:23 GMT</pubDate>
            <atom:updated>2026-07-22T16:16:51.943Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UtBVVs8t8xEssgQD.jpg" /></figure><p>SQL injection is a web security vulnerability where an attacker can manipulate a database query by injecting malicious SQL code into user input fields (like login forms, search boxes, URL parameters).</p><p>How to Find SQL Injection</p><p>You start by paying attention to anywhere the app accepts data URLs, login forms, search boxes, filters. If that input is used to query a database, it becomes a potential entry point. And you can start to test SQL injection manually using a systematic set of tests against every entry point in the application.</p><p>When an application is vulnerable to SQL injection, and the results of the query are returned within the application’s responses, you can use the UNION Attack to retrieve data from databases.</p><p>To successfully perform a UNION-based SQL injection attack, two key things must be identified; otherwise, the attack will fail. First, you need to determine the exact number of columns returned by the original query. This is essential because the UNION operator requires both queries to return the same number of columns. Second, you must identify which of those columns can accept and display string data. This allows you to inject and retrieve meaningful information, such as usernames or passwords. Without satisfying these two conditions, a UNION attack cannot be executed successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XcOvhh389CE33RGIjBDqUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypKFsNK4GTLuu_z2HPHxGA.png" /></figure><p>To determine the number of columns in a query, I used the <strong>ORDER BY</strong> method by incrementing the column index step by step. For example, I tested inputs like ORDER BY 1--, then ORDER BY 2--, and continued increasing the number until an error message appeared. The point at which the error occurs helps identify the total number of columns. This is the first method for finding the column count.</p><p>Another method is using <strong>UNION SELECT NULL</strong>. In this approach, we incrementally add NULL values in the UNION query, such as UNION SELECT NULL, UNION SELECT NULL, NULL, and so on, until the error message disappears. When the query executes successfully without errors, it indicates that the correct number of columns has been matched.</p><p>The key difference is that with ORDER BY, we increase the column index until an error appears, whereas with UNION SELECT NULL, we keep adding NULL values until the error disappears.</p><p>When performing SQL injection, it’s important to understand that different database systems use slightly different SQL syntax. Because of this, your injected queries must match the specific database you are targeting.</p><p>For example, if the application is using an Oracle database (developed by Oracle Corporation), every SELECT statement include a FROM clause. Oracle provides a special built-in table called DUAL for this purpose. That’s why, when crafting a UNION-based payload in Oracle, it typically looks like:</p><p>‘ UNION SELECT NULL FROM DUAL —</p><p>For more detailed information about how SQL injection syntax differs across databases like PostgreSQL, MySQL, and others including differences in comment styles you can refer to a SQL injection cheat sheet here.</p><p><a href="https://portswigger.net/web-security/sql-injection/cheat-sheet">SQL injection cheat sheet</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Bz1woeZBBL-iEijKnI17A.png" /></figure><p>After identifying which columns can hold string data, the next step is usually to enumerate the table names and column names in the database. However, in this case, since I already knew the table and column names, I can proceed directly to extracting data from those columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUNESUt22nQ9QrCxwn3iyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yLDvHyIs3EwsVavD-5QuVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2UJ6Lelrb2IxzumjYmq-fQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-nDATdWMObZrE1_AhRgsWg.png" /></figure><p>After extracting the credentials from the database, I validated them by attempting to authenticate to the application. Using the retrieved username and password, I successfully logged in as the user <em>Wiener </em>and administrator.</p><p>Read the rest here:<br><a href="https://cyberlabyrinthx.medium.com/database-hacking-95876a79d11d">https://cyberlabyrinthx.medium.com/database-hacking-95876a79d11d</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=414b16d88d18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agent Sudo — Tryhackme (Writeup)]]></title>
            <link>https://cyberlabyrinthx.medium.com/agent-sudo-tryhackme-writeup-44651c75e999?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/44651c75e999</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 14:52:37 GMT</pubDate>
            <atom:updated>2025-07-03T14:52:37.299Z</atom:updated>
            <content:encoded><![CDATA[<h3>Agent Sudo — Tryhackme (Writeup)</h3><p><a href="https://tryhackme.com/room/agentsudoctf">Agent Sudo</a></p><p>You found a secret server located under the deep sea. Your task is to hack inside the server and reveal the truth 💻.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*XyQIIB2wu9LbY7BA.gif" /><figcaption><a href="https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExeWttb2ZlMmtqZGI4NmVlYjI3bWh1ZG9qeXI0cm93dmdqcmxqMTZ3NSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/quTDNR1nMsq6YpPIqB/giphy.gif">https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExeWttb2ZlMmtqZGI4NmVlYjI3bWh1ZG9qeXI0cm93dmdqcmxqMTZ3NSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/quTDNR1nMsq6YpPIqB/giphy.gif</a></figcaption></figure><blockquote>🧰 Tools to Keep Ready:</blockquote><blockquote>nmap, burpsuite, rustscan, ffuf, steghide, binwalk, fcrackzip, hydra, john, and linpeas.sh.</blockquote><blockquote>🎯 Steps to reveal the truth :</blockquote><blockquote>Initial Recon and Port Scanning</blockquote><blockquote>Web Enumeration</blockquote><blockquote>Steganography</blockquote><blockquote>Hash Cracking and Brute Force attacks</blockquote><blockquote>Hack the shell</blockquote><blockquote>Privilege Escalation.</blockquote><p><strong>Enumerate the machine and get all the important information</strong></p><p>I used a Rustscan tool in this challenge. RustScan quickly finds open ports, then hands those off to nmap for version detection, service enumeration and others. You can learn more about this tool here:</p><p><a href="https://tryhackme.com/room/rustscan">RustScan</a></p><h3><strong>Rustscan and Nmap:</strong></h3><p>We use Rustscan or nmap to understand what is happening on a network. It helps us to see what devices are connected, finding open ports on those devices, which tells us what services like web servers, FTP, SSH are running then we check for security vulnerabilities, such as outdated software or unnecessary services that could be exploited.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lO-lwrAHCDW2L_itxMCyqg.png" /></figure><h3>Open ports:</h3><p>🔒 <strong>Port 21 (FTP — File Transfer Protocol) — </strong>It is used for ransferring files.</p><p>🔒 <strong>Port 22 (SSH — Secure Shell) — </strong>It is used for<strong> </strong>remote command line access.</p><p>🌐 <strong>Port 80 (HTTP — Web Server) —</strong> It is used to serve web pages over the internet.</p><p>After finding an open web port, usually port 80 for HTTP or 443 for HTTPS , we want to enumerate and analyze the web service to identify potential entry points or vulnerabilities like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2CjVyajWy0imCo9ITPQ2A.jpeg" /></figure><p>The website is behaving differently based on the User-Agent header, and that behavior has revealed hidden content and it is a username. That’s a classic case of security through obscurity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*BnKAIWQBvSqRNPR_W0wtOA.jpeg" /></figure><p>Done enumerate the machine? Time to brute your way out.</p><p>FTP -BRUTE_FORCE_ATTACK</p><p>The next step is attacking to the FTP by brute forcing the passwords for that username. We can use a brute force tool such as Hydra or Medusa to automate login attempts against the FTP service on port 21.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WYUD3o9-IarDSTJBp_0dRQ.jpeg" /></figure><p>FTP — Data exfiltration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cx8_r2zvLwGMSvHmpiBdJA.jpeg" /></figure><p>After downloading files, checked for embedded hidden data from files using steghide and binwalk. The binwalk helped me to find a hidden zip file. There are several tools commonly used to find embedded data in files. I use the binwalk to scan for for embedded files, compressed archives, and things like this but I use the steghide to scan for embedded texts and strings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*VD4LLJhsfdx9KszHYEBZBQ.jpeg" /></figure><p>Zip file password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sVyFYzuEnrc9e6h7qulPEg.jpeg" /></figure><p>steg password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*841v_znggUSzKS1bnky4SQ.jpeg" /></figure><p>Who is the other agent (in full name)?</p><p>So, retrieved the steganography password, used it to extract hidden data and found a secret message.txt file containing <strong><em>hidden passwords </em></strong>and other <strong><em>agent full name</em></strong>.</p><h3>You know the drill.</h3><p>What is the user flag?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*kIIA7Q1qNg7DNpJhcHHLug.jpeg" /></figure><p>What is the incident of the photo called? (OSINT)</p><p>To find the name of the incident, i used a google image search to find the answer to the question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJtTZe2FgbYxtoEA4MgcDw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zzV139_gKPrxgGRumwPVHg.jpeg" /><figcaption><a href="https://toyunderground.com/store/product/awesome-toy-alien-autopsy-gero-limited-release/">https://toyunderground.com/store/product/awesome-toy-alien-autopsy-gero-limited-release/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1JdfjA8bLH_GMe8GmkvWQ.jpeg" /><figcaption><a href="https://www.foxnews.com/science/filmmaker-reveals-how-he-faked-infamous-roswell-alien-autopsy-footage-in-a-london-apartment?fbclid=IwAR3yc05UEAYTa4YKPIRCGoLs-cxRUCC4E8yXMqaxLncbViR5fudXyEQJ0ns">https://www.foxnews.com/science/filmmaker-reveals-how-he-faked-infamous-roswell-alien-autopsy-footage-in-a-london-apartment?fbclid=IwAR3yc05UEAYTa4YKPIRCGoLs-cxRUCC4E8yXMqaxLncbViR5fudXyEQJ0ns</a></figcaption></figure><p>Enough with the extraordinary stuff? Time to get real.</p><p>CVE number for the escalation</p><p>(Format: CVE-xxxx-xxxx)</p><p>What is the root flag?</p><p>We check for SUID bit set files<strong> </strong>after gaining access to a victim machine because they can be a path to privilege escalation and especially to root access. This time, there is a vulnerability that allows users with limited sudo permissions to bypass restrictions by specifying the user ID -1 which some systems treat as root (UID 0). It affects sudo versions prior to 1.8.28.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*ymxmagE2TWBaDC1rv15mdA.jpeg" /></figure><p>(Bonus) Who is Agent R?</p><p>The Agent R is DesKel. 🕵️‍♂️</p><p>Thanks for reading! Feel free to share your thoughts in the comments</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44651c75e999" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mr Robot CTF-TryHackme Walkthrough]]></title>
            <link>https://cyberlabyrinthx.medium.com/mr-robot-ctf-tryhackme-walkthrough-9f896cbe0986?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f896cbe0986</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Sun, 25 May 2025 13:02:01 GMT</pubDate>
            <atom:updated>2025-05-25T13:02:01.580Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*8nWXb3QCTr8vusno1Z46fw.png" /></figure><p><a href="https://tryhackme.com/room/mrrobot">Mr Robot CTF</a></p><h3>Based on the Mr. Robot show, can you root this box?</h3><p>To deploy the Mr. Robot virtual machine, you will first need to connect to THM network.</p><p>First, go to your access page : <a href="https://tryhackme.com/access">https://tryhackme.com/access</a> and download one of the configuration file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSUgdiEX-vGRfzW-tXfAQA.png" /></figure><p>I used an OpenVPN client to connect to THM network. I am on Parrot OS and at the end, it said Initialization Sequence Completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*xKGAHYvriTZLj6Em4y9knA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ylOFAYDddzgDhl7Ve1VjZQ.png" /></figure><p>You can verify you are connected by browsing to <a href="http://10.10.10.10/">http://10.10.10.10</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PU9Z1fRdN3nA_4NWjGOaNg.png" /></figure><p>if you are still struggling to connect the network, check this room :</p><p><a href="https://tryhackme.com/room/openvpn">OpenVPN</a></p><p>if you are connected to the network, you are now ready to use machines.</p><h4>LET’S TARGET CONFIDENTIALITY (CIA triad) WITH AN ACTIVE RECON | Reconnaissance(CYBER KILL CHAIN):</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*f6CvT2q-ndT4_1sABG_UEg.png" /></figure><p>The Nmap scan was initiated on the target IP address <strong>10.10.168.54</strong>. The scan used advanced options, a SYN scan (-sS), default scripts (-sC), version detection (-sV), no ping (assumes the host is up, -Pn), and scanned all 65,535 TCP ports (-p-). Most of the ports were filtered, meaning they didn’t respond, this usually suggests firewall rules or packet filtering are in place. Port 22, which typically runs SSH, was found to be closed. This means the service isn’t running or isn’t accessible at the moment. Port 80 was open and running Apache HTTP Server. However, the site hosted on this port didn’t return a page title, which usually means the HTML response lacks a &lt;title&gt; tag or the page is blank. Similarly, port 443, which handles HTTPS traffic, was also open and using Apache HTTP Server with SSL enabled. Like port 80, this site also didn’t return a page title. The web services appear to be poorly configured or intentionally generic, which could open opportunities for further exploration or exploitation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hCtTsExP5OT7_l2S4ML3Ww.png" /></figure><pre>nmap -sS -sC 10.10.168.54 -sV -Pn -p-</pre><p>When I visited <a href="http://10.10.168.54/">http://<strong>10.10.168.54</strong></a><strong>:80</strong>, I were shown what looks like a Linux operating system boot log displayed in a web browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y9IN9BXcQRhS9RNe" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RSX4m5vSScIpsSdCsLLj6A.png" /></figure><p>What you are seeing is a simulated command line interface presented through a web browser. It is styled to resemble a Linux terminal, specifically mimicking the visual style of the TV show <em>Mr. Robot</em>. I loved it. <br>Below the greeting message, a list of commands is displayed: prepare, fsociety, inform, question, wakeup, and join.</p><p>I decided here to use <a href="https://portswigger.net/burp">Burp Suite</a> to intercept and log all HTTP and HTTPS traffic will allow me to inspect requests, responses, headers, and any hidden data exchanges and very useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v88AcGBt5QZZyIBdTqdvNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_-cS2DGM36bRkhOOWAwyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ownTagpto9wVRRKTXW5uAg.png" /></figure><p>then selecting the prepare option triggered an embedded video file to play and immersed myself in the Mr. Robot world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RAlr1zzkvgUH00XZWvN_7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8nWXb3QCTr8vusno1Z46fw.png" /></figure><p>After starting the scan, Gobuster began identifying accessible files and directories on the target web server. It found several key components that suggest the presence of a WordPress-based site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mrFodTaoxnO-VMx__ZULxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xJUBBXN3SF36iDDjowdhWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njydnMTiMpbh0NJkP7DEZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0x_MdNNhxWvU-PZarhI_Wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SR3AqLyD0LWAKbA6FKMdfg.png" /></figure><p>When I accessed /robots.txt, I saw two entries listed beneath the User-agent: * directive, meaning these apply to all bots. These entries are not standard disallow rules, but instead appear to be file paths, revealing:</p><p><strong>fsocity.dic</strong> — This is likely a dictionary file. I downloaded it and inspected it. It contained a list of usernames and passwords used in this challenge, possibly for login forms.</p><p><strong>key-1-of-3.txt</strong> — this is the first first flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKGZq_ioKehHSSuuGkGWTg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bITwM4lFo8iCm8soknG_pQ.png" /></figure><p>Haha, I deciced manually review all brute forced directories. The more thorough your recon, the easier your exploitation and privilege escalation phases will be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kdSVsBm-tD10vKFeBLEEiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJ_DhC92Fic4XkxmV7Pdnw.png" /></figure><p>While inspecting /license.txt, I dug into the HTML source using developer tools and found a base64 encoded string,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*SHbtgdCbuaXi1GUMg5qrHA.png" /></figure><p>based on what i’ve uncovered so far, i’m in a strong position to gain access. Let’s recap my intel and why it matters:</p><blockquote>🔑 Credentials Obtained,</blockquote><blockquote>🌐 Web Recon Completed — Identified potentially juicy files like <strong>key-1-of-3.txt </strong>and <strong>fsocity.dic</strong>, and found multiple directories.</blockquote><h4>Targeting Integrity (CIA triad) | Weaponization, Delivery, and Exploitation Stages (Cyber Kill Chain)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M1uDhXFuTUoccz6yIHhclA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RkpKxmPvAbvPtoUk2-ZwAw.png" /></figure><p>I discovered that the WordPress allows us to upload plugins via:</p><pre>http://10.10.168.54/wp-admin/plugin-install.php?tab=upload</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_tyLqZpK9Gyz0ue9dc5JTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sy4ZXP1wgmRCeJ_oBl6jeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n86RPfC1VSKoTUDoB5niDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NjgPcqyhoS985FexiS1JCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9tpuR_OofcoyrDZ9h04Jw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rkaqIwM8UD5GIzaZsw8ELQ.png" /></figure><p>At this point, my attack had already broken confidentiality and integrity. I were deep into the Cyber Kill Chain, having moved smoothly from reconnaissance through to command and control, and now positioned to carry out any final actions on the compromised system.</p><p>🧠 Attack Impact:</p><p><strong>CIA Triad:</strong></p><ul><li><strong>Confidentiality:</strong> Compromised — I retrieved credentials and sensitive files.</li><li><strong>Integrity:</strong> ✅ — I altered the system by uploading and executing unauthorized code.</li><li><strong>Availability:</strong> Still unaffected (but I <em>could</em> impact it if I wanted to).</li></ul><p><strong>Cyber Kill Chain:</strong></p><ul><li>✅ Reconnaissance</li><li>✅ Weaponization</li><li>✅ Delivery</li><li>✅ Exploitation</li><li>✅ Installation (my shell)</li><li>✅ Command &amp; Control (I have an active shell session)</li></ul><p>Excellent, this is the full WordPress wp-config.php file, it contains database credentials and secret keys. It’s a goldmine in post-exploitation, especially for privilege escalation and lateral movement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sUI-bXmZsIu_rjORaMy_gQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfkHuQo-mtUAWNS3EL7rBA.png" /></figure><p>now I accessed <strong>sensitive credentials</strong> that are meant to be securely stored. This allows me to connect directly to the MySQL database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*7sLdUhqMf5qvWqXcOCXHig.png" /></figure><p>this discovery gives me another powerful vector for privilege escalation or lateral movement.<strong> </strong>The lines I found define FTP access credentials that WordPress uses to modify files via the FTP method.</p><p>I also discovered two highly valuable files in /home/robot:</p><blockquote><strong>key-2-of-3.txt — </strong>only owner can read, no write or execute for anyone else.</blockquote><blockquote><strong>password.raw-md5 —</strong> an MD5 hash of robot&#39;s password</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*CCeYaQp7vaFQ_tbuwB3wYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tzQc8dZ_5htVieOjdwfBaw.png" /><figcaption><a href="https://crackstation.net/">https://crackstation.net/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0-NGA7fcWGSgOfKhRso_FA.png" /></figure><p>After gaining initial access through a web shell, I escalated the privilege by cracking a user password and successfully switching to the robot user and it is considered <strong>lateral movement</strong> within the <strong>Cyber Kill Chain</strong>.</p><p>LATERAL MOVEMENT TIME</p><p>And after switching to the robot user, I checked for <strong>SUID binaries</strong> to identify potential paths for privilege escalation. One notable find was /usr/local/bin/nmap, which had the SUID bit set. Upon checking, I discovered that it was an <strong>older version of Nmap (3.81), </strong>a version that supports <strong>interactive mode</strong> with the ability to execute system commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2CP_h-1NVMr7Meh4nZMrYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mKrbcvySwWxJbpYS_7Y8Aw.png" /><figcaption><a href="https://gtfobins.github.io/gtfobins/nmap/">https://gtfobins.github.io/gtfobins/nmap/</a></figcaption></figure><p>I launched Nmap in interactive mode using:</p><pre>nmap --interactive</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*Eka671a-o0kUSLpi-s1pcA.png" /></figure><p>Inside the interactive shell, I executed !sh, which spawned a <strong>root shell. </strong>Running id confirmed that although the user was still robot, the effective user ID (euid) was 0, which means <strong>root-level privileges</strong> had been successfully obtained.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f896cbe0986" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Glitch-TryHackme(Writeup)]]></title>
            <link>https://cyberlabyrinthx.medium.com/glitch-tryhackme-writeup-276fb3a3ddbe?source=rss-b2d73a010ff7------2</link>
            <guid isPermaLink="false">https://medium.com/p/276fb3a3ddbe</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[CyberLabyrinthX]]></dc:creator>
            <pubDate>Sun, 27 Apr 2025 18:06:15 GMT</pubDate>
            <atom:updated>2025-04-27T18:06:15.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qowrGmyNn5eFjG9Agz4yOg.png" /></figure><p>Link to the exercise:</p><p><a href="https://tryhackme.com/room/glitch">GLITCH</a></p><p>Whenever I start a challenge, I keep the CIA Triad (Confidentiality, Integrity, Availability) and the Cyber Kill Chain in mind because they always guide my approach.</p><h4>Step 1 — Reconnaissance | Targeting Confidentiality 🔓</h4><p>When I first opened the website, I noticed a strange, blurred image. To investigate it further, I used one of my favorite tools for web hacking and it is Burp Suite. If you’re not familiar with it, <a href="https://portswigger.net/">Burp Suite</a> is a powerful tool that intercepts and lets you manipulate HTTP/HTTPS traffic between your browser and a web server. It’s incredibly useful during the reconnaissance phase, allowing you to understand how the website behaves and where it might be vulnerable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p25sAWiREXO58VcNaOSS5w.png" /></figure><p>While I was looking at the website’s code in Burp Suite, I saw some things that looked interesting. I didn’t understand them at first, but they seemed important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*joj6OD57nr5xMkHVjscQHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*EW-gX-O5zMhVUP_2vFe5xQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnih2_BQ1SZqjQ0GIVaPyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-d7jaYNhBxqzRvm77LsKPw.png" /></figure><p>Then, I made a POST request to the /api/items endpoint, which I had found earlier in the source code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZivAZR2zW-al1iwN3MXZug.png" /></figure><p>And, I realized that I had overlooked an important detail earlier that a token I had come across. I copied the token and used Burp Suite’s built in Decoder tool to decode it from Base64. Huh here, I figured out it was actually a hidden secret token for the website.</p><p>I found answer for the first question of the challenge here.</p><pre>What is your access token?<br>THM{REDACTED}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JD8RHsCm3cp_qWdEHFGuZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTAACrS9H4js2O3QVDqRoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uesgnS8jDqgW_jSwqJD2Hg.png" /></figure><h4>Step2 — Weaponization 😎⚔️ | Target confidentiality</h4><p>I felt that I had gathered enough information during reconnaissance. Now, it was time to move on and search for vulnerabilities and figure out the right exploits to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JaBCzK7GAPwIq1j8OZ3PxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7TMd4N3Qp7ptmhAZ6v7RPw.png" /></figure><p>Unfortunately, this web server was not vulnerable to the exploits I have. I ‘ve started a GoBuster scan with the common wordlist.</p><pre>gobuster dir -u http://&lt;IP&gt;/ -w common.txt -x txt,php,sh,cgi,html,zip,bak,sql,old</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*hqD7Q-bN_pNWMQ66r8XpPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KE4pSeVdJzIy3buT9PYIxQ.png" /></figure><p>At this point, I had only one approach left and it was API fuzzing. My goal was to discover if there were any additional API endpoints beyond the ones I already knew that were /access and /items. Unfortunately, no new endpoints showed up. So, I shifted my focus and started fuzzing parameters for both /access and /items to uncover any hidden or vulnerable behavior.</p><pre>wfuzz -c -z file,/usr/share/seclists/Discovery/Web-Content/api/api-endpoints-res.txt --hc 404,500 http://glitch.thm/api/FUZZ</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*V110WKgC7PelAZ-Ci3swdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prROyNxYHXeackbuwePomQ.png" /></figure><p>During fuzzing, I discovered that the &quot;cmd&quot; parameter worked successfully with the /items API endpoint.</p><pre>wfuzz -c -z file,objects.txt  --hc 404,400,200 -X POST http://glitch.thm/api/access?FUZZ=id</pre><pre>wfuzz -c -z file,objects.txt  --hc 404,400,200 -X POST http://glitch.thm/api/items?FUZZ=id</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7vxRDDPFyrSls5OhknHAew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dm0hXrwlwb6NYOYyFb6KYg.png" /></figure><p>To be honest, I didn’t fully understand the error message I got, but the 500<strong> </strong>status code told me it was a server-side issue. I also knew the server was running on Node.js, so I quickly searched online for common Node.js exploits.</p><h4>Step 3 — Delivery and Exploitation 🎁</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DEjmxyC6Ee3DcBfGbTVLmg.png" /></figure><p>I sent the request and got a reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xt5NVT_xhXnlb6Bn8h5_MA.png" /></figure><h4>Step 4 — Privilege Escalation and Exfiltration| Targeting integrity</h4><p>I successfully found the second flag, which answered the second question of the challenge.</p><pre>What is the content of user.txt?<br><br>THM{REDACTED}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3N67trkPuaxoY8bO_fnfCw.png" /></figure><p>I discovered a hidden <strong>.firefox </strong>directory, and inside it, I found some interesting data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bnu4CcwEg5NGZK2ekBKCDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qXH8Z4QC4I6JlE9Gr-phOQ.png" /></figure><p>I decided to exfiltrate<strong> </strong>the data to my local machine for further investigation. There was a lot of data, and much of it appeared to be heavily encrypted. So, I chose to<strong> </strong>convert the directory into a tarball and then send it to my machine for analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*werlB3s4yX-X7vbL0qBOAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvaG-MgWfHHS_TgvDMvOmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uL39i6noiKIVlpr37YQE-Q.png" /></figure><p>there is a tool to find passwords within firefox files and used the tool to find them and decrypted hard coded credentials. You can download it from here:</p><p><a href="https://github.com/unode/firefox_decrypt">GitHub - unode/firefox_decrypt: Firefox Decrypt is a tool to extract passwords from Mozilla (Firefox™, Waterfox™, Thunderbird®, SeaMonkey®) profiles</a></p><p>Finally, I began searching for weak points that would allow me to escalate privileges on the target system. There were three user accounts, one of them was a root user. Privilege escalation typically involves moving from a lower privileged account to one with higher permissions.</p><p>To do this, I used a command to search for files with the SUID bit, which allows a file to run with the privileges of the file’s owner rather than the user running it. During my search, I found a command called <strong>“doas”</strong> that was configured on the target system. I leveraged this to escalate to root user and successfully answered the final question of the challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*7fKoYulekjS9WExw77jdpA.png" /></figure><p>&lt;ROOT USER &gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cr5iql3IFCwiOZrcptVpog.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=276fb3a3ddbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>