<?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/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Komari (&lt; 0.0.0-20260609084633-98122fa4d110) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/komari--0.0.0-20260609084633-98122fa4d110/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 10 Sep 2026 00:51:29 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/komari--0.0.0-20260609084633-98122fa4d110/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>CSRF Vulnerability in Komari Management Interface</title><link>https://feed.craftedsignal.io/briefs/2026-09-komari-csrf/</link><pubDate>Thu, 10 Sep 2026 00:51:29 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-komari-csrf/</guid><description>The Komari management interface lacks CSRF protections and secure cookie attributes, allowing an attacker to perform unauthorized administrative actions including arbitrary code execution.</description><content:encoded><![CDATA[<p>The Komari management interface (version &lt; 0.0.0-20260609084633-98122fa4d110) contains a significant security flaw regarding session and administrative request validation. The <code>session_token</code> cookie is generated without <code>Secure</code> or <code>SameSite</code> attributes, and all administrative API endpoints under <code>/api/admin/</code> lack CSRF token verification or Origin-based access controls.</p>
<p>While modern browsers implement <code>SameSite=Lax</code> by default - which hinders cross-site POST requests - the application remains susceptible in same-origin contexts, when accessed via legacy browsers, or during Man-in-the-Middle (MitM) attacks due to the missing <code>Secure</code> flag. Successful exploitation enables unauthorized actors to perform high-impact operations, including executing shell commands via <code>/api/admin/task/exec</code>, disabling 2FA, and modifying system configurations. This vulnerability stems from inadequate middleware configuration in the underlying Gin framework implementation.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker identifies the target instance of the Komari management console.</li>
<li>Attacker crafts a malicious payload (e.g., HTML form or JavaScript fetch request) targeting a sensitive endpoint such as <code>/api/admin/task/exec</code>.</li>
<li>Attacker lures an authenticated administrative user to a malicious site or injects the payload via existing XSS vulnerabilities in the target's environment.</li>
<li>The victim's browser initiates the unauthorized request to the Komari API.</li>
<li>The server receives the request, including the non-secure <code>session_token</code> cookie, which is automatically included by the browser if the environment does not strictly enforce <code>SameSite=Lax</code> or if it is a same-origin request.</li>
<li>The server application, lacking CSRF middleware, processes the request as legitimate, assuming it originated from the administrative interface.</li>
<li>The intended administrative operation (e.g., code execution or configuration change) is performed on the server or managed nodes.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows attackers to bypass administrative authentication. Impacted operations include the execution of arbitrary shell commands on managed nodes, complete disabling of administrator 2FA, deletion of monitoring records, and modification of system settings. This could lead to a total compromise of the managed infrastructure and the Komari monitoring server itself.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritize updating the Komari package to version 0.0.0-20260609084633-98122fa4d110 or later. Ensure that webserver-level headers are configured to prevent cross-site request forgery and that the application is served exclusively over HTTPS with cookies flagged as <code>Secure</code> and <code>SameSite=Strict</code>. For detection engineering, monitor webserver access logs for anomalous POST requests to <code>/api/admin/</code> paths that do not originate from the expected internal management source IPs or authorized referrers.</p>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>web-application-security</category><category>csrf</category><category>komari</category><category>session-management</category></item></channel></rss>