Web Wiz Products 多个目录遍历漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1187819 漏洞类型 路径遍历
发布时间 2008-01-29 更新时间 2008-09-05
CVE编号 CVE-2008-0480 CNNVD-ID CNNVD-200801-433
漏洞平台 N/A CVSS评分 5.0
|漏洞来源
https://cxsecurity.com/issue/WLB-2008010087
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200801-433
|漏洞详情
WebWizForums9.07及更早的版本存在多个目录遍历漏洞,允许远程攻击者通(1)RTE_file_browser.asp或者(2)file_browser.asp的sub参数的".....\\\"访问任意目录,.txt文件和.zip文件。
|漏洞EXP
########################## WwW.BugReport.ir  
###########################################
#
#      AmnPardaz Security Research Team
#
# Title: Web Wiz Forums(TM)
# Vendor: http://www.webwizguide.com/
# Bug: Directory traversal
# Vulnerable Version: 9.07
# Exploit: Available
# Fix Available: No! Fast Solution is available.
########################################################################
###########

####################
- Description:
####################
Web Wiz Forums bulletin board system is the ideal forum package for  
your website's community.

####################
- Vulnerability:
####################
Input passed to the FolderName parameter in "RTE_file_browser.asp" and  
"file_browser.asp" are not properly sanitised before being used. This  
can be exploited to list directories, list txt and list zip files  
through directory traversal attacks.
Also, "RTE_file_browser.asp" does not check user's session and an  
unauthenticated attacker can perform this attack.

-POC:
http://[WebWiz Forum]/RTE_file_browser.asp?look=&sub=\.....\\\.....\\\.....\\

####################
- Fast Solution :
####################
You can see below lines in "RTE_file_browser.asp" and "file_browser.asp"

'Stip path tampering for security reasons
	strSubFolderName = Replace(strSubFolderName, "../", "", 1, -1, 1)
	strSubFolderName = Replace(strSubFolderName, "..\", "", 1, -1, 1)
	strSubFolderName = Replace(strSubFolderName, "./", "", 1, -1, 1)
	strSubFolderName = Replace(strSubFolderName, ".\", "", 1, -1, 1)

Only add this to them:
	strSubFolderName = Replace(strSubFolderName, "/", "\", 1, -1, 1)
	strSubFolderName = Replace(strSubFolderName, "\\", "\", 1, -1, 1)
	strSubFolderName = Replace(strSubFolderName, "..", "", 1, -1, 1)

####################
- Credit :
####################
Original Advisory: http://www.bugreport.ir/?/29
AmnPardaz Security Research & Penetration Testing Group
Contact: admin[4t}bugreport{d0t]ir
WwW.BugReport.ir
WwW.AmnPardaz.com
|参考资料

来源:XF
名称:webwiz-rte-filebrowser-directory-traversal(39856)
链接:http://xforce.iss.net/xforce/xfdb/39856
来源:www.webwizguide.com
链接:http://www.webwizguide.com/webwizforums/kb/release_notes.asp
来源:SECTRACK
名称:1019266
链接:http://www.securitytracker.com/id?1019266
来源:BID
名称:27419
链接:http://www.securityfocus.com/bid/27419
来源:BUGTRAQ
名称:20080123WebWizForumsDirectorytraversal
链接:http://www.securityfocus.com/archive/1/archive/1/486866/100/0/threaded
来源:MILW0RM
名称:4970
链接:http://www.milw0rm.com/exploits/4970
来源:MISC
链接:http://www.bugreport.ir/?/29
来源Source:SECUNIA
名称:28601
链接:http://secunia.com/advisories/28601
来源Source:SREASON
名称:3589
链接:http://securityreason.com/securityalert/3589