security(backend-postgres): bind query values as parameters #30
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core!30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/backend-postgres-sql-injection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
read(), update() and find() built their SQL by pasting values between
quotes: record identifiers, filter values, keyword searches, parent
identifiers. A value holding a quote broke the query, and a crafted one
changed it (reading or updating other records).
names, which are part of the SQL text, are validated before use.
Legitimate queries are unchanged. find() had no test: a suite now covers
filters, sorting and limits, values holding quotes, and injection
attempts through each entry point.
Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com