Simple one-file Gallery - 'gallery.php?f' Cross-Site Scripting

Author: laurent gaffie
type: webapps
platform: php
port: 0
date_added: 2007-02-23
date_updated: 2013-11-17
verified: 1
codes: CVE-2007-1125;OSVDB-33759
tags: 
aliases: 
screenshot_url: 
application_url: 

source: https://www.securityfocus.com/bid/22700/info

Simple one-file gallery is prone to multiple input-validation vulnerabilities, including a local file-include issue and a cross-site scripting issue.

An attacker can exploit these issues to steal cookie-based authentication credentials and to view and execute arbitrary local files within the context of the affected webserver. Other attacks are also possible.

http://www.example.com/gallery.php?f=[xss]
↑