我网站上的SQL注入该怎么办?

发布于 2025-02-06 13:10:36 字数 557 浏览 1 评论 0原文

今天,有人多次在我的网站上提交表格,试图在我的数据库上弄得一团糟。 在我的数据库行上,我发现了填充有类似字符串的字段:

  1. -1或2+562-562-1 = 0+0+0+0+0+1
  2. 555
  3. ljanllog
  4. twivcbrf'或754 =(
  5. 从pg_sleep(15)中选择754) - -0
  6. “ xor(if(now()= sysdate(),sleep(15),0))xor” z
  7. if(now()= sysdate(),sleep(15),0),0)
  8. 0” xor(if(现在) ()= sysdate(),睡眠(15),0))xor“ z
  9. (chr(99)|| chr(99)|| chr(99)|| chr(99),15)

1* dbms_pipe.receive_message 关闭我的网站。

我如何防止这样的事情?有什么办法可以检查某人是否在上面提交了类似的东西,以防万一不进行查询而重定向?

我已经对任何领域进行了消毒。

谢谢。

Today someone with a bot tried to make a mess on my database by submitting a form on my website many many times.
On my database rows I've found fields filled with strings like these:

  1. -1 OR 2+562-562-1=0+0+0+1
  2. 555
  3. LJanLlog
  4. TwIvCbrf' OR 754=(SELECT 754
  5. FROM PG_SLEEP(15))--
  6. 0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
  7. if(now()=sysdate(),sleep(15),0)
  8. 0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
  9. 1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

I've ask to my provider to turn off my website.

How can I prevent something like this? Is there any way to check if someone is submitting something like above and in case redirect him without make the query?

I sanitized any field already.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文