<?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>Goshs &lt;= 1.1.4 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/goshs--1.1.4/</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>Tue, 28 Jul 2026 22:04:16 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/goshs--1.1.4/feed.xml" rel="self" type="application/rss+xml"/><item><title>Goshs WebDAV MOVE Method Bypasses No-Delete Flag</title><link>https://feed.craftedsignal.io/briefs/2026-07-goshs-webdav-move-bypass/</link><pubDate>Tue, 28 Jul 2026 22:04:16 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-goshs-webdav-move-bypass/</guid><description>A critical vulnerability (CVE-2026-64863) in the goshs WebDAV server, affecting versions up to 2.1.3, allows an attacker to bypass the `--no-delete` security flag using the `MOVE` HTTP method, leading to unauthorized deletion of source files or overwriting of existing destination files, impacting data integrity.</description><content:encoded><![CDATA[<p>A critical vulnerability, tracked as CVE-2026-64863, has been discovered in the <code>goshs</code> WebDAV server (versions up to 2.1.3 and 1.1.4). The <code>--no-delete</code> command-line flag, intended to prevent file deletion and overwriting, is ineffective against the WebDAV <code>MOVE</code> HTTP method. This logical flaw allows a remote attacker to bypass a configured security control, enabling unauthorized deletion of source files or overwriting of existing destination files, even when the server operator believes deletion is disabled. The issue stems from the server's <code>wdGuard</code> handler, which incorrectly classifies <code>MOVE</code> as a write-only operation, thus failing to apply the <code>fs.NoDelete</code> check to it. This oversight defeats the security intent of the <code>--no-delete</code> flag, jeopardizing data integrity for systems using <code>goshs</code> to serve files with deletion restrictions.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies a <code>goshs</code> server running with WebDAV enabled and the <code>--no-delete</code> flag configured (e.g., <code>goshs --webdav --no-delete</code>).</li>
<li>The attacker attempts to <code>DELETE</code> a file, which is correctly blocked by the server, returning an HTTP 403 Forbidden status, confirming the <code>--no-delete</code> flag is active for the <code>DELETE</code> verb.</li>
<li>The attacker crafts an HTTP <code>MOVE</code> request targeting a sensitive file (e.g., <code>/secret.txt</code>) with a <code>Destination</code> header pointing to a new path (e.g., <code>/gone.txt</code>).</li>
<li>The server processes the <code>MOVE</code> request, effectively deleting <code>/secret.txt</code> from its original location and moving its content to <code>/gone.txt</code>, bypassing the <code>--no-delete</code> control.</li>
<li>Alternatively, the attacker crafts an HTTP <code>MOVE</code> request with an <code>Overwrite: T</code> header, targeting a source file (e.g., <code>/gone.txt</code>) and a destination path that corresponds to an existing, sensitive file (e.g., <code>/victim.txt</code>).</li>
<li>The server processes this <code>MOVE</code> request, first invoking <code>RemoveAll</code> on the existing <code>/victim.txt</code> and then moving the content of <code>/gone.txt</code> to <code>/victim.txt</code>.</li>
<li>This results in the original content of <code>/victim.txt</code> being destroyed and replaced with the attacker-controlled content, allowing data destruction or overwriting, despite the <code>--no-delete</code> flag.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The impact of CVE-2026-64863 is significant for <code>goshs</code> deployments where file integrity and prevention of deletion/overwriting are paramount. If an operator sets up <code>goshs</code> with <code>--no-delete</code> to protect critical data, such as archived artifacts or confidential documents, any authenticated (or unauthenticated, if no ACLs are in place) WebDAV client can exploit this flaw. This allows an attacker to rename confidential files away, effectively deleting them from their expected location, or worse, overwrite existing sensitive files with arbitrary content. This directly violates the intended security posture, leading to data loss, data corruption, or the unavailability of critical information, undermining the trust in the configured security controls.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li><strong>Patch CVE-2026-64863</strong>: Update <code>goshs</code> to a patched version immediately. Monitor the official GitHub repository for releases that address this vulnerability.</li>
<li><strong>Deploy the Sigma rule in this brief</strong>: Implement the provided Sigma rule into your SIEM to detect suspicious WebDAV <code>MOVE</code> requests, particularly those including the <code>Overwrite: T</code> header.</li>
<li><strong>Enable webserver logging</strong>: Ensure comprehensive logging for your <code>goshs</code> instances, including HTTP method, URI, status codes, and request headers (specifically <code>Overwrite</code>). This is crucial for the provided Sigma rule.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>webdav</category><category>vulnerability</category><category>file-deletion</category><category>data-destruction</category><category>server</category><category>golang</category></item></channel></rss>