Web Wiz NewsPad Directory traversal

看板Bugtraq作者時間18年前 (2008/01/24 01:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
########################## WwW.BugReport.ir =20 ########################################### # # 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 =20 Website News Bulletin software. #################### - Vulnerability: #################### Input passed to the FolderName parameter in "RTE_file_browser.asp" is =20 not properly sanitised before being used. This can be exploited to =20 list directories, list txt and list zip files through directory =20 traversal attacks. Also, "RTE_file_browser.asp" does not check user's session and an =20 unauthenticated attacker can perform this attack. -POC: http://[WebWiz =20 NewsPad]/RTE_file_browser.asp?look=3D&sub=3D\.....\\\.....\\\.....\\\ #################### - Fast Solution : #################### You can see below lines in "RTE_file_browser.asp" =09'Stip path tampering for security reasons =09strSubFolderName =3D Replace(strSubFolderName, "../", "", 1, -1, 1) =09strSubFolderName =3D Replace(strSubFolderName, "..\", "", 1, -1, 1) =09strSubFolderName =3D Replace(strSubFolderName, "./", "", 1, -1, 1) =09strSubFolderName =3D Replace(strSubFolderName, ".\", "", 1, -1, 1) Only add this to them: =09strSubFolderName =3D Replace(strSubFolderName, "/", "\", 1, -1, 1) =09strSubFolderName =3D Replace(strSubFolderName, "\\", "\", 1, -1, 1) =09strSubFolderName =3D 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
文章代碼(AID): #17btFo00 (Bugtraq)