Replies: 1 comment 8 replies
-
Note that you can double quote inside Not disagreeing otherwise with the idea, I also think |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Supabaser should change the JS api for "or". It has the client add a raw postgrest query which is likely to not be cleaned for postgrest format leading to a kind of sql injection at the sql builder level. Particularly bad if done on a server with a service token with full access. Clearly a customer error, but a better api would prevent it.
Say someone is doing this:
Now if
account_id = '0,account_id.gte.1'
then problems.Maybe something like this:
Also, you should check that someone is not accidentally passing a column with the name
or
as that can be lots of fun in the sql builder and open up all sorts of new fun stuff.Also, assuming dot and comma and the like are encoded so they don't seem like sqlgrest stuff in all the other functions.
Beta Was this translation helpful? Give feedback.
All reactions