开发者

SQL Injection in sql match query

开发者 https://www.devze.com 2023-03-26 00:34 出处:网络
Is this query hackable using sql injection ? SELECT count(*开发者_Python百科) FROM mytable_fts where mytable_fts match ?

Is this query hackable using sql injection ?

SELECT count(*开发者_Python百科) FROM mytable_fts where mytable_fts match ?

example

SELECT count(*) FROM mytable_fts where mytable_fts match "a"

I tried using

SELECT count(*) FROM mytable_fts where mytable_fts match "a" OR 1==1

but it didn't worked as it is going as match parameter.

can any body give example of sql injection on this query ?


SQL injection vulnerability has less to do with the query itself, than with how the query is constructed. If you use query variables instead of string concatenation, you will be OK. If you use string concatenation, then any query with parameters is vulnerable.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号