Secunia - Stay Secure
Gartner
Home Corporate Website Jobs Mailing Lists RSS Blog New entry Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)
  - NEW -

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


EncapsGallery Cross-Site Scripting and File Upload

Secunia Advisory: SA29824  
Release Date: 2008-04-22
Last Update: 2008-05-02

Critical:
Less critical
Impact: Cross Site Scripting
System access
Where: From remote
Solution Status: Partial Fix

Software:EncapsGallery 2.x

CVE reference:CVE-2008-1987 (Secunia mirror)
CVE-2008-1988 (Secunia mirror)



Description:
Thomas Pollet has discovered a vulnerability and a security issue in EncapsGallery, which can be exploited by malicious people to conduct cross-site scripting attacks and by malicious users to compromise a vulnerable system.

1) Input passed to the "search" parameter in search.php is not 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) The "file_upload()" function in core/misc.class.php does not restrict extensions of uploaded files to the "rwx_gallery" directory under the webroot. This can be exploited to execute arbitrary PHP code via uploaded PHP scripts.

Successful exploitation of the vulnerability requires valid administrator credentials.

The vulnerability and the security issue are confirmed in version 2.0.2. Other versions may also be affected.

Solution:
Update to version 2.0.4, which fixes vulnerability #1.

Grant administrative access to trusted users only.

Provided and/or discovered by:
Thomas Pollet

Changelog:
2008-05-02: Added CVE reference.



Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.


Send Feedback to Secunia

If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
Yahoo! Assistant yNotifier.dll ActiveX Control Code Execution
2.
Cyberfolio "rep" File Inclusion Vulnerability
3.
Zarafa Script Insertion Vulnerabilities
4.
InfoBiz Server "keywords" Cross-Site Scripting Vulnerability
5.
OpenKM Document Export Security Issue
6.
vShare YouTube Clone "tid" SQL Injection Vulnerability
7.
SazCart Multiple File Inclusion Vulnerabilities
8.
TFTP Server SP Long Error Message Buffer Overflow
9.
Slackware update for thunderbird
10.
Ubuntu update for vorbis-tools





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia