<?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 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/anyquery/</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/tags/anyquery/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><item><title>Anyquery Arbitrary File Write (AFW) Leads to Remote Code Execution (RCE)</title><link>https://feed.craftedsignal.io/briefs/2026-07-anyquery-afw-rce/</link><pubDate>Tue, 14 Jul 2026 19:16:28 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-anyquery-afw-rce/</guid><description>Anyquery in server mode is vulnerable to arbitrary file write (AFW) due to its failure to restrict native SQLite disk manipulation commands like `ATTACH DATABASE`. Unauthenticated attackers can connect to the MySQL-compatible server port and write arbitrary files (e.g., PHP webshells, malicious cronjobs) to any path writable by the Anyquery process, which can lead to remote code execution (RCE) with the privileges of the Anyquery process, significantly impacting system integrity and availability.</description><content:encoded><![CDATA[<p>A critical vulnerability (CVE-2026-50006) has been identified in Anyquery versions prior to 0.4.5, specifically when the application is operating in <code>server</code> mode. Unauthenticated attackers can leverage this flaw by connecting to the exposed MySQL-compatible server port. The vulnerability stems from Anyquery's failure to restrict SQLite's <code>ATTACH DATABASE</code> command, allowing adversaries to write arbitrary files to the underlying filesystem. This Arbitrary File Write (AFW) can be exploited to achieve Remote Code Execution (RCE) by dropping malicious files such as PHP web shells into web server directories or injecting cronjob entries into system directories like <code>/etc/cron.d</code>. This means an attacker can gain control over the affected system with the privileges of the running Anyquery process, posing a severe threat to data integrity and system availability.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An unauthenticated attacker connects to the exposed Anyquery MySQL-compatible server port (e.g., 8070).</li>
<li>The attacker executes an <code>ATTACH DATABASE</code> SQL command to specify a new SQLite database file and a sensitive target path on the victim's filesystem (e.g., <code>/etc/cron.d/pwn</code> or <code>/var/www/html/shell.php</code>).</li>
<li>The attacker creates a table within the newly attached database using <code>CREATE TABLE</code>.</li>
<li>The attacker injects a malicious payload (e.g., a reverse shell command for a cronjob, or PHP <code>system()</code> function for a web shell) into the table using an <code>INSERT INTO</code> SQL command.</li>
<li>Anyquery writes the SQLite database file containing the malicious payload to the specified sensitive path.</li>
<li>A system service (e.g., cron daemon, web server) attempts to process the newly created file, ignoring the SQLite binary header and parsing the valid injected malicious code.</li>
<li>The malicious code (e.g., reverse shell, web shell commands) is executed with the privileges of the Anyquery process, leading to Remote Code Execution.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>This vulnerability carries a CVSS score of 9.1 (Critical), indicating high severity. If exploited, the integrity of the affected system is severely compromised as arbitrary files can be written or overwritten, potentially corrupting critical system data. Availability is also highly impacted, as overwriting essential system files or configurations can lead to a complete Denial of Service (DoS). When Anyquery runs with elevated privileges (e.g., as root) or can write to critical directories like web roots or cronjob folders, the AFW escalates directly to Remote Code Execution (RCE) with a CVSS score of 9.8 (Critical), allowing full system compromise, persistence, and potential privilege escalation.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-50006 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 file creations by the <code>anyquery</code> process.</li>
<li>Enable <code>file_event</code> logging for Linux endpoints to capture file creations in sensitive directories like <code>/etc/cron.d/</code> and <code>/var/www/html/</code>.</li>
<li>Enable <code>process_creation</code> logging to monitor for suspicious <code>anyquery</code> process command-line arguments, especially <code>--host 0.0.0.0</code>.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>arbitrary-file-write</category><category>rce</category><category>anyquery</category><category>sqlite</category><category>server-mode</category><category>vulnerability</category></item></channel></rss>