如何轻松获得SQL注入错误
Posted 黑白之道
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何轻松获得SQL注入错误相关的知识,希望对你有一定的参考价值。
文章来源:EDI安全


https://redacted.com/user/activation/xxx/1325589 1325589

https://redacted.com/user/resendactivation/xxx/1325589/?smsg=green
https : //redacted.com/resend/activation/1325589'

我重定向到:
https : //redacted.com/signup_page/xxx
7.现在,我尝试编辑请求并添加-+-和类似的响应:

响应被转换为默认请求,因此我可以确认其为SQL Inejction:
8. 现在,我尝试编辑响应并添加“ order + by + 5”,如下所示:

响应变为“ False”条件,因此该列未达到
9.尝试“ order + by + 4”→仍然为假
10.尝试“ order + by + 3”→True!

11.所以现在我尝试这样“选择”:

如果看到响应,我将重定向到:
https://www.redacted.com/user/resendactivation/xxx/3/?smsg=green
得到了数字3
12.现在,尝试对3号注入一个sql查询,如下所示:


推荐文章++++

*
*
*
以上是关于如何轻松获得SQL注入错误的主要内容,如果未能解决你的问题,请参考以下文章
安全测试 web安全测试 常规安全漏洞 可能存在SQL和JS注入漏洞场景分析。为什么自己没有找到漏洞,哪么可能存在漏洞场景是?SQL注入漏洞修复 JS注入漏洞修复 漏洞存在场景分析和修复示例(代码片段