Title: phpPgAdmin Included File Arbitrary Command Execution Vulnerability
Severity: CRITICAL
Description:
phpPgAdmin is a freely available tool that provides a WWW interface for handling PostgreSQL adminstrative tasks. It is derived from phpMyAdmin, which is used for MySQL administrative tasks.
An input validation error exists in phpPgAdmin that could allow remote users to cause arbitrary files to be included and loaded by the PHP interpreter at runtime.
The problem is the result of how some user-supplied values are handled by the 'sql.php' script. For some queries, the script allows the inclusion of a filename supplied by a remote user. It is also possible to bypass the authentication mechanism provided by the script by submitting a value for the 'LIB_INC' field in a query, causing the script to not authenticate the user. This authentication is not enabled with default installations of phpPgAdmin.
As a result, it is possible for a remote user to supply the path to a file residing anywhere on the filesystem of a host running the phpPgAdmin software. This may result in the disclosure of sensitive information contained in the included file. In the event that an attacker is able to upload a file containing arbitrary code, the attacker could cause that code to be executed with the privileges of the web server.
Affected Products:
- phpPgAdmin phpPgAdmin 2.2.0
- phpPgAdmin phpPgAdmin 2.2.1
- phpPgAdmin phpPgAdmin 2.2.1pl1
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.