Agenta: SQL injection in tracing full-text content filter
The full-text content filter used by the span query endpoint (POST /api/spans/query) inserted the user-supplied search term into the SQL query without parameter binding or escaping. A single quote in the search term ends the SQL string literal, and the rest of the term runs as SQL. Any authenticated user who can view spans in their own project can send this filter. The query runs against the tracing database, so …