<?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>Ruby on Rio Blog</title><link>https://phucrio.me/tags/ruby/</link><description>Recent content in Ruby 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/ruby/index.xml" rel="self" type="application/rss+xml"/><item><title>HTB - Facts Write-Up</title><link>https://phucrio.me/posts/htb-facts-write-up/</link><pubDate>Sun, 31 May 2026 22:54:46 +0700</pubDate><guid>https://phucrio.me/posts/htb-facts-write-up/</guid><description>&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;Facts is a Linux machine running Camaleon CMS behind nginx, with SSH exposed and a public MinIO/S3-style media service. Initial access comes from &lt;strong&gt;CVE-2024-46987&lt;/strong&gt;, an authenticated Camaleon CMS path traversal / arbitrary file read. The file read is used to grab the user flag and an encrypted SSH private key for &lt;code&gt;trivia&lt;/code&gt;. After cracking the SSH key passphrase, privilege escalation is straightforward because &lt;code&gt;trivia&lt;/code&gt; can run &lt;code&gt;/usr/bin/facter&lt;/code&gt; as root with &lt;code&gt;NOPASSWD&lt;/code&gt;. Facter custom facts are Ruby files; loading one with &lt;code&gt;--custom-dir&lt;/code&gt; executes Ruby code as root.&lt;/p&gt;</description></item></channel></rss>