该网站是否容易受到 SQL 注入攻击?
我正在访问一个网站,在尝试按 Enter 键时错误地输入了单引号。
发送的 URL 为: http://www.domain.tld/link.php? id=2603'(已审查:))
导致网站出现以下响应:
您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,了解在第 1 行 ''' 附近使用的正确语法
我尝试过: http://www.domain.tld/link.php?id=2603;显示表格;但这不起作用:P
所以我的问题是:这个网站是否容易受到 sql 注入的攻击?
I am visiting a site and I mistakenly entered a single quote while I was trying to hit the enter key.
The URL that got sent is: http://www.domain.tld/link.php?id=2603' (censored :) )
Resulting in the following response from the site:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1
I've tried to do: http://www.domain.tld/link.php?id=2603; SHOW TABLES; But that didn't work :P
So my question is: can this site vulnerable to sql injection?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很可能是的。在不详细了解如何执行实际注入攻击的情况下,您可以尝试以下操作:
http ://www.domain.tld/link.php?id=2603';恶意代码 --
顺便说一句,我强烈建议您不要太认真地处理这个问题。在美国和许多其他国家/地区,以未经授权的方式访问其他计算机是违法的,如果您做了一些破坏性的事情,他们可能会追捕您。最好的办法是联系该网站的所有者,让他们确切地知道您所看到的内容,以便他们能够解决问题。
Most likely yes. Without getting into the details of how to perform an actual injection attack, you could try something like:
http://www.domain.tld/link.php?id=2603';malicious code --
Incidentally, I HIGHLY recommend that you not dink around with this too diligently. Accessing other computers in an unauthorized manner is against the law in the US and many other countries, and if you do something damaging, they can come after you. The best bet is to contact the site's owner and let them know exactly what you're seeing so that they can address the issue.