Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos network security services platform







Bugtraq: Vulnerability in Coppermine Photo Gallery 1.3.*

Vulnerability in Coppermine Photo Gallery 1.3.*

From: GHC team <team_at_ghc.ru>
Date: 18 Apr 2005 12:24:34 -0000
('binary' encoding is not supported, stored as-is) +-----------------------------------------+
| RST/GHC >> Coppermine << ADVISORY |
| Product: Coppermine Photo Gallery |
| Version: 1.3.x |
| URL: http://coppermine.sourceforge.net/ |
+-----------------------------------------+

[Product Description]
"Coppermine Photo Gallery is a picture gallery script. Users can upload pictures
with a web browser (thumbnails are created on the fly), rate pictures, add
comments and send e-cards. The admins can manage the galleries and batch add
pictures that have been uploaded on the server by FTP. Support for multimedia
files has been added recently" (from official site description).
    
[Summary]
The lack of sanitizing of user defined variables may result in undesirable
consequences such as IP spoofing or XSS attack.

[Details]
Generally users of Coppermine Gallery can post comments. Remote address &
x-forwarded-for variables are logged for admin's eyes.
X-Forwarded-for variable does not pass throu any filtration before logging into
database. User can define/redefine this variable.

Vulnerable script: include/init.inc.php
---[code]---
     if (isset($HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR'])) {
         $hdr_ip = stripslashes($HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR']);
     } else {
         $hdr_ip = $raw_ip;
     }
---[/code]---

User with access to comments module can spoof x-forwarded-for variable and
realize XSS attack (as example to get admin's cookie).
Received on Apr 18 2005

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]