TITLE: GPhotos Cross-Site Scripting and Disclosure of Arbitrary Directories SECUNIA ADVISORY ID: SA20095 VERIFY ADVISORY: http://secunia.com/advisories/20095/ CRITICAL: Less critical IMPACT: Cross Site Scripting, Exposure of system information WHERE: >From remote SOFTWARE: GPhotos 1.x http://secunia.com/product/9934/ DESCRIPTION: Moroccan Security has discovered some vulnerabilities and a weakness in GPhotos, which can be exploited by malicious people to disclose system information and conduct cross-site scripting attacks. 1) Input passed to the "rep" parameter in "index.php" and "diapo.php", and the "image" parameter in "affich.php" isn't properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site. 2) Input passed to the "rep" parameter in "index.php" isn't properly verified, before it is used to list directories and files. This can be exploited to disclose the content of arbitrary directories via directory traversal attacks. The vulnerabilities and the weakness have been confirmed in version 1.5. Other versions may also be affected. SOLUTION: Edit the source code to ensure that input is properly sanitised and verified. PROVIDED AND/OR DISCOVERED BY: Moroccan Security ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------