GONICUS System Administrator (GOsa) Include File Vulnerability Lets Remote Users Execute Arbitrary PHP Code
SecurityTracker Alert ID: 1006162|
SecurityTracker URL: http://securitytracker.com/id/1006162
(Links to External Site)
Updated: Jul 7 2008|
Original Entry Date: Feb 24 2003
Execution of arbitrary code via network, User access via network|
Exploit Included: Yes |
A vulnerability was reported in the GONICUS System Administrator (GOsa). A remote user can inject and execute arbitrary PHP code on the system, including operating system commands.|
It is reported that several scripts permit a remote user to modify variables to execute arbitrary code. A remote user can set the 'plugin' variable in the following files to reference a remotely located PHP file that will be included and executed by the target server:
A similar flaw reportedly exists in the 'base' variable in the 'include/help.php' script.
According to the report, GOsa does not implement a "register_globals off" feature.
A remote user can cause arbitrary PHP code, including shell commands|
No solution was available at the time of this entry. The author of the report has indicated that, as a temporary solution, you can enable apache .htaccess authentication in all subdirectories that contain .php files exclusively for inclusion.|
Vendor URL: www.gonicus.de/ (Links to External Site)
Input validation error|
|Underlying OS: Linux (Any), UNIX (Any)|
Source Message Contents
Subject: [Full-Disclosure] GOnicus System Administrator php injection|
-----BEGIN PGP SIGNED MESSAGE-----
The GOnicus System Administrator is a PHP based administration tool
for managing accounts/systems in LDAP databases.
Project homepage : http://www.gonicus.de
A remote attacker can inject into GOsa arbitrary PHP code
that executes under the privileges of the underlying web server.
There are serveral places, where by modifying several variables
attacker could execute arbitrary PHP code.
By setting plugin variable in following files attacker could
include remote files and execute them as a PHP code :
The same situation exists in include/help.php where we could
set base variable as a remote host and include remote file.
The following is a sample attack URL that would cause
"target.server" to load include/common.inc from
GOsa doesnt' support "register_globals off".
Remote exploitation allows an attacker to execute arbitrary
commands and code under the privileges of the web server. This also
opens the door to privilege escalation attacks. Attacker could also
debug httpd child processes and grab secret information like users
system passwords, LDAP passwords.
GOsa version 1.0.0 ( current ) is confirmed vulnerable.
Temporary solution is to enable apache .htaccess authentication
in all subdirectories containing .php files, which are included, not
Example .htaccess file
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Bear Software, LLC, http://bear-software.freeservers.com
-----END PGP SIGNATURE-----
Full-Disclosure - We believe in it.