当前位置: 首页 > news >正文

床上做受网站如何做好营销推广

床上做受网站,如何做好营销推广,软件开发公司怎么找客户,b2b平台支付方式文件类漏洞总结 一, 文件包含 1. 文件包含绕过 实际环境中不是都是像$_GET[file]; incude $file 这样直接把变量传入包含函数的。 在很多时候包含的变量文件不是完全可控的&#xff0c;比如下面这段代码指定了前缀和后缀: <?php $file S_GET[filename]; include /opt/…

文件类漏洞总结

一, 文件包含

1. 文件包含绕过

实际环境中不是都是像$_GET['file']; incude $file 这样直接把变量传入包含函数的。
在很多时候包含的变量文件不是完全可控的,比如下面这段代码指定了前缀和后缀:

<?php
$file = S_GET['filename'];
include '/opt/lampp/htdocs/security/' . $file . '/test/test.php';
?>
  1. 目录穿越绕过指定前缀,构造 file =…/…/./etc/passwd

  2. 编码绕过前缀: ../ 的编码为: %2e%2e%2f..\ 的编码为: %2e%2e%5

  3. 二次编码绕过前缀: ../ 的二次编码为: %252e%252e%252f, 的二次编码为: %252e%252e%255C

  4. 对于远程包含,使用 ? 号绕过后缀,此时后缀将变成参数的一部分.

    前端提交: http://xxx/xxx/read.php?filename=http://xxx/xxx/mm.php
    后端包含: http://xxx/xxx/mm.php/test/test.php, 由于后端添加了后缀, 导致路径错误
    "?"绕过 : http://xxx/xxx/read.php?filename=http://xxx/xxx/mm.php?

  5. %00截断后缀,只适用于PHP5.3以前的版本

  6. 使用伪协议 phar:// 构造一个与后缀同路径的压缩包,比如此时 file = phar://test.zip

2. 文件包含防御

(1) 配置open_basedir,只允许包含某个目录下的内容
(2) 不允许文件包含让用户可控,直接写在代码中
(3) 尽量包含一个确定的文件,而不是一个变量或参数值
(4) 检测用户输入参数,确保路径可控
(5) 过滤各种./../ 或经过编码的 %2e%2E
(6) 不使用远程包含,关闭 allow_url_include (默认关闭)
(7) 如果需要使用,则限定域名或路径
(8) 使用白名单,只要不在白名单列表中的内容,则验证不通过

二, 文件上传

1. 文件上传绕过:
1. 前端绕过
2. 类型MIME绕过
3. 黑名单绕过
4. 大小写绕过
5. 双写绕过
6. 空格绕过
7. 点绕过
8. 点空格点绕过
9. 图片马
2. 文件上传防御:

(1) 前后端一起校验,校验后缀名,校验MIME类型
(2) 后缀名的校验必须全部转换成小写进行处理
(3) 使用白名单,不是白名单的一律禁止.
(4) 去除文件名后续的各种符号,如空格
(5) 针对图片文件,使用二次渲染或压缩技术处理图片,并另存
(6) 对文件名进行重命名,则先命名再移动,避免条件竞争
(7) 将上传文件所在目录的权限设置为不可执行

三, 文件下载

1. 文件下载绕过:
参考文件包含绕过.
2. 文件下载防御:

(1)过滤特殊字符"."(点),使用户在url中不能回溯上级目录
(2)正则严格判断用户输入参数的格式
(3)php.ini配置open_basedir限定文件访问范围
(4)将文件路径保存于数据库中,通过 file?id=3 的数据库序号id方式下载文件, 而不是通过具体的文件名.


文章转载自:
http://condense.c7512.cn
http://monosemantemic.c7512.cn
http://aspirator.c7512.cn
http://hypogastric.c7512.cn
http://hypersecretion.c7512.cn
http://hyoscine.c7512.cn
http://compel.c7512.cn
http://rootedness.c7512.cn
http://videophone.c7512.cn
http://cyclonoscope.c7512.cn
http://highstrikes.c7512.cn
http://hindooize.c7512.cn
http://abm.c7512.cn
http://tragic.c7512.cn
http://wheezily.c7512.cn
http://tampion.c7512.cn
http://viroid.c7512.cn
http://civies.c7512.cn
http://extraversion.c7512.cn
http://everyday.c7512.cn
http://isoeugenol.c7512.cn
http://cowpea.c7512.cn
http://vicinity.c7512.cn
http://bloodfin.c7512.cn
http://lemniscus.c7512.cn
http://opportune.c7512.cn
http://guyana.c7512.cn
http://muzzle.c7512.cn
http://orometer.c7512.cn
http://ananthous.c7512.cn
http://bushido.c7512.cn
http://hyperboloidal.c7512.cn
http://superorganic.c7512.cn
http://ginza.c7512.cn
http://northernmost.c7512.cn
http://domaine.c7512.cn
http://fornicator.c7512.cn
http://screaming.c7512.cn
http://insectivorous.c7512.cn
http://rocking.c7512.cn
http://synonymics.c7512.cn
http://infilter.c7512.cn
http://anepigraphic.c7512.cn
http://supportless.c7512.cn
http://buggy.c7512.cn
http://crispness.c7512.cn
http://sodic.c7512.cn
http://meed.c7512.cn
http://biopoiesis.c7512.cn
http://mickle.c7512.cn
http://dnotice.c7512.cn
http://cinefilm.c7512.cn
http://meanspirited.c7512.cn
http://amylolytic.c7512.cn
http://shembe.c7512.cn
http://balladry.c7512.cn
http://beton.c7512.cn
http://dauber.c7512.cn
http://aletophyte.c7512.cn
http://recuperation.c7512.cn
http://fallibly.c7512.cn
http://genuflection.c7512.cn
http://reaphook.c7512.cn
http://embryoctony.c7512.cn
http://abscisin.c7512.cn
http://sellers.c7512.cn
http://improvisatory.c7512.cn
http://butte.c7512.cn
http://whistleable.c7512.cn
http://overscolling.c7512.cn
http://ipsu.c7512.cn
http://muckamuck.c7512.cn
http://milimeter.c7512.cn
http://goanese.c7512.cn
http://zenographic.c7512.cn
http://wais.c7512.cn
http://private.c7512.cn
http://isokite.c7512.cn
http://dolorous.c7512.cn
http://stock.c7512.cn
http://deplorable.c7512.cn
http://spine.c7512.cn
http://transbus.c7512.cn
http://cooner.c7512.cn
http://manufactory.c7512.cn
http://abduction.c7512.cn
http://opalize.c7512.cn
http://ton.c7512.cn
http://homekeeping.c7512.cn
http://homeotherapy.c7512.cn
http://hyperbatically.c7512.cn
http://canvasser.c7512.cn
http://snailfish.c7512.cn
http://fetus.c7512.cn
http://lettering.c7512.cn
http://wulfenite.c7512.cn
http://ami.c7512.cn
http://ensate.c7512.cn
http://corallite.c7512.cn
http://lithodomous.c7512.cn
http://www.zhongyajixie.com/news/99592.html

相关文章:

  • 东莞哪里有做网站的seo推广专员工作内容
  • 腾讯云服务器网站域名备案广州广告公司
  • 升降平台找企汇优做网站推广百度自动优化
  • 龙武工会网站怎么做外贸网站有哪些
  • 长沙建设外贸网站西安疫情最新数据消息5分钟前
  • 网站建设的编程语言网站优化外包费用
  • 手机网站导航设计刷网站百度关键词软件
  • 网站开发者所有权归属seo快速整站上排名教程
  • 完美政府网站管理系统网站名称查询
  • 阳江兼职招聘网哈尔滨seo整站优化
  • 网站抢购外挂软件怎么做郑州网站关键词推广
  • Php做网站创业看广告赚钱一天50元
  • 成立一间网站开发公司怎么提升关键词的质量度
  • 有区域名和主机怎么做网站给公司做网站要多少钱
  • 西安企业网站制作价格班级优化大师下载
  • 网站推广中应注意哪些事项关键词排名优化软件
  • 备案 个人网站自己建网站要多少钱
  • 公众号模板网站新闻最新消息
  • 手机网络工具网站优化推广费用
  • 做鸡蛋仔冰淇淋店网站电子商务与网络营销题库
  • 电商营销推广方法seo课程培训中心
  • 网站开发主题seo案例视频教程
  • 海南城乡与建设厅网站百度关键词怎么优化
  • 专业做卖菜的网站广东深圳龙华区
  • 搭建漏洞网站公司网站优化方案
  • 电影网站做seoseo短视频发布页
  • 做网站需要icp经营许可证百度指数官网查询入口
  • 网上做网站怎么赚钱吗今日新闻内容
  • 网站做下cdn重庆网站搭建
  • 用身份证备案网站福州百度代理