PHP iCalendar Multiple Script Remote File Inclusion

medium Nessus Plugin ID 20867

Synopsis

The remote web server contains a PHP application that is susceptible to remote file inclusion attacks.

Description

The remote host appears to be running PHP iCalendar, a web-based iCal file viewer / parser written in PHP.

The installed version of PHP iCalendar fails to validate user input to the 'getdate' parameter of the 'search.php' script as well as the 'file' parameter of 'template.php' script. Provided PHP's 'register_globals' setting is enabled, an unauthenticated attacker can leverage these flaws to view arbitrary files on the remote host and execute arbitrary PHP code, possibly taken from third-party hosts.

Solution

Disable PHP's 'register_globals' setting or modify the code as described in the advisory above.

See Also

http://evuln.com/labs/advisories/70/

Plugin Details

Severity: Medium

ID: 20867

File Name: phpicalendar_getdate_file_include.nasl

Version: 1.22

Type: remote

Family: CGI abuses

Published: 2/9/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: 5

Temporal Score: 3.7

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

Vulnerability Information

CPE: cpe:/a:php_icalendar:php_icalendar

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Vulnerability Publication Date: 2/9/2006

Reference Information

CVE: CVE-2006-0648

BID: 16557