J-Security Center

Title: PHPix Remote Arbitrary Command Execution Vulnerability

Severity: HIGH

Description:

PHPix is a Web-based photo album viewer written in PHP. It facilitates image displays at various sizes as specified by the user.

It has been reported that PHPix is vulnerable to a remote command execution vulnerability due to poor handling of externally supplied data. This issue may allow unauthorized access to the affected system with the privileges of the web server hosting the vulnerable program.

The source of the problem is that PHPix makes insecure calls to the PHP system() function. The system() function passes user-supplied input to the shell for execution without properly escaping shell metacharacters. An attacker could specify the values of the non-validated variables that are passed to the system() function using a specially crafted URI. In this way, the attacker could use shell metacharacters to append commands to be executed in the context of the hosting server process when system() is called.

This issue is known to affect PHPix version 2.0.3, however it most likely affects earlier versions as well.

Affected Products:

  • PHPix PHPix 2.0.3

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.