Vulnerability Assessment & Network Security Forums



If through a vulnerability assessment, a network security issue is detected for the vulnerability below, applying the appropriate security patches in a timely matter is very important.  If you have detected that your system has already been compromised, following CERT's Network Security recovery document will assist with recommended steps for system recovery.


Home >> Browse Vulnerability Assessment Database >> CGI abuses >> PHP-Nuke security vulnerability (bb_smilies.php)


Vulnerability Assessment Details

PHP-Nuke security vulnerability (bb_smilies.php)

Vulnerability Assessment Summary
Determine if a remote host is vulnerable to the bb_smilies.php vulnerability

Detailed Explanation for this Vulnerability Assessment

The remote host seems to be vulnerable to a security problem in PHP-Nuke (bb_smilies.php).
The vulnerability is caused by inadequate processing of queries by PHP-Nuke's bb_smilies.php
which results in returning the content of any file we desire (the file needs to be world-readable).
A similar vulnerability in the same PHP program permits execution of arbitrary code by changing
the password of the administrator of bb_smilies.

Impact:
Every file that the webserver has access to can be read by anyone. It is
also possible to change bb_smilies' administrator password and even execute
arbitrary commands.

Solution:
Change the following lines in both bb_smilies.php and bbcode_ref.php:

if ($userdata[9] != '') $themes = 'themes/$userdata[9]/theme.php'

else $themes = 'themes/$Default_Theme/theme.php'



To:

if ($userdata[9] != '') $themes = 'themes/$userdata[9]/theme.php'

else $themes = 'themes/$Default_Theme/theme.php'

if ( !(strstr(basename($themes),'theme.php')) || !(file_exists($themes)) ){
echo 'Invalid Theme'
exit
}
include ('$themes')



Or upgrade to the latest version (Version 4.4.1 and above).

Network Security Threat Level: Medium

Additional information:
http://www.securiteam.com/securitynews/Serious_security_hole_in_PHP-Nuke__bb_smilies_.html

Networks Security ID:

Vulnerability Assessment Copyright: This script is Copyright (C) 2001 SecuriTeam

Cables, Connectors

NEW Super Micro X8DAI REV 2.01 Dual Socket LGA1366 E-ATX Server Motherboard
$50.0
NEW Super Micro X8DAI REV 2.01 Dual Socket LGA1366 E-ATX Server Motherboard pictureHPE ProLiant MicroServer Gen10 Plus Ultra - Xeon E-2224-16GB RAM-1TB P18584-001
$715.0
HPE ProLiant MicroServer Gen10 Plus Ultra - Xeon E-2224-16GB RAM-1TB P18584-001 picture8GB 1600 MHz PC3-12800 DDR3 ECC REG Server Memory RAM for MSI MICRO STAR MS-96D7
$40.39
8GB 1600 MHz PC3-12800 DDR3 ECC REG Server Memory RAM for MSI MICRO STAR MS-96D7 picture8GB 1600 MHz PC3-12800 DDR3 ECC REG Server Memory RAM for MSI MICRO STAR MS-91F7
$40.52
8GB 1600 MHz PC3-12800 DDR3 ECC REG Server Memory RAM for MSI MICRO STAR MS-91F7 picture


Discussions

No Discussions have been posted on this vulnerability.