Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Help > General Help



[SOLVED] Do NOT run version 9.9.0!!!


Closed Thread
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-31-2008, 03:26 PM
New Pligger
 
Join Date: Jul 2008
Posts: 8
Quote:
Originally Posted by justelite View Post
my website was hacked today! Yestersday I just upgrade it at Pligg Beta 9.9.0.
Sorry to hear that but you will not be the last since there is no urgency by the developers to solve this. Anyone using 0.9.9 should disable their sites immediately or risk the same thing. This is not a small risk, this is a critical risk to any site using this version. The exploit code works WAY too well.
  #12 (permalink)  
Old 07-31-2008, 03:32 PM
New Pligger
 
Join Date: Sep 2006
Posts: 7
http://www.pickknow.com/ - another pligg down

Daily Fun is my job
  #13 (permalink)  
Old 07-31-2008, 05:21 PM
Casual Pligger
 
Join Date: Feb 2008
Posts: 33
Ok. There is a temporary solution to avoid using that script. You need give the files admin_editor.php and settemplate.php chmod 000 or copy it to your hard disk and delete it from your hosting. The exploit use admin_editor.php to edit your template files, after chmodiing or deleting they can't edit it. They can get the name of admin (in standard) but the can't do nothing more.

That's only temporary fix, when Pligg team release update you can put files to your web host.
  #14 (permalink)  
Old 07-31-2008, 06:00 PM
New Pligger
 
Join Date: Jul 2008
Posts: 8
Quote:
Originally Posted by ddluk View Post
Ok. There is a temporary solution to avoid using that script. You need give the files admin_editor.php and settemplate.php chmod 000 or copy it to your hard disk and delete it from your hosting. The exploit use admin_editor.php to edit your template files, after chmodiing or deleting they can't edit it. They can get the name of admin (in standard) but the can't do nothing more.

That's only temporary fix, when Pligg team release update you can put files to your web host.
The shell exploit is in index.php, you can't really remove that one. The way that is done is though an exploit in vote.php. Your solution is only a partial fix but if the site is still running it is still vulnerable to the very dangerous shell exploit. Removing those files does not protect your system at this time.
  #15 (permalink)  
Old 07-31-2008, 06:04 PM
Casual Pligger
 
Join Date: Feb 2008
Posts: 33
Thanks catchpen. I look into that files and find simple solution. You need to open file vote.php, then find line:

Code:
if($_POST['id']){
and edit it to that:

Code:
if(is_numeric($_POST['id'])){
Open settemplate.php, then find:

Code:
if(file_exists("./templates/".$_GET['template']."/link_summary.tpl")){
and change into:

Code:
if(file_exists("./templates/".$_GET['template']."/link_summary.tpl")) && strpos('.', $_GET['template']) === 0){
Open login.php, then find:

Code:
$username = trim($_POST['username']);
$password = trim($_POST['password']);
and change to that:

Code:
$username = sanitize(trim($_POST['username']), 3);
$password = sanitize(trim($_POST['password']), 3);
find

Code:
$username = trim($_POST['username']);
and change to:

Code:
$username = $db->escape(trim($_POST['username']));

find:

Code:
$username = trim($_GET['username']);
and change to:

Code:
$username = sanitize(trim($_GET['username']), 3);

Open cvote.php, then find:

Code:
$comment->id=$_POST['id'];
(line 20)

after that paste:

Code:
if(!is_numeric($comment->id)){die();}

Open edit.php, then find:

Code:
$link->commentid=$_REQUEST['commentid'];
and after that paste :

Code:
if(!is_numeric($link->commentid)){die();}

Last edited by ddluk; 07-31-2008 at 06:07 PM. Reason: bug
  #16 (permalink)  
Old 07-31-2008, 06:08 PM
gen3ric's Avatar
Constant Pligger
Pligg Version: 9.X
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Atlanta, GA
Posts: 112
Do we know if this exploit only applies to v9.9 or previous versions as well?

Design Float - Digg For Designers
  #17 (permalink)  
Old 07-31-2008, 06:09 PM
Casual Pligger
 
Join Date: Feb 2008
Posts: 33
After that code changing exploit doesn't work :)
  #18 (permalink)  
Old 07-31-2008, 06:29 PM
New Pligger
 
Join Date: Jul 2008
Posts: 8
I made all of those changes and the exploit script still gets my shell access.
  #19 (permalink)  
Old 07-31-2008, 06:31 PM
Pligg Donor
 
Join Date: Mar 2007
Posts: 54
Ok I have updated my code.

Posting, viewing, voting all seem to work
  #20 (permalink)  
Old 07-31-2008, 06:40 PM
Casual Pligger
 
Join Date: Feb 2008
Posts: 33
Quote:
Originally Posted by KerryG View Post
I made all of those changes and the exploit script still gets my shell access.
Hmmm that's impossible. Give me your site address via pm.
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving servers and version 9.8 -> 9.9.0 johnsteel Installation and Upgrade Help 5 05-16-2008 04:21 PM
Does your Category load via version 9.9.0? Loz07 General Help 1 05-04-2008 10:30 PM
[SOLVED] Version number doesn't update after upgrade AshMCairo General Help 8 12-13-2007 12:02 PM
[SOLVED] Link To Pligg Templating Version 1.0 Video Broken Adaman General Help 6 07-05-2007 07:23 PM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development