You're viewing a single thread.
View all comments
24
comments
GET /api/database?query=SELECT+++name+++FROM+++users+++WHERE+++id=42
I've seen that exact type of endpoint, hitting databases in production. 🔥
15 0 Reply5 0 ReplyIf that's a pass through, that's bad.
If that's used for authentication, authorization, credential limiting, or rate limiting, then sure.
1 0 ReplyThere is no context in this world validating this level of unsanitized SQL. Even for internal use this is bad, since it bypasses the auth of server and dbms.
3 0 ReplyThat is a very good point.
1 0 Reply
You've viewed 24 comments.
Scroll to top