11 points | by creativedg 806 days ago
2 comments
The SQL snippet shared [1] gives me the heebie jeebies. If any one of those where clauses contains user-generated data, that's ripe for a SQL injection vulnerability. `fmt.Sprintf` and SQL almost never belong together.
1 - https://blog.railway.app/_next/image?url=https%3A%2F%2Fres.c...
The SQL snippet shared [1] gives me the heebie jeebies. If any one of those where clauses contains user-generated data, that's ripe for a SQL injection vulnerability. `fmt.Sprintf` and SQL almost never belong together.
1 - https://blog.railway.app/_next/image?url=https%3A%2F%2Fres.c...