Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.9k views
in Technique[技术] by (71.8m points)

合成图片木马,通过压缩保存到别的路径(破坏内部代码),然后删除原图,能否有效防御?

对方已绕过
1、前端js验证
2、后端后缀验证
3、白名单验证
4、图片大小验证
5、mine type验证


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

稍微复习一下:图片木马的有效防御手段之一,就是对图片进行二次处理。而压缩、截取、转码都算二次处理
君不见,当年老司机开车可以用图种,移动端时代来临之后,各大网站为了省流量就各种压图,图片压绿了,图片里的硬盘小姐姐们也压没了。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...