除XSS和Sql注入外,我还可以保护我的网站吗? [英] Ways I can protect my site excluding XSS and Sql injection?

查看:101
本文介绍了除XSS和Sql注入外,我还可以保护我的网站吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


因此,我网站的成员可以发布主题,回复,评论,对其进行编辑等.我始终对HTML输入使用htmlspecialcharsaddslashes来保护我的站点免受XSS和SQL注入攻击.够了还是我想念的更多吗?
谢谢.


So, members of my website can post topics, replies, comments, edit them and so on. I always use htmlspecialchars and addslashes for html inputs to protect my site against XSS and SQL injection attacks. Is it enough or is there something more I miss?
Thanks.

推荐答案

Web应用程序可能会出错.除了XSS和SQLi,还有:

There is a lot that can go wrong with a web application. Other than XSS and SQLi, there is:

  1. CSRF-跨站点请求伪造
  2. LFI/RFI-由include()require() ...
  3. 引起的本地文件包含/远程文件包含
  4. mail()
  5. 中进行CRLF注射
  6. 全局变量命名空间通常由register_globalsextract()import_request_variables()
  7. 引起
  8. 遍历目录:fopen()file_get_contents()file_put_conents()
  9. 使用eval()preg_replace()/e的远程代码执行
  10. 具有passthru()exec()system()和``
  11. 的远程代码执行
  1. CSRF - Cross Site Request Forgery
  2. LFI/RFI - Local File Include/Remote File Include caused by include(), require()...
  3. CRLF injection in mail()
  4. Global Variable Namespace Poising commonly caused by register_globals,extract(), import_request_variables()
  5. Directory Traversal: fopen(), file_get_contents(), file_put_conents()
  6. Remote Code Execution with eval() or preg_replace() with /e
  7. Remote Code Execution with passthru(), exec(), system() and ``

关于损坏的身份验证和会话管理,存在一整套漏洞每个Web应用程序程序员必须 OWASP排名前10 的一部分/strong>阅读.

There is a whole family of vulnerabilities regarding Broken Authentication and Session Management which is apart of the OWASP Top 10 that every web app programmer must read.

《猩红色的研究》 是一本很好的黑皮书,涵盖了许多这些方面我列出的漏洞.

A Study In Scarlet is a good black paper that goes over many of these vulnerabilities that I have listed.

但是,在 Wordpress .关于什么是漏洞的绝对权威是 CWE系统,它对 HUNDREDS 进行了分类漏洞,其中许多漏洞都可能影响Web应用程序.

However, there are also strange vulnerabilities like this one in Wordpress. The definitive authority on what is a vulnerability is the CWE system which classifies HUNDREDS of vulnerabilities, many of which can affect web applications.

这篇关于除XSS和Sql注入外,我还可以保护我的网站吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆