SuperCali Support Forum

A place to post questions and ideas about SuperCali PHP Event Calendar

You are not logged in.

#1 2007-07-06 08:08 pm

Drew
New member
Registered: 2007-07-06
Posts: 1

Security Vulnerability

Hi Dana,

SuperCali is a great program for being free to the public, but a vulnerability has been found which allows hackers to get your admin password.  Details can be found here:

http://milw0rm.com/exploits/4141

A nice fellow from Turkey found my site by searching for "allintext supercali event calendar", then deleted all my database entries.  sad

The fix apparently is to sanitize the $o parameter, but unfortunately I'm not savvy enough to do this.

Offline

 

#2 2007-07-07 01:01 pm

Dana C. Hutchins
Administrator
Registered: 2007-05-28
Posts: 269

Re: Security Vulnerability

Crap, I'm sorry about that...

A quick fix is to replace line 108 of includes/start.php from:

if ($_REQUEST["o"]) {

to (corrected)

if (is_numeric($_REQUEST["o"])) { 

Thanks,

Dana

Offline

 

#3 2007-07-07 05:20 pm

Dana C. Hutchins
Administrator
Registered: 2007-05-28
Posts: 269

Re: Security Vulnerability

Please note that I had first listed the correction as:

if (is_int($_REQUEST["o"])) { 

This will not work, however.

Thanks,

Dana

Offline

 

#4 2007-08-14 02:28 pm

peatmoss
New member
Registered: 2007-08-14
Posts: 2

Re: Security Vulnerability

Dana, here's my problem...I installed the Calendar on a friends website (a ministry website), and now the month of july has nasty events scheduled.  I installed it a while ago:
http://www.mcmafl.com/web-calendar/old-index.php?o=1&c=1&m=07&a=1&y=2007

I followed the advice given above...but will we need to create a new admin username and password?  If it's been hacked?

This is a very bad vulnerability.  Especially for a ministry website.

I've thought of switching calendars as a result, but if this one can be fixed permanently, I'd rather do that.

Offline

 

#5 2007-08-14 05:17 pm

Dana C. Hutchins
Administrator
Registered: 2007-05-28
Posts: 269

Re: Security Vulnerability

I would certainly change the password.  I'm sorry your calendar was hacked.

Thanks,

Dana

Offline

 

#6 2007-08-29 12:41 am

TomatoPi
New member
Registered: 2007-08-29
Posts: 1

Re: Security Vulnerability

Correct me if I'm wrong...

Since "config.php" has a .php extension, on most if not all servers that file will be downloadable.  This file contains the database password and other sensitive information.  If it were an .inc extension, servers won't allow it to be downloaded.

It seems to me, that's why this was hacked (or at least one reason).

Last edited by TomatoPi (2007-08-29 12:53 am)

Offline

 

#7 2007-09-08 05:22 pm

heaven
New member
Registered: 2007-09-08
Posts: 2

Re: Security Vulnerability

i've tried to find that line in the file start.php but it's not there?

Offline

 

#8 2007-09-09 08:16 pm

Dana C. Hutchins
Administrator
Registered: 2007-05-28
Posts: 269

Re: Security Vulnerability

> TomatoPi wrote:

> Correct me if I'm wrong...

Since "config.php" has a .php extension, on most if not all servers that file will be downloadable.  This file contains the database password and other sensitive information.  If it were an .inc extension, servers won't allow it to be downloaded.

It seems to me, that's why this was hacked (or at least one reason).


I'm not sure if this is the case.  I think the idea behind having config.php being a .php file is that it will be parsed rather than being downloaded.  If it was an .inc extension, I think it would just spit out the code, at least on my server.

Offline

 

#9 2007-09-09 08:17 pm

Dana C. Hutchins
Administrator
Registered: 2007-05-28
Posts: 269

Re: Security Vulnerability

> heaven wrote:

> i've tried to find that line in the file start.php but it's not there?

It might be that you have a later version, which is already fixed.

Thanks,

Dana

Offline

 

#10 2009-12-09 08:05 am

Adain
New member
Registered: 2009-12-09
Posts: 1

Re: Security Vulnerability

Thanks for taking the time to help, I really apprciate it.

------------------------------------------
[url=http://www.secure-bytes.com/Vulnerability+Scanners.php]Vulnerability Scanners[/url]

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

Scripts.com Hotscripts ScriptsBank.com The PHP Resource Index ScriptSearch.com
Inforest CommunicationsSuperCali PHP Event Calendar is a project of Inforest Communications