谁知道 新云V2.1漏洞利用工具

来源:百度知道 编辑:UC知道 时间:2024/06/19 12:45:48

: | |
漏洞分析

新云下载系统漏洞解析

flash/downfile.asp过滤不严导致可下载任意文件。

url = Replace(Replace(Replace(Request("url"), "'", ""), "%", ""), "\", "/")

变量URL从客户端提交的路径获取,仅过滤了"'","%"和"\"
看下面

If Len(url) > 3 Then
If Left(url,1) = "/" Then
Response.Redirect url
End If
If InStr(url,"../")<>0 Then
Response.Redirect url
End If
strUrl = Left(url,10)
If InStr(strUrl, "://") > 0 Then
Response.Redirect url
End If
If InStr(url, "/") > 0 Then
strPath = Server.MapPath(".") & "\" & url
strPath = Replace(strPath, "/", "\")
Call downThisFile(strPath)
Else
Response.Redirect url
End If
End If
如果在URL中包含"..\"会被转换成"../",然后跳转。