<?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>Goshs - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/goshs/</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:01:08 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/goshs/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>Goshs File-Based ACL Authorization Bypass via Bulk Zip Download</title><link>https://feed.craftedsignal.io/briefs/2026-07-goshs-auth-bypass/</link><pubDate>Tue, 28 Jul 2026 22:01:08 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-goshs-auth-bypass/</guid><description>An unauthenticated attacker can exploit CVE-2026-54719 in goshs versions up to 1.1.4 and goshs/v2 up to 2.1.0 to bypass file-based Access Control Lists (ACLs) and read any file under the webroot using the `?bulk` zip-download route, leading to unauthorized information disclosure.</description><content:encoded><![CDATA[<p>A high-severity authorization bypass vulnerability, tracked as CVE-2026-54719, has been identified in <code>goshs</code> (versions &lt;= 1.1.4) and <code>goshs/v2</code> (versions &lt;= 2.1.0) which allows unauthenticated attackers to read arbitrary files. This flaw is a residual vulnerability from a previous fix (GHSA-wvhv-qcqf-f3cx) which addressed ACL bypasses on state-changing routes but failed to cover the <code>?bulk</code> zip-download endpoint. The <code>bulkDownload</code> function, invoked by requests containing <code>?bulk</code> and <code>?file=</code> parameters, retrieves file contents as a ZIP archive without performing the necessary <code>.goshs</code> ACL checks or honoring per-file block lists. This critical oversight enables any unauthenticated network attacker to bypass folder-level and file-level access controls, leading to unauthorized disclosure of confidential information from files located under the webroot. The vulnerability does not affect write or delete operations, limiting the impact to confidentiality only.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An unauthenticated attacker identifies a vulnerable <code>goshs</code> instance exposed on the network.</li>
<li>The attacker attempts to access a known protected file directly (e.g., <code>GET /protected/secret.txt</code>), which is correctly denied with a 401 Unauthorized response by the server's standard authorization flow.</li>
<li>The attacker then crafts a malicious HTTP GET request targeting the <code>?bulk</code> zip-download route, appending the <code>?file=</code> parameter with the path to the desired protected file (e.g., <code>GET /?bulk&amp;file=/protected/secret.txt</code>).</li>
<li>The <code>goshs</code> server receives this request and routes it to the <code>bulkDownload</code> function, bypassing the normal authorization gates.</li>
<li>The <code>bulkDownload</code> function processes the <code>?file=</code> parameter, retrieves the content of <code>/protected/secret.txt</code>, and streams it back to the attacker within a ZIP archive.</li>
<li>The attacker extracts the ZIP archive to obtain the contents of the confidential file, completely circumventing the <code>.goshs</code> ACL protections and any per-file block lists.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-54719 leads to unauthorized information disclosure, specifically the confidentiality of any file stored under the <code>goshs</code> webroot that relies solely on <code>.goshs</code> ACLs for protection. While a server-wide basic authentication mechanism (<code>-b</code> flag) would still gate the <code>?bulk</code> route, deployments relying on per-folder <code>.goshs</code> ACLs are vulnerable. Attackers can exfiltrate sensitive data such as configuration files, user data, or intellectual property without any authentication, posing a significant risk to data privacy and security. The vulnerability does not allow for data modification or deletion.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>Detects CVE-2026-54719 Exploitation - Goshs bulk download ACL bypass</code> to your SIEM to identify attempts to exploit this vulnerability.</li>
<li>Monitor web server access logs for <code>GET</code> requests to <code>/?bulk</code> containing the <code>file=</code> parameter, as these indicate potential exploitation attempts.</li>
<li>Apply the latest security patches from <code>goshs</code> developers immediately, which should enforce <code>.goshs</code> ACLs within the <code>bulkDownload</code> function or route <code>?bulk</code> requests through the same authorization gate as normal read paths.</li>
<li>Conduct an audit of other alternate read routes such as <code>?cbDown</code> within your <code>goshs</code> deployments for similar authorization bypass gaps.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>authorization-bypass</category><category>webserver</category><category>vulnerability</category><category>cve</category><category>information-disclosure</category></item><item><title>goshs SSH Tunnel Vulnerable to MITM via Insecure Host Key Handling</title><link>https://feed.craftedsignal.io/briefs/2026-05-goshs-mitm/</link><pubDate>Fri, 15 May 2026 17:19:20 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-goshs-mitm/</guid><description>The goshs application disables SSH host key verification when using the --tunnel flag, making it vulnerable to man-in-the-middle attacks that expose plaintext HTTP traffic.</description><content:encoded><![CDATA[<p>The goshs application, prior to version 2.0.7, is vulnerable to a man-in-the-middle (MITM) attack when using the <code>--tunnel</code> or <code>-t</code> flag. The application opens an outbound SSH connection to <code>localhost.run:22</code> with host key verification disabled via <code>ssh.InsecureIgnoreHostKey()</code>. This insecure configuration allows an attacker positioned on the network path to intercept the TCP connection, present their own SSH host key, and proxy the connection. Because <code>localhost.run</code> performs TLS termination, the attacker can read and rewrite all HTTP request and response content in plaintext. This vulnerability allows for the exfiltration of sensitive data and modification of served content.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>A user executes <code>goshs --tunnel</code> to create a tunnel.</li>
<li><code>tunnel.Start()</code> initiates an SSH connection to <code>localhost.run:22</code> with <code>InsecureIgnoreHostKey()</code>.</li>
<li>An attacker, positioned on the network path, intercepts the TCP connection to <code>localhost.run:22</code> and responds with a malicious SSH server.</li>
<li>The malicious SSH server presents a fake SSH host key, which the goshs client accepts due to the disabled host key verification.</li>
<li>The attacker proxies the SSH session onward to the real <code>localhost.run:22</code> to retrieve the public URL.</li>
<li>All subsequent HTTP requests to the public URL are routed through the attacker's proxy.</li>
<li>The attacker intercepts all HTTP requests and responses, reading sensitive data such as URLs, headers, authentication credentials, and file contents.</li>
<li>The attacker can modify HTTP responses, inject malicious content, or redirect requests.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The vulnerability can lead to significant data breaches and compromise of system integrity. All HTTP request and response content, including sensitive information such as URLs, headers, basic authentication credentials, file contents, and share-link tokens, can be read by the attacker. Furthermore, attackers can modify responses in transit, replacing served files, injecting malicious scripts, or substituting binaries with backdoored versions. This poses a high risk to both the confidentiality and integrity of the data being transmitted through the goshs tunnel.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to goshs version 2.0.7 or later to benefit from the fix that replaces <code>ssh.InsecureIgnoreHostKey()</code> with a TOFU host key verification mechanism.</li>
<li>Monitor network traffic for connections to <code>localhost.run:22</code> originating from goshs processes to detect potential MITM attempts, using the provided Sigma rule.</li>
<li>Regularly inspect the <code>~/.config/goshs/known_hosts</code> file to ensure the host key for <code>localhost.run:22</code> has not been tampered with (after upgrading).</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>mitm</category><category>ssh</category><category>insecure-configuration</category></item><item><title>goshs SimpleHTTPServer SFTP Rename Path Traversal Vulnerability (CVE-2026-40188)</title><link>https://feed.craftedsignal.io/briefs/2026-04-goshs-path-traversal/</link><pubDate>Wed, 03 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-goshs-path-traversal/</guid><description>The goshs SimpleHTTPServer, from version 1.0.7 to before 2.0.0-beta.4, is vulnerable to path traversal (CVE-2026-40188) due to insufficient sanitization of the destination path in the SFTP rename command, potentially allowing attackers with low privileges to write files outside the intended root directory.</description><content:encoded><![CDATA[<p>goshs is a SimpleHTTPServer written in Go. Versions 1.0.7 to before 2.0.0-beta.4 are vulnerable to a path traversal issue (CVE-2026-40188) within the SFTP rename command. This vulnerability arises because the application only sanitizes the source path during a rename operation, neglecting to sanitize the destination path. This oversight allows authenticated attackers with low privileges to manipulate file paths and potentially write files outside the designated SFTP root directory, leading to unauthorized file creation or modification. The vulnerability is resolved in version 2.0.0-beta.4. This vulnerability poses a risk to systems using vulnerable versions of goshs for file sharing.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains low-privilege access to the goshs server via SSH or other means.</li>
<li>Attacker establishes an SFTP session with the vulnerable goshs server.</li>
<li>Attacker identifies a file or directory within their authorized SFTP root.</li>
<li>Attacker crafts an SFTP rename command where the source is a legitimate file within their SFTP root.</li>
<li>The attacker crafts the destination path of the rename command to include path traversal sequences (e.g., &quot;../&quot;) to move outside of the intended root directory.</li>
<li>The vulnerable goshs server executes the rename command using the attacker-controlled destination path without proper sanitization.</li>
<li>The attacker successfully creates or overwrites files in unauthorized locations on the server's file system.</li>
<li>The attacker may leverage the ability to write arbitrary files to achieve persistence by modifying system configuration files.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows attackers to bypass intended access restrictions and potentially overwrite critical system files, leading to code execution or denial-of-service. The impact is high due to the potential for privilege escalation and system compromise. While the exact number of vulnerable installations is unknown, any organization using goshs versions 1.0.7 to before 2.0.0-beta.4 are potentially at risk. Successful exploitation can lead to unauthorized data modification, or system instability.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade goshs to version 2.0.0-beta.4 or later to remediate CVE-2026-40188 as mentioned in the overview.</li>
<li>Monitor SFTP logs for rename operations containing path traversal sequences like &quot;../&quot; in the destination path. (Generic Recommendation)</li>
<li>Implement file integrity monitoring (FIM) on critical system directories to detect unauthorized file modifications resulting from successful exploitation. (Generic Recommendation)</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>path-traversal</category><category>sftp</category><category>cve-2026-40188</category></item></channel></rss>