##########################################################
Title: aspsp_v1.0 视频程序上传验证漏洞
Time:2011-09-07
Team:MakeBug // ~ www.luoyes.com/vul/
Author: 缘分
##########################################################
MakeBug [email protected]
//ewsadminpicuploadsub_upload.asp
<%
dim upload,file,formName,formPath,iCount,fileformat
//......略
end function
formPath="2010/"
//......略
set file=upload.file(formName) ''生成一个文件对象
//......略
if fileformat=".asp" or fileformat=".exe" or fileformat=".txt" or fileformat=".htm" then
response.write"<script>alert('文件格式不对,请重新上传!');location='"&request.ServerVariables("HTTP_REFERER")&"'</script>"
response.end
end if
if file.FileSize>0 then ''如果 FileSize > 0 说明有文件数据
newname=MakedownName()&"."&mid(file.FileName,InStrRev(file.FileName, ".")+1)
file.SaveAs Server.mappath(formPath&newname) ''保存文件
// ...... 略
next
%> 只对aspexe xthtm做了上传判断。但仍然可以上传asaphp等。
默认上传地址:
ewsadminpicuploadfilename
默认数据库地址:
ewsdata#nxnews.mdb
默认登陆地址:
ews/admin/adminlogin.asp