<?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>Anyquery (&lt; 0.4.5) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/anyquery--0.4.5/</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, 14 Jul 2026 20:39:43 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/anyquery--0.4.5/feed.xml" rel="self" type="application/rss+xml"/><item><title>Anyquery Server-Side Request Forgery via Unrestricted SQLite Virtual Table Modules</title><link>https://feed.craftedsignal.io/briefs/2026-07-anyquery-ssrf/</link><pubDate>Tue, 14 Jul 2026 20:39:43 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-anyquery-ssrf/</guid><description>Unauthenticated attackers can exploit a Server-Side Request Forgery (SSRF) vulnerability (CVE-2026-54628) in Anyquery's `server` mode (versions prior to 0.4.5) by creating SQLite virtual tables that fetch internal network resources or cloud metadata, leading to internal network mapping and exfiltration of sensitive information like cloud credentials.</description><content:encoded><![CDATA[<p>Anyquery, a tool for querying various data sources, contains a critical Server-Side Request Forgery (SSRF) vulnerability, identified as CVE-2026-54628, in its <code>server</code> mode. When <code>anyquery server</code> is launched, it exposes a MySQL-compatible interface. Versions prior to 0.4.5 allow unauthenticated attackers to create dynamic virtual tables using modules such as <code>json_reader</code> or <code>log_reader</code>. These modules leverage <code>go-getter</code> to fetch URLs without restricting access to local (127.0.0.0/8), private (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), or cloud metadata (169.254.169.254) IP addresses. This allows attackers to bypass network segmentation, scan internal ports, interact with internal APIs, and exfiltrate cloud credentials (e.g., AWS IAM tokens) from the underlying host. The vulnerability poses a significant risk to the confidentiality of internal network data and cloud environments.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An unauthenticated attacker initiates a MySQL client connection to the vulnerable Anyquery server running in <code>server</code> mode (e.g., <code>anyquery server --host 0.0.0.0 --port 8070</code>).</li>
<li>The attacker executes a crafted <code>CREATE VIRTUAL TABLE</code> SQL statement using an unrestricted virtual table module like <code>log_reader</code> or <code>json_reader</code>.</li>
<li>The <code>CREATE VIRTUAL TABLE</code> statement includes a maliciously crafted URL pointing to an internal resource, such as <code>http://169.254.169.254/latest/meta-data/</code> for AWS credentials or <code>http://localhost:8000/admin</code> for an internal web application.</li>
<li>The Anyquery server, via its internal <code>go-getter</code> library, performs an unconstrained HTTP GET request from the server's context to the specified internal or metadata URL.</li>
<li>The Anyquery server receives the HTTP response containing potentially sensitive data from the internal resource.</li>
<li>The attacker executes a <code>SELECT * FROM &lt;virtual_table_name&gt;</code> query against the newly created virtual table.</li>
<li>Anyquery returns the fetched HTTP response content directly as rows within the SQL query result.</li>
<li>The attacker successfully retrieves and exfiltrates sensitive information, such as cloud IAM credentials, internal API responses, or details of the internal network architecture.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The successful exploitation of CVE-2026-54628 in Anyquery's <code>server</code> mode leads to a high confidentiality impact. Attackers can exfiltrate sensitive internal network data, such as responses from internal REST APIs, and critical cloud credentials (e.g., AWS IAM tokens from metadata services), bypassing external firewall restrictions. This enables unauthorized access to other internal systems and cloud resources. While the integrity impact is rated as low (due to potential interaction with state-changing internal APIs), the primary concern is the unconstrained access to confidential information. The vulnerability has a CVSSv3.1 score of 8.6 (High).</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-54628 by upgrading Anyquery to version 0.4.5 or later immediately.</li>
<li>Deploy the Sigma rules in this brief to your SIEM and tune for your environment to detect suspicious outbound network connections.</li>
<li>Enable network connection logging for the <code>anyquery</code> process to detect attempts to connect to internal or metadata IP addresses.</li>
<li>Monitor your DNS and proxy logs for <code>anyquery</code> process activity connecting to <code>169.254.169.254</code> (AWS metadata service) and other cloud metadata IPs.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>ssrf</category><category>vulnerability</category><category>anyquery</category><category>local-file-read</category><category>linux</category><category>data-exfiltration</category></item></channel></rss>