PT-2026-95138 · Sqlbot+1 · Sqlbot+1
CVSS v4.0
6.0
Medium
| Vector | AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
SQLBot versions prior to 1.9.0
Description
An issue exists where the
POST /api/v1/datasource/previewData endpoint incorporates the client-controlled table name value into generated SQL without safe identifier handling. An authenticated user can configure a datasource for the internal PostgreSQL service and submit a crafted table name to invoke functions such as pg read file(), pg read binary file(), or pg ls dir(), while remaining a SELECT operation under the read-only policy. In default trusted loopback authentication configurations, the internal connection may execute with PostgreSQL superuser privileges, allowing the retrieval of filesystem content, including /etc/hosts and /etc/passwd, potentially exposing configuration, credentials, authentication secrets, and source code.Recommendations
Update to version 1.9.0.
Avoid using the
table name parameter in the POST /api/v1/datasource/previewData endpoint until the update is applied.Exploit
Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Postgresql
Sqlbot