<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Rce on Rio Blog</title><link>https://phucrio.me/tags/rce/</link><description>Recent content in Rce on Rio Blog</description><generator>Hugo -- 0.150.0</generator><language>en</language><lastBuildDate>Sun, 31 May 2026 17:38:09 -0400</lastBuildDate><atom:link href="https://phucrio.me/tags/rce/index.xml" rel="self" type="application/rss+xml"/><item><title>HTB - CCTV Write-Up</title><link>https://phucrio.me/posts/htb-cctv-write-up/</link><pubDate>Sun, 31 May 2026 16:48:47 -0400</pubDate><guid>https://phucrio.me/posts/htb-cctv-write-up/</guid><description>&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;CCTV is a Linux HackTheBox machine exposing SSH and a ZoneMinder web application on HTTP. The key foothold is an authenticated SQL injection in ZoneMinder 1.37.63, specifically the &lt;code&gt;removetag&lt;/code&gt; action affected by &lt;strong&gt;CVE-2024-51482&lt;/strong&gt;. After authenticating to the panel, the SQLi can be exploited with &lt;code&gt;sqlmap&lt;/code&gt; to dump &lt;code&gt;zm.Users&lt;/code&gt;, recover password hashes, and crack the &lt;code&gt;mark&lt;/code&gt; account password.&lt;/p&gt;
&lt;p&gt;Once on the box as &lt;code&gt;mark&lt;/code&gt;, privilege escalation comes from a second service: &lt;strong&gt;motionEye&lt;/strong&gt;. A world-readable &lt;code&gt;/etc/motioneye/motion.conf&lt;/code&gt; exposes the motionEye admin credential hash. That hash is sufficient to compute valid request signatures for the localhost-only motionEye API on &lt;code&gt;127.0.0.1:8765&lt;/code&gt;. By updating camera configuration and setting &lt;code&gt;command_storage_exec&lt;/code&gt;, it is possible to trigger root command execution through the snapshot action.&lt;/p&gt;</description></item><item><title>HTB - WingData Write-Up</title><link>https://phucrio.me/posts/htb-wingdata-write-up/</link><pubDate>Sun, 31 May 2026 14:22:01 -0400</pubDate><guid>https://phucrio.me/posts/htb-wingdata-write-up/</guid><description>&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;WingData is a Linux machine built around &lt;strong&gt;Wing FTP Server&lt;/strong&gt;. The intended path chains a &lt;strong&gt;Wing FTP unauthenticated RCE&lt;/strong&gt; into credential recovery for SSH access as &lt;code&gt;wacky&lt;/code&gt;, followed by a root escalation through a &lt;strong&gt;Python &lt;code&gt;tarfile&lt;/code&gt; extraction bug&lt;/strong&gt; exposed by a sudo-allowed restore script.&lt;/p&gt;
&lt;p&gt;Attack chain:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Wing FTP exposure → config leakage / credential recovery → SSH as wacky → vulnerable tar restore script → root&lt;/code&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Technique&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Recon&lt;/td&gt;
&lt;td&gt;&lt;code&gt;nmap&lt;/code&gt;, vhost checks, &lt;code&gt;ffuf&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Wing FTP attack surface identified&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Initial access&lt;/td&gt;
&lt;td&gt;Wing FTP RCE / recovered credentials&lt;/td&gt;
&lt;td&gt;SSH as &lt;code&gt;wacky&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Privilege escalation&lt;/td&gt;
&lt;td&gt;CVE-2025-4517 (&lt;code&gt;tarfile.extractall(filter=&amp;quot;data&amp;quot;)&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;root&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Target&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>HTB - SmartHire Write-Up</title><link>https://phucrio.me/posts/htb-smarthire-write-up/</link><pubDate>Sat, 30 May 2026 14:00:00 +0700</pubDate><guid>https://phucrio.me/posts/htb-smarthire-write-up/</guid><description>&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;SmartHire is a medium-difficulty Linux machine from HackTheBox. It hosts an AI hiring platform built with Flask on nginx, using &lt;strong&gt;MLflow&lt;/strong&gt; for model management. Initial access is gained via &lt;strong&gt;CVE-2024-37054&lt;/strong&gt;, a pickle deserialization vulnerability in MLflow that allows remote code execution by overwriting a model artifact with a malicious payload. Privilege escalation exploits a writable plugin directory combined with a sudo rule — a crafted &lt;code&gt;.pth&lt;/code&gt; file executed by &lt;code&gt;site.addsitedir()&lt;/code&gt; runs as root.&lt;/p&gt;</description></item></channel></rss>