<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Arm on Zero&#39;s Blog</title>
    <link>/tags/arm/</link>
    <description>Recent content in Arm on Zero&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 03 Mar 2026 15:20:00 +0700</lastBuildDate>
    <atom:link href="/tags/arm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>HTB - Pwn: Arms roped</title>
      <link>/posts/htb-pwn-arms-roped/</link>
      <pubDate>Tue, 03 Mar 2026 15:20:00 +0700</pubDate>
      <guid>/posts/htb-pwn-arms-roped/</guid>
      <description>&lt;h2 id=&#34;challenge-summary&#34;&gt;Challenge Summary&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Name:&lt;/strong&gt; Arms roped&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Category:&lt;/strong&gt; Pwn&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Difficulty:&lt;/strong&gt; Medium&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Goal:&lt;/strong&gt; Get code execution and read the flag.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pagevault hint=&#34;Ask bz for access&#34;&gt;&#xA;&lt;h2 id=&#34;binary-recon&#34;&gt;Binary Recon&lt;/h2&gt;&#xA;&lt;p&gt;Initial triage (&lt;code&gt;file&lt;/code&gt;, &lt;code&gt;checksec&lt;/code&gt;, &lt;code&gt;readelf&lt;/code&gt;) showed:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;32-bit ARM ELF&lt;/li&gt;&#xA;&lt;li&gt;PIE enabled&lt;/li&gt;&#xA;&lt;li&gt;Stack canary enabled&lt;/li&gt;&#xA;&lt;li&gt;NX enabled&lt;/li&gt;&#xA;&lt;li&gt;Partial RELRO&lt;/li&gt;&#xA;&lt;li&gt;Bundled &lt;code&gt;libc.so.6&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Main vulnerable path is in &lt;code&gt;string_storer()&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;reads with &lt;code&gt;scanf(&amp;quot;%m[^\n]%n&amp;quot;, &amp;amp;tmp, &amp;amp;n)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;copies with &lt;code&gt;memcpy(localbuf, tmp, n)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;prints with &lt;code&gt;puts(localbuf)&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The bug is straightforward: &lt;strong&gt;attacker-controlled &lt;code&gt;n&lt;/code&gt; is copied into a fixed stack buffer&lt;/strong&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
