You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found there is a validation to check parameters with number of ? in the query src.
It is a false positive for jsonb operations in Postgresql (e.g ?|).
Example: User.raw("select id from users where groups ?| array['user']")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I found there is a validation to check parameters with number of
?
in the query src.It is a false positive for jsonb operations in Postgresql (e.g
?|
).Example:
User.raw("select id from users where groups ?| array['user']")
References: https://www.postgresql.org/docs/9.4/functions-json.html#FUNCTIONS-JSONB-OP-TABLE
Beta Was this translation helpful? Give feedback.
All reactions