会员上传文件漏洞,可以上传任意后缀
user/swfupload.asp文件漏洞
If UpFileObj.Form("NoReName")="1" Then '不更名
Dim PhysicalPath,FsoObj:Set FsoObj = KS.InitialObject(KS.Setting(99))
PhysicalPath = Server.MapPath(replace(TempFileStr,"|",""))
TempFileStr= mid(TempFileStr,1, InStrRev(TempFileStr, "/")) & FileTitles
If FsoObj.FileExists(PhysicalPath)=true Then
FsoObj.MoveFile PhysicalPath,server.MapPath(TempFileStr)
End If
End If
会员注册登录后,手工构造一NoReName参数即可上传自定义文件名
绕过危险代码可以用<!--#include file=""-->类型来包含图片即可,可以用远程下载或者修改/user/User_Blog.asp?action=BlogEdit里的LOGO文件来上传代码文件(不检查危险代码的哦)
![](https://cdn.webgeeky.net/imgupload/009100/201405071149344.jpg)
![](https://cdn.webgeeky.net/imgupload/009100/201405071149345.jpg)
![](https://cdn.webgeeky.net/imgupload/009100/201405071149346.jpg)
![](https://cdn.webgeeky.net/imgupload/009100/201405071149347.jpg)
![](https://cdn.webgeeky.net/imgupload/009100/201405071149348.jpg)
![](https://cdn.webgeeky.net/imgupload/009100/201405071149349.jpg)
![](https://cdn.webgeeky.net/imgupload/009100/2014050711493410.jpg)
![](https://cdn.webgeeky.net/imgupload/009100/2014050711493411.jpg)
修复方案:
过滤。。