PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 
Site Navigation

Home:

 
Donate o Meter
Help Keep Our Servers Online AND Our Services Free!
Make donations with PayPal!
Donations
Doulos May-15
Webservant May-11
AndyB May-5
Hotdog May-3
 
Please Link To Me!
 
Quality Web Hosting For All PHP Applications
Quality PHP Web Host!

Great Reviews!
Need help setting up your website, installing Apache, PHP, MySQL, or RavenNuke(tm)?
Need help customizing or designing scripts?
Please contact us via the Contact Us option for further details and pricing.

Link to Me

RavenPHPScripts

RavenPHPScripts

There are more Link To Me icons here.
 
Site Info v2.2.2 ©
Your IP: 38.107.179.231

 Welcome, Anonymous
Nickname
Password
Security Code:
Security Code
Type Security Code:

· Register
· Lost Password
Server Date/Time
24 May 2012 00:36:50 EDT (GMT -4)
 
Calendar bugs 
Bugs and Alerts
southern writes "

Category: Application (Calendar) > Event Calendar (PHP-Nuke Module) Vendors: holbrookau.net
Event Calendar Input Validation Holes Let Remote Users Inject SQL Commands

SecurityTracker Alert ID: 1012245
SecurityTracker URL: http://securitytracker.com/id?1012245
CVE Reference: GENERIC-MAP-NOMATCH (Links to External Site)
Date: Nov 16 2004

Impact: Disclosure of authentication information, Disclosure of system information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information



Exploit Included: Yes

Version(s): 2.13

Des cription: Some vulnerabilities were reported in Event Calendar. A remote user can inject SQL commands. A remote user can conduct cross-site s cripting attacks. A remote user can determine the installation path.

Janek Vind "waraxe" reported that the software does not properly validate user-supplied input, allowing SQL injection and cross-site s cripting attacks.

A remote user can supply specially crafted input in the 'edi' variable to execute SQL commands on the underlying database. A demonstration exploit URL is provided:

http://[target]/nuke73/modules.php?name=Calendar&file=index&type=view&eid=-99%20UNION%20ALL%20SELECT
%201,1,aid,1, pwd,1,1,1,1,1,1,1,1,1,1%20FROM%20nuke_authors%20WHERE%20radminsuper=1

A remote user can create a specially crafted URL that, when loaded by a target user, will cause arbitrary s cripting code to be executed by the target user's browser. The code will originate from the site running the Event Calendar software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

Some demonstration exploit URLs are provided:

http://[target]/nuke73/modules.php?name=Calendar&file=submit&type=[xss code here]
http://[target]/nuke73/modules.php?name=Calendar&file=sub mit&op2=Preview&day=[xss code here]
http://[target]/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&month=[xss code here]
http://[target]/nuke73/modules.php?na me=Calendar&file=submit&op2=Preview&year=[xss code here]
http://[target]/nuke73/modules.php?name=Calendar&file=submit&op2=Preview&type=[xss code here]

It is also reported that calendar event comments are not filtered.

It is reported that a remote user can supply the following types of URLs to cause the system to display the installation path:

http://[target]/nuke73/modules/Calendar/config.php

http://[target]/nuke73/modules/ Calendar/index.php

http://localhost/nuke73/modules/Calendar/submit.php

The vendor was notified on September 6, 2004.

Impact: A remote user can execute SQL commands on the underlying database.

A remote user can determine the installation database.

A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the Event Calendar software, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.

Solution: No solution was available at the time of this entry.

Vendor URL: phpnuke.holbrookau.net/ (Links to External Site)

Cause: Input validation error

Underlying OS: Linux (Any), UNIX (Any), Windows (Any)

Reported By: Janek Vind

Message History: None.



--------------------------------------------------------------------------------

Source Message Contents

--------------------------------------------------------------------------------

Date: 17 Nov 2004 04:22:43 -0000
From: Janek Vind
Subject: [waraxe-2004-SA#038 - Multiple vulnerabilities in Event Calendar









{================================================================================}
{ [waraxe-2004-SA#038] }
{================================================================================}
{ }
{ [ Multiple vulnerabilities in Event Calendar module for PhpNuke ] }
{ }
{================================================================================}

Author: Janek Vind "waraxe"
Date: 17. November 2004
Location: Estonia, Tartu
Web: http://www.waraxe.us/index.php?modname=sa&id=38


Affected software des cription:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Module's Name: Event Calendar
Module's Version: 2.13 - March 16th, 2004
Module's Des cription: Provides an event calendar for PHP-Nuke communities.
License: GNU/GPL
Author's Name: Original author - Rob Sutton. Development continued by Holbrookau.
Author's Email: phpnuke@holbrookau.net

Event Calendar - a module for PHP-Nuke.
Based on version 1.5 by Rob Sutton, the Event Calendar found here is much updated
and features many improvments and add-ons. For example, the administration area features
configuration via a graphical interface, posting of events can be moderated and users even
have the option of adding comments to any event.

Homepage: http://phpnuke.holbrookau.net/


Vulnerabilities:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This piece of sowtware has many security related flaws due to poor user-submitted data
handling.


A - Full Path Disclosure
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

A1 - full path disclosure in "config.php":

Warning: main(modules/Calendar/configset.php): failed to open stream: No such file or directory in D:apache_wwwroot uke73modulesCalendarconfig.php
on line 11
Warning: main(): Failed opening 'modules/Calendar/configset.php' for inclusion (include_path='.;c:php4pear') in D:apache_wwwroot uke73modulesCalendarconfig.php
on line 11
Warning: main(mainfile.php): failed to open stream: No such file or directory in D:apache_wwwroot uke73modulesCalendarconfig.php
on line 14
Warning: main(): Failed opening 'mainfile.php' for inclusion (include_path='.;c:php4pear') in D:apache_wwwroot uke73modulesCalendarconfig.php
on line 14
Warning: main(modules//language/lang-english.php): failed to open stream: No such file or directory in D:apache_wwwroot uke73modulesCalendarconfig.php
on line 19
Warning: main(): Failed opening 'modules//language/lang-english.php' for inclusion (include_path='.;c:php4pear') in D:apache_wwwroot uke73modulesCalendarconfig.php
on line 19


A2, A3 - full path disclosure in "index.php" and "submit.php":


B - XSS aka cross site s cript ing:



C - s cript injection in calendar event comments:

It's serious bug - anyone can insert java s cript exploit code to event comments
and if user or admin will read it, java s cript will trigger and bad things can
happen - like cookie theft, arbitrary admin operations, etc.


D - critical s ql in jection bugs in code:

If we take a deep look at source code, then there can be found multiple sql queries,
where some variables, mostly "$eid" and "$cid" ARE NOT surrounded with single quotes.
Therefore sql injection is possible. Further exploitation will depend on database
software and version. In case of the mysql version 4.x with UNION functionality enabled,
arbitrary data can be retrieved from database, inluding admin(s) authentication credentials.
As tradition, there is proof of concept:


How to fix:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Vendor contacted: 06. September 2004
Vendor responded: 06. September 2004
Detailed list of problems sent to vendor: 08. September 2004

Since then no more response from software developer and downloadable version
still unpatched.

For help with patching look @ here - http://www.waraxe.us/forums.html


Additional recources:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Free proxy lists - http://www.waraxe.us/forum/viewforum.php?f=21
Base64 online tool - http://base64-encoder-online.waraxe.us/base64/base64-encoder.php


Greetings:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Greets to Raido Kerna, icenix, g0df4th3r and slimjim100!
Tervitused - Heintz ja Maku!

Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

come2waraxe@yahoo.com
Janek Vind "waraxe"

Homepage: http://www.waraxe.us/



http://www.securitytracker.com/alerts/2004/Nov/1012245.html


Note: From the author: "NOTICE Due to numerous security issues found recently, the PHP-Nuke Event Calendar module formally found on this site is no longer available. Sorry, but as I don't have the time nor expertise to try and patch up the code, I suggest to those using it to delete it from their sites and seek a more secure and up-to-date alternative. - Holbrookau"






"
Posted on Thursday, November 18, 2004 @ 03:16:47 EST by Raven
 
Related Links
· More about Bugs and Alerts
· News by Raven


Most read story about Bugs and Alerts:
Calendar bugs

 
Article Rating
Average Score: 5
Votes: 1


Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


 
Options

 Printer Friendly Page  Printer Friendly Page

 Send to a Friend  Send to a Friend

 

Re: Calendar bugs (Score: 1)
by Raven (raven (_AT_) ravenphpscripts (_DOT_) com) on Saturday, November 20, 2004 @ 14:21:55 EST
Not registered user
Thanks for this alert. Although I am sorry to see the author discontinue it as I thought it was one of the better calendar applications.



OPEN SOURCE COMMUNITY (Score: 1)
by revspalding on Saturday, November 27, 2004 @ 12:32:53 EST
Not registered user
It seems to me that there ought to be enough php script EXPERTS out there that could fix this that we should expect a patched version from the next person who wants their name on what is a good module and one that is used on a lot of websites.

Come on guys, which one of you wants the increase in traffic for your advertisers? Step up to the challenge and help those of us who are not that educated in PHP.... patch this module for us and we'll all come to your site to get it!


 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum