开发者

SQL Injection in sql match query

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜