Album and Image Gallery with Lightbox – Flagallery Photo Portfolio <= 2.00 - Arbitrary File Modification

2012-12-24 00:00
Janek Vind

Vulnerability Overview

The Album and Image Gallery with Lightbox – Flagallery Photo Portfolio plugin for WordPress is vulnerable to arbitrary file modification in versions up to, and including, 2.00. This is due to unsanitized user input on the 'settingsXML', and 'mainXML' parameters in the admin/skin_options.php file, and the 'skin_name' and 'mainXML' parameters in the lib/constructor.php file. This makes it possible for authenticated attackers, with administrator-level permissions and above, to prepend content to any file on the system, which can lead to remote code execution.

Technical Analysis

REMEDIATION: Update to version 2.10, or a newer patched version --- IDENTIFIER: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

External References

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C