[High] Potential SQL Injection in internal/config/sqlite_storage.go #21
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
geomind_code/webgateway#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Issue
While most queries use parameterized statements, some helper functions in
internal/config/sqlite_storage.gomanually concatenate string patterns for unique constraint checks. TheisUniqueConstraintErrorhelper also relies on brittle error string parsing.Impact
Remediation
sqlite3.ErrConstraint) instead of matching error strings.Files Affected
internal/config/sqlite_storage.gofixed error handling, but I don't see database interactions with string concatenations