Blue Collar Productions iGallery 4.1 Plus (
http://www.b-cp.com/igallery/default.asp ) is a commercial photo gallery
script written in Classic ASP. There exists also a free version
named iGallery 3.4. The file streamfile.asp suffers from an Arbitrary
File Download vulnerability due to the missed input validation on the
"i" and "f" parameters, in particular
no validation is done on path traversal patterns.
iGallery 4.1 Plus and iGallery 3.4 were tested and shown to be vulnerable.
Through this vulnerability remote and unauthenticated users could
download any file
accessible by the web server and by reading source files a malicious
user could read
important information such as database passwords.
New IIS installations are often configured to deny requests with ../ in
the query string. Unfortunately
the injection can come also from POST parameters.