PHP iCalendar Cookie Data Traversal Local File Inclusion

medium Nessus Plugin ID 21083

Synopsis

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

Description

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

The version of PHP iCalendar installed on the remote host fails to sanitize input to cookie data normally used to store language and template user preferences before using it in a PHP 'include()' function in 'functions/init.inc.php'. An unauthenticated attacker can exploit this issue to view arbitrary files and possibly to execute arbitrary PHP code on the affected host.

Successful exploitation of this issue does not necessarily depend on the setting of PHP's 'magic_quotes_gpc'. For code execution, it does, though, require that an attacker be able to write to files on the remote host, perhaps by injection into the web server's error log.

Note that there may also be a vulnerability in this version of PHP iCalendar in which an attacker can gain administrative access to the application by manipulating cookie values, although Nessus has not tested for it explicitly.

Solution

Unknown at this time.

See Also

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

Plugin Details

Severity: Medium

ID: 21083

File Name: phpicalendar_cookie_file_include.nasl

Version: 1.25

Type: remote

Family: CGI abuses

Published: 3/16/2006

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5.1

Temporal Score: 4

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

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

Exploited by Nessus: true

Vulnerability Publication Date: 3/15/2006

Reference Information

CVE: CVE-2006-1292

BID: 17125