SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


Try our Premium Alert Service
 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service





Category:   Application (Multimedia)  >   Coppermine Photo Gallery Vendors:   DEMAR, Gregory
Coppermine Photo Gallery Input Validation Holes in 'viewlog.php' and 'mode.php' Permit Cross-Site Scripting Attacks
SecurityTracker Alert ID:  1018704
SecurityTracker URL:  http://securitytracker.com/id/1018704
CVE Reference:   CVE-2007-4976, CVE-2007-4977   (Links to External Site)
Updated:  Mar 20 2008
Original Entry Date:  Sep 17 2007
Impact:   Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  
Version(s): 1.4.12 and prior versions
Description:   A vulnerability was reported in Coppermine Photo Gallery. A remote user can conduct cross-site scripting attacks.

Several scripts do not properly filter HTML code from user-supplied input before displaying the input. A remote user can create a specially crafted URL that, when loaded by a target user, will cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the Coppermine Photo Gallery software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

The 'referer' parameter in 'mode.php' is affected.

The 'log' parameter in the 'viewlog.php' scripts are affected.

A local user with administrative privileges can cause a local file to be included and executed on the target system with the privileges of the target web service. A demonstration exploit URL is provided:

http://localhost/cpg/viewlog.php?log=../../../../../../../../../etc/passwd%00

The vendor was notified on September 3, 2007.

L4teral reported this vulnerability.

Impact:   A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the Coppermine Photo Gallery software, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
Solution:   The vendor has issued a fixed version (1.4.13).
Vendor URL:  coppermine-gallery.net/ (Links to External Site)
Cause:   Input validation error
Underlying OS:  Windows (Any)

Message History:   None.


 Source Message Contents

Subject:  Coppermine <= 1.4.12 Cross Site Scripting and Local File Inclusion

============================================================
Coppermine <= 1.4.12 Cross Site Scripting and Local File Inclusion
============================================================

Author: L4teral <l4teral [4t] gmail com>
Impact: Cross Site Scripting/Local File Inclusion
Status: patch available


------------------------------
Affected software description:
------------------------------

Application: Coppermine Photo Gallery
Version: <= 1.4.12
Vendor: http://coppermine-gallery.net

Description:
Coppermine is a multi-purpose fully-featured and integrated
web picture gallery script written in PHP using GD or ImageMagick
as image library with a MySQL backend.


----------------
Vulnerabilities:
----------------

The script mode.php does not properly sanitize the "referer" parameter.

The script viewlog.php does not properly sanitize the "log" parameter.


------------
Poc/Exploit:
------------

http://localhost/cpg/mode.php?admin_mode=1&referer=javascript:alert(document.cookie)

http://localhost/cpg/viewlog.php?log=../../../../../../../../../etc/passwd%00
(should need admin privileges)


---------
Solution:
---------

update to 1.4.13 or above


---------
Timeline:
---------

03.09.2007 - vendor informed
14.09.2007 - patch released by vendor
17.09.2007 - public disclosure

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2018, SecurityGlobal.net LLC