Stadtaus Gaestebuch-Script index.php include_files Parameter Remote File Inclusion

medium Nessus Plugin ID 21339

Synopsis

The remote web server contains a PHP application that is affected by remote file include issues.

Description

The remote host is running Stadtaus Gaestebuch-Script, a free guestbook written in PHP.

The version of Gaestebuch-Script installed on the remote host fails to sanitize input to the 'include_files' array parameter before using it in a PHP 'include()' function in various scripts. Provided PHP's 'register_globals' setting is enabled, an unauthenticated attacker may be able to exploit this issue to view arbitrary files on the remote host or to execute arbitrary PHP code, possibly taken from third-party hosts.

Note that the application must be running under PHP 5 for an attacker to take code from third-party hosts.

Solution

Upgrade to Gaestebuch-Script 1.9 or later.

See Also

https://downloads.securityfocus.com/vulnerabilities/exploits/Stadtaus-Guestbook-0504-rfi.pl

http://www.nessus.org/u?a3c542b3

Plugin Details

Severity: Medium

ID: 21339

File Name: gbs_include_files_file_includes.nasl

Version: 1.22

Type: remote

Family: CGI abuses

Published: 5/11/2006

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.2

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5.3

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

Vulnerability Information

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 4/25/2006

Reference Information

CVE: CVE-2006-2158

BID: 17845