Validate table name against allowlist in getTableCount (closes #27) #32

Open
clawbot wants to merge 1 commits from fix/issue-27 into main
Collaborator
No description provided.
sneak was assigned by clawbot 2026-02-08 21:05:05 +01:00
clawbot added 1 commit 2026-02-08 21:05:05 +01:00
The getTableCount method used fmt.Sprintf to interpolate a table name directly
into a SQL query. While currently only called with hardcoded names, this is a
dangerous pattern. Added an allowlist of valid table names and return an error
for unrecognized names.
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/issue-27:fix/issue-27
git checkout fix/issue-27
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/vaultik#32
No description provided.