Welcome Guest ( Log In | Register )

6 Pages V  1 2 3 > »   
Reply to this topicStart new topic
> Security Flaw in CG Scripts, Several scripts affected
Sasha
post Nov 16 2005, 01:11 PM
Post #1


Codegrrl Alumni
*****

Group: Loyal Members
Posts: 1,671
Joined: 12-May 03
Member No.: 2



A security flaw has been discovered in several of CodeGrrl's scripts:

FA-PHPHosting, PHPClique, PHPCalendar, PHPCurrently, PHPFanBase, PHPQuotes

New versions of some of the scripts with the flaw fixed have been released here. You do not need to reinstall the whole script, as the only file affected is protection.php. For convenience, we have a fixed version of protection.php available here. The easiest way to secure your scripts:

- Download the fixed protection.php file
- Unzip it
- Replace ALL copies of protection.php on your site with this file (doesn't matter what script it's for)

Alternatively, you can easily patch protection.php yourself:

- Download protection.php and open it up in a program like NotePad
- On the second line, right below <?, add this:

CODE
include("config.php");

Your first four lines will now look like this:
CODE
<?
include("config.php");

$user_passwords = array (

- Save it, and upload it to your site, overwriting the old protection.php

If you have created a script yourself that is based on any of the scripts above, please note that you will have to patch protection.php for those as well.

It is important that you upgrade AS SOON AS POSSIBLE. By not upgrading you are letting your site be vulnerable to hacking. This is now a known flaw to hackers, so they will be actively looking for sites to exploit - please upgrade as soon as possible!

If you know of people who use CodeGrrl scripts but might not have seen this notice, please point them here so they can fix their scripts too - it'd be great if you could help us get the word out.
Our apologies for any inconvenience this may have caused to you.

EDITED: If you are a TwistyBot customer, you do not have to worry about upgrading if you are using any of the standard installs above (without renaming any files, etc) because I am currently fixing all instances of these scripts on our servers. If you have renamed protection.php, please double-check it though, as there is a chance I might have missed it.


--------------------
Take care, Sasha
nothing-less | my sites
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lexa
post Nov 16 2005, 03:39 PM
Post #2


Rank #5: Obsessed
*****

Group: Members
Posts: 376
Joined: 25-February 04
From: UK
Member No.: 833



Oooh excellent smile.gif I've just tried to download protection.php but I can't open the file. I get this error message from my Stuffit Expander: "Unknown zip header format encountered. This Operation cannot continue." So I tried to download the new whole script but I get the same error and when I check the file that's on my computor it contains part of admin.php and nothing else.

I've never seen that error before so I thought you ought to know in case I'm not the only person it affects as this is a really important fix smile.gif


--------------------
Shakespeare's Quill Persiflage


I count myself in nothing else so happy
As in a soul remembering my good friends.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sasha
post Nov 16 2005, 05:04 PM
Post #3


Codegrrl Alumni
*****

Group: Loyal Members
Posts: 1,671
Joined: 12-May 03
Member No.: 2



Oops sorry about those errors! I am on a Mac, and just zipped them with the "Create Archive" command - are you on a Mac too? If so, can you right-click and choose Open With > BOM Archive Helper? Does it work that way?


--------------------
Take care, Sasha
nothing-less | my sites
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Vixx
post Nov 16 2005, 08:07 PM
Post #4


CodeGrrl Administrator
Group Icon

Group: Admin
Posts: 2,419
Joined: 31-December 03
From: UK
Member No.: 657



All scripts have now been removed whilst we work on this.

Apologies for any inconvenience. Please bear with us as we work on making CG a safer place!!


--------------------
V xx

I think. I play. I give. I love. I create. I am.

Geek Goddess Design: Web/Blog Design With A Touch of Geek Chic!!
Hosting with Dreamhost - use the Promo Code CODEGRRLPROMO and save $50!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lexa
post Nov 16 2005, 09:41 PM
Post #5


Rank #5: Obsessed
*****

Group: Members
Posts: 376
Joined: 25-February 04
From: UK
Member No.: 833



QUOTE(Sasha @ Nov 16 2005, 05:04 PM)
Oops sorry about those errors! I am on a Mac, and just zipped them with the "Create Archive" command - are you on a Mac too? If so, can you right-click and choose Open With > BOM Archive Helper? Does it work that way?

Yep, I'm on a Mac too but my mouse only has one button, so right clicking's out. I've never heard of BOM Archive Helper, hmmmm, I've had a good root around but the only thing I can find is Stuffit, sorry sad.gif Will the temporary fix be enough for now, until I can find a way to open the new file(s)?


--------------------
Shakespeare's Quill Persiflage


I count myself in nothing else so happy
As in a soul remembering my good friends.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Amelie
post Nov 16 2005, 09:43 PM
Post #6


(Not the film)
Group Icon

Group: CodeGrrl Staff
Posts: 5,287
Joined: 14-January 05
From: UK
Member No.: 2,051



CTRL + Click has always worked for me on a one button mouse (does the same thing as right-clicking), but only on OS X - I haven't used any other version of Mac OS for so long that I don't remember...


--------------------
-- Amelie

» N-N.net | RNM.com | NS.net
» Scripts | PHPAskIt fan?

"This is my signature. There are many others like it but only this one is mine."
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sasha
post Nov 17 2005, 12:04 AM
Post #7


Codegrrl Alumni
*****

Group: Loyal Members
Posts: 1,671
Joined: 12-May 03
Member No.: 2



QUOTE(Lexa @ Nov 16 2005, 09:41 PM)
Yep, I'm on a Mac too but my mouse only has one button, so right clicking's out. I've never heard of BOM Archive Helper, hmmmm, I've had a good root around but the only thing I can find is Stuffit, sorry sad.gif Will the temporary fix be enough for now, until I can find a way to open the new file(s)?

Sorry yes, I meant Ctrl-click! BOM Archive Helper is the name of the built-in unzipping utility in Mac OSX. Sometimes files won't unzip with Stuffit, but they'll work fine with the BOM Archive Helper, that's why I asked. smile.gif Stuffit can be buggy, it's not the most stable program I have ever seen.

Try Ctrl-Clicking then, and choosing Open With - see if BOM Archive Helper is in the list. Let me know if that works?


--------------------
Take care, Sasha
nothing-less | my sites
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lexa
post Nov 17 2005, 12:45 AM
Post #8


Rank #5: Obsessed
*****

Group: Members
Posts: 376
Joined: 25-February 04
From: UK
Member No.: 833



Ack! So it's no go then, I'm using OS8.6.


--------------------
Shakespeare's Quill Persiflage


I count myself in nothing else so happy
As in a soul remembering my good friends.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sasha
post Nov 17 2005, 10:12 AM
Post #9


Codegrrl Alumni
*****

Group: Loyal Members
Posts: 1,671
Joined: 12-May 03
Member No.: 2



QUOTE(Lexa @ Nov 17 2005, 12:45 AM)
Ack! So it's no go then, I'm using OS8.6.

Oh! That would explain it then! Um - would it help if you gave me your email address and I emailed you the unzipped protection.php file? smile.gif


--------------------
Take care, Sasha
nothing-less | my sites
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lexa
post Nov 17 2005, 11:38 AM
Post #10


Rank #5: Obsessed
*****

Group: Members
Posts: 376
Joined: 25-February 04
From: UK
Member No.: 833



Oh, thank you so much <3 I'll PM you smile.gif


--------------------
Shakespeare's Quill Persiflage


I count myself in nothing else so happy
As in a soul remembering my good friends.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Crys
post Nov 18 2005, 06:20 PM
Post #11


Rank #3: Frequent
***

Group: Members
Posts: 72
Joined: 25-June 03
From: Maryland
Member No.: 190



Are these scripts available yet for upgrade? I had seen a message where they were temporarily removed or it was suggested to wait until the security holes were fixed.


--------------------
- Crys (former staffer)

http://tawodi.org

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Amelie
post Nov 18 2005, 06:27 PM
Post #12


(Not the film)
Group Icon

Group: CodeGrrl Staff
Posts: 5,287
Joined: 14-January 05
From: UK
Member No.: 2,051



They were available for upgrade, but they have been removed until we can look into the issue further. The fix that Sasha posted will stop the hacking vulnerabilities, but if you want to be even more secure, you can apply some of the solutions in this post which will protect the files even further.

Failing that, turn register_globals off on your server and download Julie's fixed version of PHPFanBase to completely remove the problem. We are working on updating the other scripts to work with register_globals disabled, as this is what the hackers are using to exploit the script. smile.gif


--------------------
-- Amelie

» N-N.net | RNM.com | NS.net
» Scripts | PHPAskIt fan?

"This is my signature. There are many others like it but only this one is mine."
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lowlands Girl
post Nov 18 2005, 08:06 PM
Post #13


Rank #2: Member
**

Group: Members
Posts: 43
Joined: 11-February 05
Member No.: 2,192



I'm confused. I just went in to patch my own file, and it appears that it had already been fixed. Now either my host fixed it without telling me (unlikely, though she's a very nice person), or my version had it fixed already, or I'm just not seeing something. You simply have to replace the first four lines, right?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Amelie
post Nov 18 2005, 08:11 PM
Post #14


(Not the film)
Group Icon

Group: CodeGrrl Staff
Posts: 5,287
Joined: 14-January 05
From: UK
Member No.: 2,051



Some hosts are replacing the files for you. I know Sasha is doing that with her clients, and some others are doing that too - especially those with reseller accounts (since some hosts can hold the reseller reponsible for the hackings) - check with your host to see if that's what happened. smile.gif


--------------------
-- Amelie

» N-N.net | RNM.com | NS.net
» Scripts | PHPAskIt fan?

"This is my signature. There are many others like it but only this one is mine."
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Jaroo
post Nov 19 2005, 02:48 AM
Post #15


We weren't crazy!
*****

Group: Loyal Members
Posts: 2,769
Joined: 24-February 04
From: Illinois
Member No.: 832



QUOTE(Amelie @ Nov 18 2005, 12:27 PM)
They were available for upgrade, but they have been removed until we can look into the issue further. The fix that Sasha posted will stop the hacking vulnerabilities, but if you want to be even more secure, you can apply some of the solutions in this post which will protect the files even further.

Failing that, turn register_globals off on your server and download Julie's fixed version of PHPFanBase to completely remove the problem. We are working on updating the other scripts to work with register_globals disabled, as this is what the hackers are using to exploit the script. smile.gif

How do you turn register globals off? blink.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Amelie
post Nov 19 2005, 03:11 AM
Post #16


(Not the film)
Group Icon

Group: CodeGrrl Staff
Posts: 5,287
Joined: 14-January 05
From: UK
Member No.: 2,051



Solution #3 in the "Won't log me in" FAQ in reverse wink.gif

Stick this in .htaccess:

CODE
php_flag register_globals off


--------------------
-- Amelie

» N-N.net | RNM.com | NS.net
» Scripts | PHPAskIt fan?

"This is my signature. There are many others like it but only this one is mine."
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Jaroo
post Nov 19 2005, 03:12 AM
Post #17


We weren't crazy!
*****

Group: Loyal Members
Posts: 2,769
Joined: 24-February 04
From: Illinois
Member No.: 832



Well is that per directory? I mean do I have to do that for each fanlisting etc or can I still it in the main directory and it will apply to all directories?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Amelie
post Nov 19 2005, 03:14 AM
Post #18


(Not the film)
Group Icon

Group: CodeGrrl Staff
Posts: 5,287
Joined: 14-January 05
From: UK
Member No.: 2,051



Put it in your public_html directory and it will apply to everything. smile.gif


--------------------
-- Amelie

» N-N.net | RNM.com | NS.net
» Scripts | PHPAskIt fan?

"This is my signature. There are many others like it but only this one is mine."
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Jaroo
post Nov 19 2005, 03:14 AM
Post #19


We weren't crazy!
*****

Group: Loyal Members
Posts: 2,769
Joined: 24-February 04
From: Illinois
Member No.: 832



QUOTE(Amelie @ Nov 18 2005, 09:14 PM)
Put it in your public_html directory and it will apply to everything. smile.gif

Yay I love you <3
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Jaroo
post Nov 19 2005, 03:15 AM
Post #20


We weren't crazy!
*****

Group: Loyal Members
Posts: 2,769
Joined: 24-February 04
From: Illinois
Member No.: 832



QUOTE(makehimbeg @ Nov 18 2005, 09:14 PM)
QUOTE(Amelie @ Nov 18 2005, 09:14 PM)
Put it in your public_html directory and it will apply to everything. smile.gif

Yay I love you <3

Ick.. I use Fan Admin so now THAT doesn't work sad.gif Am I gonna have to go back to updating the way I did before Fan Admin?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

6 Pages V  1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 9th February 2010 - 04:03 AM