oBlog多用户博客程序是目前国内应用最广泛的博客程序。OBLOG程序已经广泛应用在国内数万家网站,覆盖国内上千万上网人群,并经过上千家知名网站的严格检测,被称为国内博客建站第一程序oBlog多用户博客程序”是目前国内应用最广泛的博客程序。 漏洞文件:attachment.asp 1. <!-- #include file= inc/inc_syssite.asp --> 2. <% 3. Dim Path,rs,FileID,ShowDownErr,uid,file_ext 4. Dim SQL 5. Path = Trim(Request( path )) 6. FileID = Trim(Request( FileID )) 7. If FileID = And Path = Then 8. Response.Write 参数不足 9. Response.End 10. End If 11. If CheckDownLoad Then 12. If Path = Then 13. set rs = Server.CreateObject( ADODB.RecordSet ) 14. link_database 15. SQL = ( select file_path,userid,file_ext,ViewNum FROM oblog_upfile Where FileID = CLng(FileID)) 16. rs.open sql,conn,1,3 17. If Not rs.Eof Then 18. uid = rs(1) 19. file_ext = rs(2) 20. rs( ViewNum ) = rs( ViewNum ) + 1 21. rs.Update 22. downloadFile Server.MapPath(rs(0)),0 23. Else 24. Response.Status=404 25. Response.Write 该附件不存在! 26. End If 27. rs.Close 28. Set rs = Nothing 29. Else 30. If true_domain = 1 Then 31. downloadFile...
oBlog多用户博客程序是目前国内应用最广泛的博客程序。OBLOG程序已经广泛应用在国内数万家网站,覆盖国内上千万上网人群,并经过上千家知名网站的严格检测,被称为国内博客建站第一程序oBlog多用户博客程序”是目前国内应用最广泛的博客程序。 漏洞文件:attachment.asp 1. <!-- #include file= inc/inc_syssite.asp --> 2. <% 3. Dim Path,rs,FileID,ShowDownErr,uid,file_ext 4. Dim SQL 5. Path = Trim(Request( path )) 6. FileID = Trim(Request( FileID )) 7. If FileID = And Path = Then 8. Response.Write 参数不足 9. Response.End 10. End If 11. If CheckDownLoad Then 12. If Path = Then 13. set rs = Server.CreateObject( ADODB.RecordSet ) 14. link_database 15. SQL = ( select file_path,userid,file_ext,ViewNum FROM oblog_upfile Where FileID = CLng(FileID)) 16. rs.open sql,conn,1,3 17. If Not rs.Eof Then 18. uid = rs(1) 19. file_ext = rs(2) 20. rs( ViewNum ) = rs( ViewNum ) + 1 21. rs.Update 22. downloadFile Server.MapPath(rs(0)),0 23. Else 24. Response.Status=404 25. Response.Write 该附件不存在! 26. End If 27. rs.Close 28. Set rs = Nothing 29. Else 30. If true_domain = 1 Then 31. downloadFile Server.MapPath(Replace(Path,blogurl, )),1 32. else 33. downloadFile Server.MapPath(Path),1 34. End If 35. End If 36. Else 如果附件为图片的话,当权限检验无法通过则调用一默认图片,防止<img>标记无法调用,影响显示效果 1. If Path = Then 2. Response.Status=403 3. Response.Write ShowDownErr 4. Response.End 5. Else 6. downloadFile Server.MapPath(blogdir& images/oblog_powered.gif ),1 7. End if 8. End if Oblog 4.6 厂商补丁: oblog ---------- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href="http://www.oblog.cn/" target="_blank" rel=external nofollow>http://www.oblog.cn/</a>