Web Server info.php / phpinfo.php Detection

Medium Nessus Plugin ID 11229


The remote web server contains a PHP script that is prone to an information disclosure attack.


Many PHP installation tutorials instruct the user to create a PHP file that calls the PHP function 'phpinfo()' for debugging purposes. Various PHP applications may also include such a file. By accessing such a file, a remote attacker can discover a large amount of information about the remote web server, including :

- The username of the user who installed PHP and if they are a SUDO user.

- The IP address of the host.

- The version of the operating system.

- The web server version.

- The root directory of the web server.

- Configuration information about the remote PHP installation.


Remove the affected file(s).

Plugin Details

Severity: Medium

ID: 11229

File Name: phpinfo.nasl

Version: 1.19

Type: remote

Family: CGI abuses

Published: 2003/02/12

Updated: 2021/01/19

Dependencies: 10107

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

Vulnerability Information

CPE: cpe:/a:php:php

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning