<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GHSA on Zwindler's Reflection</title><link>https://blog.zwindler.fr/en/tags/ghsa/</link><description>Recent content in GHSA on Zwindler's Reflection</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Licensed under CC BY-SA 4.0</copyright><lastBuildDate>Tue, 03 Nov 2026 18:00:00 +0100</lastBuildDate><atom:link href="https://blog.zwindler.fr/en/tags/ghsa/index.xml" rel="self" type="application/rss+xml"/><item><title>Talos: a read-only certificate that reboots your server</title><link>https://blog.zwindler.fr/en/2026/11/03/talos-timecheck-watchdog-os-reader-reboot/</link><pubDate>Tue, 03 Nov 2026 18:00:00 +0100</pubDate><guid>https://blog.zwindler.fr/en/2026/11/03/talos-timecheck-watchdog-os-reader-reboot/</guid><description>&lt;img src="https://blog.zwindler.fr/2026/10/talos.webp" alt="Featured image of post Talos: a read-only certificate that reboots your server" /&gt;&lt;h2 id="tldr"&gt;TL;DR
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;On Talos Linux &amp;lt;= 1.14.2, the &lt;code&gt;TimeService/TimeCheck&lt;/code&gt; API validated PTP device paths with a simple &lt;code&gt;strings.HasPrefix(server, &amp;quot;/dev/&amp;quot;)&lt;/code&gt;. A &lt;code&gt;..&lt;/code&gt; was therefore enough to make &lt;code&gt;machined&lt;/code&gt; open &lt;strong&gt;any file&lt;/strong&gt;, as &lt;strong&gt;root&lt;/strong&gt;. You can&amp;rsquo;t exfiltrate the file, only get it opened.&lt;/li&gt;
&lt;li&gt;This API was available to the &lt;code&gt;os:reader&lt;/code&gt; role, the &lt;strong&gt;read-only&lt;/strong&gt; role you hand out to monitoring tools.&lt;/li&gt;
&lt;li&gt;Opening &lt;code&gt;/dev/watchdog&lt;/code&gt; arms the hardware timer. Closing the file without the magic &lt;code&gt;V&lt;/code&gt; byte leaves it armed. If nobody feeds it: &lt;strong&gt;hard reset&lt;/strong&gt; of the server. A read-only account can therefore reboot a physical server.&lt;/li&gt;
&lt;li&gt;Published on October 19, 2026 as &lt;a class="link" href="https://github.com/siderolabs/talos/security/advisories/GHSA-vpfm-35qx-jhvw" target="_blank" rel="noopener"
&gt;GHSA-vpfm-35qx-jhvw&lt;/a&gt; (Moderate, 5.9), fixed in &lt;strong&gt;1.13.11&lt;/strong&gt; and &lt;strong&gt;1.14.3&lt;/strong&gt;. And it&amp;rsquo;s my first advisory where I&amp;rsquo;m the only credited finder.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="context"&gt;Context
&lt;/h2&gt;&lt;p&gt;In &lt;a class="link" href="https://blog.zwindler.fr/en/2026/09/23/finding-vulnerabilities-oss-not-security-specialist/" &gt;my previous article&lt;/a&gt;, I explained how I&amp;rsquo;ve been hunting vulnerabilities in open source software with LLMs since this summer. Since then, some of these findings have gone public: two Argo CD CVEs co-credited with 7 other reporters each, and one KEDA CVE, also co-credited. There are others pending, but it doesn&amp;rsquo;t taste the same when you&amp;rsquo;re not the &amp;ldquo;first&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;This one is my first &lt;strong&gt;solo&lt;/strong&gt; GHSA: a single name in the credits, mine (even if it was actually Devin/SWE that made the initial discovery, see the previous article). Beyond the personal pride, it&amp;rsquo;s also a really fun one to tell. Martial will give me the side-eye because it&amp;rsquo;s &amp;ldquo;yet another&amp;rdquo; DoS (he nicknamed me DoSnis), but I happen to like DoS.&lt;/p&gt;
&lt;p&gt;It came out of a full audit of Talos (the immutable Linux distribution dedicated to Kubernetes), during a pass where I was looking for something specific: which API methods are reachable by the weakest roles, and what do they &lt;em&gt;really&lt;/em&gt; do?&lt;/p&gt;
&lt;h2 id="talos-and-its-roles-in-two-minutes"&gt;Talos and its roles in two minutes
&lt;/h2&gt;&lt;p&gt;Talos has no SSH, no shell, no package manager. All administration goes through a gRPC API (&lt;code&gt;apid&lt;/code&gt;, port 50000), authenticated with client certificates. The role is embedded in the certificate (&lt;code&gt;O:&lt;/code&gt; field). From most to least powerful:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;os:admin&lt;/code&gt;: everything, including reboot, wipe, machine config&lt;/li&gt;
&lt;li&gt;&lt;code&gt;os:operator&lt;/code&gt;: day-to-day operations (upgrade, reboot&amp;hellip;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;os:reader&lt;/code&gt;: &lt;strong&gt;read-only&lt;/strong&gt;. Node state, logs, metrics, configuration. It&amp;rsquo;s the role you give to dashboards, probes and observability tools, thinking &amp;ldquo;worst case, they look&amp;rdquo;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Except that &lt;code&gt;TimeService/TimeCheck&lt;/code&gt;, the API that asks the node to check its time sync against a given source, was open to all three roles, reader included (&lt;code&gt;internal/app/machined/pkg/system/services/machined.go:160&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;On paper, it makes sense: querying a time source is a read. The catch is that this &amp;ldquo;time source&amp;rdquo; can be either an NTP server or &lt;strong&gt;a PTP device path&lt;/strong&gt; (Precision Time Protocol, the &lt;code&gt;/dev/ptp*&lt;/code&gt; hardware clocks).&lt;/p&gt;
&lt;h2 id="the-bug-a-hasprefix-that-protects-nothing"&gt;The bug: a &lt;code&gt;HasPrefix&lt;/code&gt; that protects nothing
&lt;/h2&gt;&lt;p&gt;Here is the entire check:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-go" data-lang="go"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;// internal/pkg/ntp/ntp.go&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="kd"&gt;func&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;IsPTPDevice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;server&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kt"&gt;bool&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;strings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;HasPrefix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;server&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;&amp;#34;/dev/&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Yes, that&amp;rsquo;s &lt;strong&gt;all&lt;/strong&gt;. No &lt;code&gt;filepath.Clean&lt;/code&gt;, no rejection of &lt;code&gt;..&lt;/code&gt;, no restriction to &lt;code&gt;/dev/ptp*&lt;/code&gt;. The handler (&lt;code&gt;v1alpha1_time.go&lt;/code&gt;) then passes the string as is to &lt;code&gt;QueryPTPDevice&lt;/code&gt;, which does:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-go" data-lang="go"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nx"&gt;fd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;device&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;// machined runs as root&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;So &lt;code&gt;/dev/../dev/watchdog&lt;/code&gt;, &lt;code&gt;/dev/../etc/shadow&lt;/code&gt; or &lt;code&gt;/dev/../dev/sda&lt;/code&gt; all pass the filter and get opened as root by &lt;code&gt;machined&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;First question that comes to mind: &amp;ldquo;OK, so what does it read?&amp;rdquo;. Well&amp;hellip; &lt;strong&gt;nothing&lt;/strong&gt;. The file descriptor goes into PTP ioctls, which fail on anything that isn&amp;rsquo;t a PTP clock, and the content is never sent back to the client. We do &lt;strong&gt;not&lt;/strong&gt; get arbitrary file read.&lt;/p&gt;
&lt;p&gt;The problem is elsewhere: &lt;code&gt;open()&lt;/code&gt; is not a harmless operation.&lt;/p&gt;
&lt;h2 id="open-is-not-a-read-the-watchdog-case"&gt;&lt;code&gt;open()&lt;/code&gt; is not a read: the watchdog case
&lt;/h2&gt;&lt;p&gt;A watchdog is a hardware timer present on most servers: it restarts the machine if the OS stops showing signs of life, typically when the kernel freezes.&lt;/p&gt;
&lt;p&gt;On Linux, opening &lt;code&gt;/dev/watchdog&lt;/code&gt; &lt;strong&gt;arms the hardware watchdog&lt;/strong&gt;. That&amp;rsquo;s the driver contract: the open starts the countdown, and if nobody writes to it regularly (&amp;ldquo;feeding&amp;rdquo; the watchdog), the hardware resets the machine. No application log, no clean shutdown, and the OS has no say in it: the hardware pulls the plug.&lt;/p&gt;
&lt;p&gt;There is a way out: writing the magic character &lt;code&gt;V&lt;/code&gt; to the file before closing it (the &amp;ldquo;magic close&amp;rdquo;), which disarms the timer. Here, Talos does &lt;code&gt;open()&lt;/code&gt;, the PTP ioctls fail, then &lt;code&gt;close()&lt;/code&gt;&amp;hellip; without &lt;code&gt;V&lt;/code&gt;. The timer keeps running, nobody feeds it. Reboot.&lt;/p&gt;
&lt;p&gt;Note: this only works if Talos has &lt;strong&gt;not&lt;/strong&gt; already opened the watchdog itself (no &lt;code&gt;WatchdogTimerConfig&lt;/code&gt; in the machine config, so the vast majority of cases). In other words, the nodes that don&amp;rsquo;t use the watchdog are precisely the vulnerable ones: the attack arms it, and nobody is there to feed it (poor doggy 🐶).&lt;/p&gt;
&lt;h2 id="repro-on-my-lab"&gt;Repro on my lab
&lt;/h2&gt;&lt;p&gt;I verified everything end to end on September 29, 2026, on my Talos lab nodes, with a &lt;code&gt;talosconfig&lt;/code&gt; whose client certificate is strictly &lt;code&gt;O: os:reader&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;First, let&amp;rsquo;s check that this role can&amp;rsquo;t reboot the normal way:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;talosctl -n &amp;lt;node-vm&amp;gt; reboot
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# rpc error: code = PermissionDenied desc = not authorized&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then, a harmless test to prove that the traversal goes through:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;talosctl -n &amp;lt;node-vm&amp;gt; &lt;span class="nb"&gt;time&lt;/span&gt; --check &lt;span class="s2"&gt;&amp;#34;/dev/../proc/version&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# rpc error ... error querying PTP device &amp;#34;/dev/../proc/version&amp;#34;: invalid argument&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# open() succeeded (the file exists), the PTP ioctl is what fails&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;talosctl -n &amp;lt;node-vm&amp;gt; &lt;span class="nb"&gt;time&lt;/span&gt; --check &lt;span class="s2"&gt;&amp;#34;/dev/../nonexistent&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# rpc error ... &amp;#34;/dev/../nonexistent&amp;#34;: no such file or directory&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# open() failed: the file doesn&amp;#39;t exist&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Two different error messages make an oracle: you can tell whether any path exists on the node, including outside &lt;code&gt;/dev&lt;/code&gt;. And the &lt;code&gt;..&lt;/code&gt; showing up as is in the error also confirms there&amp;rsquo;s no &lt;code&gt;filepath.Clean&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Now, on a &lt;strong&gt;bare-metal&lt;/strong&gt; server with an actual hardware watchdog:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;talosctl -n &amp;lt;node-bm&amp;gt; &lt;span class="nb"&gt;time&lt;/span&gt; --check &lt;span class="s2"&gt;&amp;#34;/dev/../dev/watchdog&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# rpc error ... invalid argument (open() as root OK, PTP ioctl fails)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And in the kernel console, at the same moment:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;kern: crit: watchdog: watchdog0: watchdog did not stop!
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That&amp;rsquo;s exactly the message you get when the fd is closed without the &lt;code&gt;V&lt;/code&gt;: the watchdog stays armed, and the node hard resets at the timeout. A certificate that was supposed to only read things just physically rebooted a server.&lt;/p&gt;
&lt;h2 id="other-impacts"&gt;Other impacts
&lt;/h2&gt;&lt;p&gt;To be honest, it remains limited: no content read, no write. What you actually get:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Forced reboot&lt;/strong&gt; through the watchdog, which you can trigger again every time the node comes back up.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;File existence oracle&lt;/strong&gt; on the node (the two error messages). But really, there&amp;rsquo;s almost nothing on a Talos Linux node (that&amp;rsquo;s the whole beauty of it).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Stuck goroutines&lt;/strong&gt;: some devices and FIFOs block in &lt;code&gt;open(2)&lt;/code&gt;, so each call can freeze a &lt;code&gt;machined&lt;/code&gt; handler.&lt;/li&gt;
&lt;li&gt;More exotic side effects of &lt;code&gt;open()&lt;/code&gt; on some drivers (tape rewind, terminal state&amp;hellip;), but that&amp;rsquo;s purely theoretical.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="the-maintainer-scored-it-higher-than-i-did"&gt;The maintainer scored it higher than I did
&lt;/h2&gt;&lt;p&gt;A small anecdote about how subjective CVSS is.&lt;/p&gt;
&lt;p&gt;I had estimated the vulnerability at &lt;strong&gt;5.4&lt;/strong&gt; (&lt;code&gt;AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L&lt;/code&gt;): &lt;code&gt;A:L&lt;/code&gt; for the reboot, and &lt;code&gt;AC:L&lt;/code&gt; because once you hold the &lt;code&gt;os:reader&lt;/code&gt; certificate, the attack is deterministic.&lt;/p&gt;
&lt;p&gt;The maintainer (smira, from Sidero Labs) published &lt;strong&gt;5.9&lt;/strong&gt; (&lt;code&gt;AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H&lt;/code&gt;): &lt;code&gt;A:H&lt;/code&gt; because a hard reset of a physical server is more than a mere degradation, and &lt;code&gt;AC:H&lt;/code&gt; because it requires a hardware watchdog that is present and not managed by Talos.&lt;/p&gt;
&lt;p&gt;And honestly, both choices are defensible. CVSS 3.1 leaves a lot of room for interpretation, especially on &lt;code&gt;AC&lt;/code&gt; (conditions beyond the attacker&amp;rsquo;s control) and on how to count impact when the attacker already has part of the rights. A CVSS score is an argued opinion, not a measurement. And when a maintainer takes the time to justify their vector in the advisory, I&amp;rsquo;m not going to complain.&lt;/p&gt;
&lt;h2 id="the-fix-three-layers-defense-in-depth"&gt;The fix: three layers, defense in depth
&lt;/h2&gt;&lt;p&gt;The fix (merged in main, backported to &lt;strong&gt;1.13.11&lt;/strong&gt; and &lt;strong&gt;1.14.3&lt;/strong&gt;) takes the three ideas I had suggested in the report, and does them better:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Device check&lt;/strong&gt;: before any &lt;code&gt;open()&lt;/code&gt;, the path must point to an actual PTP clock &lt;strong&gt;and&lt;/strong&gt; the kernel must confirm that the device does belong to the PTP subsystem. Opening anything else therefore has no side effect anymore. Error messages have also become generic, which removes the oracle.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Machine config validation&lt;/strong&gt;: PTP paths must be clean paths, directly under &lt;code&gt;/dev&lt;/code&gt;, with a name starting with &lt;code&gt;ptp&lt;/code&gt; (&lt;code&gt;/dev/ptp0&lt;/code&gt;, &lt;code&gt;/dev/ptp_kvm&lt;/code&gt;, &lt;code&gt;/dev/ptp_hyperv&lt;/code&gt;). If you have exotic configs, watch out: they may be rejected after the upgrade.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RBAC&lt;/strong&gt;: &lt;code&gt;TimeService/TimeCheck&lt;/code&gt; is now restricted to &lt;code&gt;os:admin&lt;/code&gt; and &lt;code&gt;os:operator&lt;/code&gt;. &lt;code&gt;TimeService/Time&lt;/code&gt; (reading the configured time, without &lt;code&gt;--check&lt;/code&gt;) remains available to &lt;code&gt;os:reader&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Affected versions: from &lt;code&gt;1.10.0&lt;/code&gt; (first release where &lt;code&gt;TimeCheck&lt;/code&gt; accepts PTP paths), up to &lt;code&gt;1.13.11&lt;/code&gt; / &lt;code&gt;1.14.3&lt;/code&gt; excluded.&lt;/p&gt;
&lt;p&gt;If you can&amp;rsquo;t upgrade right away:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;don&amp;rsquo;t hand out &lt;code&gt;os:reader&lt;/code&gt; certificates to clients you don&amp;rsquo;t fully trust;&lt;/li&gt;
&lt;li&gt;filter network access to the &lt;code&gt;apid&lt;/code&gt; port (50000);&lt;/li&gt;
&lt;li&gt;on nodes with a hardware watchdog, declare a &lt;code&gt;WatchdogTimerConfig&lt;/code&gt; so that Talos keeps the device open itself.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="takeaways"&gt;Takeaways
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;open()&lt;/code&gt; is not a read.&lt;/strong&gt; A call that &amp;ldquo;returns nothing&amp;rdquo; can still arm hardware, block a goroutine or act as an oracle. When auditing a &amp;ldquo;read-only&amp;rdquo; API, the question isn&amp;rsquo;t &amp;ldquo;what does it return?&amp;rdquo; but &amp;ldquo;what does it do?&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A &lt;code&gt;HasPrefix&lt;/code&gt; is not path validation.&lt;/strong&gt; Without &lt;code&gt;filepath.Clean&lt;/code&gt;, without rejecting &lt;code&gt;..&lt;/code&gt; and without an allowlist, it&amp;rsquo;s purely decorative. If you want to look for the same pattern elsewhere, grep for &lt;code&gt;HasPrefix(x, &amp;quot;/dev/&amp;quot;)&lt;/code&gt;, &lt;code&gt;HasPrefix(x, &amp;quot;/proc/&amp;quot;)&lt;/code&gt; or &lt;code&gt;HasPrefix(x, &amp;quot;/sys/&amp;quot;)&lt;/code&gt;. I&amp;rsquo;ve found it in many other OSS projects.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&amp;ldquo;Does this give the attacker something they don&amp;rsquo;t already have?&amp;rdquo;&lt;/strong&gt; That&amp;rsquo;s the question I systematically ask during the counter-review (see the previous article), and here the answer is clear-cut: the &lt;code&gt;reader&lt;/code&gt; role can&amp;rsquo;t reboot (&lt;code&gt;PermissionDenied&lt;/code&gt;), but it can arm the watchdog, which does reboot. Hard for a maintainer to reply &amp;ldquo;working as intended&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&amp;ldquo;Read-only&amp;rdquo; roles are worth a look.&lt;/strong&gt; Everybody audits admin paths. Observability APIs get less scrutiny, are distributed much more widely, and nobody looks at their side effects. In the same audit, this &amp;ldquo;reader + side effect&amp;rdquo; pattern actually gave me other leads.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sidero Labs was exemplary.&lt;/strong&gt; Report accepted in less than an hour, three-layer fix merged less than 3 hours after my report (with hardening I hadn&amp;rsquo;t suggested), CVE requested, and a transparent advisory published less than three weeks later. If every project handled reports like this, a hunter&amp;rsquo;s life would be much simpler.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It all started with a subagent doing exactly what it had been asked to do: read the code file by file and write down everything that looked &amp;ldquo;even vaguely weird&amp;rdquo;. The rest (repro, write-up, submission) follows the pipeline described in &lt;a class="link" href="https://blog.zwindler.fr/en/2026/09/23/finding-vulnerabilities-oss-not-security-specialist/" &gt;the previous article&lt;/a&gt;. It feels good to finally be able to tell a concrete case from start to finish!&lt;/p&gt;</description></item></channel></rss>