June 22, 2005
Hat-Squad Advisory: [Hat-Squad] i-Gallery directory traversal

Hat-Squad Advisory: i-Gallery directory traversal

Product: i-Gallery

Vendor Url: http://www.b-cp.com

Version: 3.3 (older versions not tested , but assumed vulnerable)

Vulnerability: Directory traversal and CSS bug

Release Date: 20 June 2005

Vendor Status:

Informed: 15 June 2005

Second Contact: 19 June 2005

Advisory Released: 20 June 2005

Overview:

i-Gallery is a complete online photo gallery. Easy to navigate thumbnails with paging.Enlarged views offer print & email buttons. Secured backend features:

create/delete folders,
upload/delete images, add descriptions, move images, and much more...
###################################################

Problem 1:

The i-Gallery uses no protection to avoid the directory traversal bug.The problem happens when the attacker uses the classic pattern "/../" that
allows him to see and download any file in the remote system knowing the path.By use of preview feature of the i-Gallery it`s possible to get list of directory files ( not folders ) and attempt to download them .so not like most of directory traversal attacks , due to the nature of i-gallery you only need to be aware of correct directory path . file name will be handleded by i-gallery in a nice interface :>
Attack is possible on almost all asp files to get files , but my favor browse interface is the "folderview.asp" file .

Google Scanner :

inurl:"/gallery/folderview.asp?folder="

sample exploit :

http:///gallery/folderview.asp?folder=Sport+Champions/../../../../../../../../winnt/repair

you`ll probebly go for "SAM" but I should notice you a little challenge while downloading files without extencions AND the permision staff ;)
###################################################

Problem 2:

i-Gallery lack of input validation for any user request . as a resault attacks like cross-site scripting become possible , and steal stored cookies of secured interface of i-Gallery become possible to name one example.

Sample Exploit:

http:///gallery/folderview.asp?folder= 

###################################################

Workaround :

Apply vendor patch.

( No responce from vendor up to now )

Credits:

This Vulnerability has been discovered by Seyed Hamid Kashfi(hamid at hat-squad.com)


Join Hat-Squad Mailing List

E-mail Address:

Subscribe:Unsubscribe:

 

Copyright 2003-2004, Hat-Squad security Group, All rights reserved.