<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Writeups on sin&#39;s blog</title>
		<link>https://ret2sin.dev/writeups/</link>
		<description>Recent content in Writeups on sin&#39;s blog</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Sun, 29 Nov 2026 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://ret2sin.dev/writeups/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>SMAG</title>
				<link>https://ret2sin.dev/writeups/smag/</link>
				<pubDate>Sun, 29 Nov 2026 00:00:00 +0000</pubDate>
				<guid>https://ret2sin.dev/writeups/smag/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Chain:&lt;/strong&gt; a &lt;code&gt;.pcap&lt;/code&gt; in a web mail archive leaks login creds → vhost-gated command-exec page → PHP reverse shell as &lt;code&gt;www-data&lt;/code&gt; → a root cron that overwrites jake&amp;rsquo;s &lt;code&gt;authorized_keys&lt;/code&gt; → SSH as jake → &lt;code&gt;sudo apt-get&lt;/code&gt; to root.&lt;/p&gt;&#xA;&lt;h2 id=&#34;recon&#34;&gt;Recon&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;nmap -p- --min-rate &lt;span class=&#34;m&#34;&gt;5000&lt;/span&gt; -T4 TARGET   &lt;span class=&#34;c1&#34;&gt;# full port sweep: only 22 (SSH) and 80 (HTTP)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;gobuster dir -u http://TARGET -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt   &lt;span class=&#34;c1&#34;&gt;# finds /mail&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;/mail&lt;/code&gt; is an email2web inbox with a pile of messages. One has a downloadable &lt;code&gt;.pcap&lt;/code&gt; attachment.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Broadcast</title>
				<link>https://ret2sin.dev/writeups/broadcast/</link>
				<pubDate>Fri, 23 Oct 2026 00:00:00 +0000</pubDate>
				<guid>https://ret2sin.dev/writeups/broadcast/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Chain:&lt;/strong&gt; LFI via a weak &lt;code&gt;str_replace&lt;/code&gt; filter → &lt;code&gt;.htpasswd&lt;/code&gt; creds → ClipBucket authenticated RCE → reverse shell as &lt;code&gt;www-data&lt;/code&gt; → SSH key from a world-readable backup → root via a tar-wildcard cron job.&lt;/p&gt;&#xA;&lt;h2 id=&#34;recon&#34;&gt;Recon&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;nmap -sC -sV broadcast.vulnnet.thm   &lt;span class=&#34;c1&#34;&gt;# only 22 (SSH) and 80 (HTTP), nothing unusual&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Proxying the site through Burp surfaced a hidden page pointing at &lt;code&gt;broadcast.vulnnet.thm&lt;/code&gt;, and another page had this in its JS:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;n.p = &amp;#34;http://vulnnet.thm/index.php?referer=&amp;#34;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;A &lt;code&gt;referer&lt;/code&gt; parameter feeding straight into a page is a classic LFI smell.&lt;/p&gt;</description>
			</item>
			<item>
				<title>OhMyWebServer</title>
				<link>https://ret2sin.dev/writeups/ohmywebserver/</link>
				<pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate>
				<guid>https://ret2sin.dev/writeups/ohmywebserver/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Chain:&lt;/strong&gt; Apache 2.4.49 path traversal (CVE-2021-41773) → RCE as &lt;code&gt;daemon&lt;/code&gt; in a container → root via a &lt;code&gt;cap_setuid&lt;/code&gt; capability on &lt;code&gt;python3.7&lt;/code&gt; → scan the host from inside the container → escape to the host through OMIGOD (CVE-2021-38647).&lt;/p&gt;&#xA;&lt;h2 id=&#34;recon&#34;&gt;Recon&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;nmap -p- --min-rate &lt;span class=&#34;m&#34;&gt;5000&lt;/span&gt; -T4 TARGET   &lt;span class=&#34;c1&#34;&gt;# full sweep: 22 and 80&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;nmap -p 22,80 -sCV TARGET              &lt;span class=&#34;c1&#34;&gt;# 80 is Apache/2.4.49&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Apache &lt;strong&gt;2.4.49&lt;/strong&gt; is the version with CVE-2021-41773 — path traversal that turns into RCE when &lt;code&gt;mod_cgi&lt;/code&gt; is enabled.&lt;/p&gt;</description>
			</item>
			<item>
				<title>dogcat</title>
				<link>https://ret2sin.dev/writeups/dogcat/</link>
				<pubDate>Tue, 06 Oct 2026 00:00:00 +0000</pubDate>
				<guid>https://ret2sin.dev/writeups/dogcat/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Chain:&lt;/strong&gt; an &lt;code&gt;?view=&lt;/code&gt; include filtered to &amp;ldquo;cat&amp;rdquo;/&amp;ldquo;dog&amp;rdquo; → PHP filter leak of the source → &lt;code&gt;ext=&lt;/code&gt; trick to read arbitrary files → Apache log poisoning to RCE → &lt;code&gt;sudo env&lt;/code&gt; to root in the container → Docker escape via a writable backup script on a host cron. Four flags.&lt;/p&gt;&#xA;&lt;h2 id=&#34;recon&#34;&gt;Recon&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;nmap -p- --min-rate &lt;span class=&#34;m&#34;&gt;5000&lt;/span&gt; -T4 TARGET   &lt;span class=&#34;c1&#34;&gt;# only 22 and 80&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Gobuster finds nothing useful, but the front page screams LFI: &lt;code&gt;?view=cat&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
