---
title: "Web Attack: PHP Nuke ConfigFile Request"
url: https://www.broadcom.com/support/security-center/attacksignatures/detail?asid=20529
description: Attack Signature Detail Page
---

# Web Attack: PHP Nuke ConfigFile Request

## Severity: Medium

This attack could pose a moderate security threat. It does not require immediate action.

## Description

This signature detects attempts to view PHP-Nuke configuration data via file manipulation operation.

## Additional Information

PHP Nuke is a web portal creation and management package, implemented in the PHP scripting language. The default installation includes the script `admin/case/case.filemanager.php`, which can be used to copy and delete files on the server file system. 

The script `case.filemanager.php` is designed such that it can only be called from the script `admin.php`, which is responsible for authentication of the remote user. This implementation is flawed, due to a bug in PHP's handling of the `$PHP_SELF` variable. It is possible for a remote user to include information in the URL which is appended to the `$PHP_SELF` variable, allowing them to bypass this check.

By calling the script in this manner and passing arbitrary file names to the script, a remote user is able to copy and delete any file on the web server, subject to the user permissions the web server is running under. For example, the remote user may copy `/etc/passwd` over a file normally displayed by the web server, gaining access to sensitive information. If the remote user is able to upload files to the server, they may be able to copy them over a standard PHP Nuke script, and have arbitrary scripts executed by the web user.

## Affected

- Francisco Burzi PHP-Nuke 5.2

## Response

Magnux Software has suggested the following as a solution:

To deny file system access to the web server one may use the following commands:
```
# cd php-nuke-document-root
# chmod 0 admin/case/case.filemanager.php
```

Francisco Burzi PHP-Nuke 5.2:  
[Francisco Burzi Upgrade PHP-Nuke-5.5.tar.gz](http://prdownloads.sourceforge.net/phpnuke/PHP-Nuke-5.5.tar.gz)

## Additional Resources

- [PHP-Nuke Product Page](http://www.ncc.org.ve/php-nuke.php3?op=english)
- [SecurityFocus BID: 3510](http://www.securityfocus.com/bid/3510)
