WEB_wiz text_editor 'RTE_file_browser.asp'目录遍历漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1114385 漏洞类型 授权问题
发布时间 2008-01-23 更新时间 2008-09-05
CVE编号 CVE-2008-0466 CNNVD-ID CNNVD-200801-418
漏洞平台 ASP CVSS评分 5.0
|漏洞来源
https://www.exploit-db.com/exploits/4970
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200801-418
|漏洞详情
在WEBWizRichTextEditor4.0,WEBWizForums9.07以及WEBWizNewspad1.02中使用的WEBWizRTE_file_browser.asp并不需要身份验证,这使得远程攻击者可以列出目录和读取文件。注意:配置目录结构外部的列表可以被杠杆化。它可以通过开发一个单独的目录遍历漏洞来完成。
|漏洞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

# milw0rm.com [2008-01-23]
|参考资料

来源:MISC
链接:http://www.webwizguide.com/webwizrichtexteditor/kb/release_notes.asp
来源:BID
名称:27419
链接:http://www.securityfocus.com/bid/27419
来源:BUGTRAQ
名称:20080123WebWizRichTextEditorDirectorytraversal+HTM/HTMLfilecreationontheserver
链接:http://www.securityfocus.com/archive/1/archive/1/486868/100/0/threaded
来源:BUGTRAQ
名称:20080123WebWizForumsDirectorytraversal
链接:http://www.securityfocus.com/archive/1/archive/1/486866/100/0/threaded
来源:MILW0RM
名称:4971
链接:http://www.milw0rm.com/exploits/4971
来源:MILW0RM
名称:4970
链接:http://www.milw0rm.com/exploits/4970
来源:MISC
链接:http://www.bugreport.ir/?/31
来源:MISC
链接:http://www.bugreport.ir/?/29
来源:SECTRACK
名称:1019267
链接:http://securitytracker.com/id?1019267
来源:SREASON
名称:3584
链接:http://securityreason.com/securityalert/3584