Web Wiz NewsPad 'RTE_file_browser.asp'目录遍历漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1114386 漏洞类型 路径遍历
发布时间 2008-01-23 更新时间 2008-09-05
CVE编号 CVE-2008-0479 CNNVD-ID CNNVD-200801-432
漏洞平台 ASP CVSS评分 5.0
|漏洞来源
https://www.exploit-db.com/exploits/4972
https://cxsecurity.com/issue/WLB-2008010086
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200801-432
|漏洞详情
WebWizNewsPad1.02的RTE_file_browser.asp存在目录遍历漏洞。远程攻击者通过".....\\\",列举任意目录、.txt和.zip文件。
|漏洞EXP
########################## WwW.BugReport.ir ###########################################
#
#      AmnPardaz Security Research Team
#
# Title: Web Wiz NewsPad(TM)
# Vendor: http://www.webwizguide.com/
# Bug: Directory traversal
# Vulnerable Version: 1.02
# Exploit: Available
# Fix Available: No! Fast Solution is available.
###################################################################################


####################
- Description:
####################
Web Wiz NewsPad is an advanced but easy to use Email Newsletter and Website News Bulletin software.

####################
- Vulnerability:
####################
Input passed to the FolderName parameter in "RTE_file_browser.asp" is 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 NewsPad]/RTE_file_browser.asp?look=&sub=\.....\\\.....\\\.....\\\


####################
- Fast Solution :
####################
You can see below lines in "RTE_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/?/30
AmnPardaz Security Research & Penetration Testing Group
Contact: admin[4t}bugreport{d0t]ir
WwW.BugReport.ir
WwW.AmnPardaz.com

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

来源:XF
名称:newspad-rte-directory-traversal(39863)
链接:http://xforce.iss.net/xforce/xfdb/39863
来源:www.webwizguide.com
链接:http://www.webwizguide.com/webwiznewspad/kb/release_notes.asp
来源:SECTRACK
名称:1019268
链接:http://www.securitytracker.com/id?1019268
来源:BID
名称:27419
链接:http://www.securityfocus.com/bid/27419
来源:BUGTRAQ
名称:20080123WebWizNewsPadDirectorytraversal
链接:http://www.securityfocus.com/archive/1/archive/1/486869/100/0/threaded
来源:MILW0RM
名称:4972
链接:http://www.milw0rm.com/exploits/4972
来源:MISC
链接:http://www.bugreport.ir/?/30
来源:SECUNIA
名称:28416
链接:http://secunia.com/advisories/28416
来源:SREASON
名称:3588
链接:http://securityreason.com/securityalert/3588