You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was already part of a public discussion at the PostgreSQL Berlin meetup and I found no directions in this repository on where to send reports on potential vulnerabilities instead, so I hope it's okay to bring the following up here.
There is a place in this code base that (without any in-depth analysis) looks like it could be vulnerable to SQL injections:
awaitclient.query(`SET search_path TO ${schema}`);
constexplainQuery=`EXPLAIN ${query}`;
Can you confirm? Does it mean that a malicious or snitchy LLM could exploit explainQuery to run arbitrary queries on the connected database? Is there anything protecting against this that I might be missing?
Hi!
This was already part of a public discussion at the PostgreSQL Berlin meetup and I found no directions in this repository on where to send reports on potential vulnerabilities instead, so I hope it's okay to bring the following up here.
There is a place in this code base that (without any in-depth analysis) looks like it could be vulnerable to SQL injections:
agent/apps/dbagent/src/lib/targetdb/db.ts
Lines 390 to 391 in 30aecbc
Can you confirm? Does it mean that a malicious or snitchy LLM could exploit
explainQueryto run arbitrary queries on the connected database? Is there anything protecting against this that I might be missing?Thanks and best, Sebastian
CC @divyenduz