Dataease SQLBot
SQLBot: SSRF to Arbitrary File Read (AFR) via Rogue MySQL
SQLBot is an intelligent data query system based on a large language model and RAG. Versions prior to 1.7.0 contain a Server-Side Request Forgery (SSRF) vulnerability that allows an attacker to retrieve arbitrary system and application files from the server. An attacker can exploit the /api/v1/datasource/check endpoint by configuring a forged MySQL data source with a malicious parameter extraJdbc="local_infile=1". When the SQLBot backend attempts to verify the connectivity of this data source, an attacker-controlled Rogue MySQL server issues a malicious LOAD DATA LOCAL INFILE command during the MySQL handshake. This forces the target server to read arbitrary files from its local filesystem (such as /etc/passwd or configuration files) and transmit the contents back to the attacker. This issue was fixed in version 1.7.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.7.0
Fixed in 1.7.0
Mitigation
Upgrade SQLBot to 1.7.0 or later.
References
- Vendor advisory github.com/dataease/SQLBot/security/advisories…
- Patch github.com/dataease/SQLBot/commit/ff98514827ba…
- Release notes github.com/dataease/SQLBot/releases/tag/v1.7.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.