码迷,mamicode.com
首页 > Web开发 > 详细

Ethical Hacking - Web Penetration Testing(7)

时间:2020-02-08 13:49:05      阅读:77      评论:0      收藏:0      [点我收藏+]

标签:function   ons   static   UNC   upload   png   var   col   src   

VULNS MITIGATION

1. File Upload Vulns - Only allow safe files to be updated.

2. Code Execution Vulns:

  • Don‘t use dangerous functions.
  • Filter use input before execution.

3. File inclusion:

  • Disable allow_url_fopen & allow_url_include.

技术图片

  • Use static file inclusion.

Suggest using Hard Code Style, not using any variables, which is much more secure.

index.php?page=news.php

index.php
code:
include($_GET(‘page‘));

index.php
code:
include(‘page.php‘);

 

Ethical Hacking - Web Penetration Testing(7)

标签:function   ons   static   UNC   upload   png   var   col   src   

原文地址:https://www.cnblogs.com/keepmoving1113/p/12276021.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!