HELP! I'm getting spammed!

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #41 (permalink)  
Old 12-11-2007, 07:29 PM
davemackey's Avatar
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 226
Okay, I think I am much closer. I moved my randomizer to near the top of register.php and made it a global variable:
function do_register0() {
global $main_smarty, $the_template, $mynumber;
$number1 = mt_rand(1,10);
$number2 = mt_rand(1,25);
$mynumber = $number1+$number2;
$main_smarty->assign('number1', $number1);
$main_smarty->assign('number2', $number2);
$main_smarty->display($the_template . '/register_step_1.tpl');
}
This successfully makes the numbers visible. Now at the last step it should verify the sum of these two numbers:
if($_POST["addit"] != $mynumber) {
$main_smarty->display($the_template . '/register_error.tpl');
$error = true;
}
But it doesn't. It always fails.
Reply With Quote
  #42 (permalink)  
Old 12-11-2007, 07:33 PM
davemackey's Avatar
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 226
Thanks Ash. For anyone who is interested, here is the final working code for the meantime:
1. On register_step_1.tpl:
<label>You're Human Right? What is {$number1} + {$number2}?</label>
<input type="text" id="addit" name="addit" size="2" tabindex="5"/>


<br />
2. In register.php:
if($_POST["regfrom"] == 'full'){
$username = $_POST["reg_username"];
$email = $_POST["reg_email"];
$password = $_POST["reg_password"];
$verify = $_POST["reg_password2"];
$theirnumber = $_POST["addit"];

function do_register0() {
global $main_smarty, $the_template, $mynumber;
$number1 = mt_rand(1,10);
$number2 = mt_rand(1,25);
$mynumber = $number1+$number2;
$main_smarty->assign('number1', $number1);
$main_smarty->assign('number2', $number2);
$main_smarty->assign('mynumber', $mynumber);

$main_smarty->display($the_template . '/register_step_1.tpl');

if($password !== $password2) { // if both passwords do not match
$main_smarty->assign('register_error_text', "nopassmatch");
$main_smarty->display($the_template . '/register_error.tpl');
$error = true;
}
if($theirnumber != $mynumber) {
$main_smarty->display($the_template . '/register_error.tpl');
$error = true;
}


Thats it.

Last edited by davemackey; 12-11-2007 at 07:49 PM.
Reply With Quote
  #43 (permalink)  
Old 12-11-2007, 08:16 PM
not2serious's Avatar
Pligg Donor
Pligg Version: v0.96 w/modifications
Pligg Template: Yget w/modifications
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 205
I got hit real bad as well today as well.

I deleted the register and comment tpl's in a panic. I should have renamed them, like some of you did. But, I panicked. I am now going to read all of your posts and decide what to do.
Reply With Quote
  #44 (permalink)  
Old 12-11-2007, 08:16 PM
davemackey's Avatar
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 226
Okay, strike this:
What the heck. This bot seems pretty intelligent. It is managing to register even with my random number generator authentication. Any ideas anyone? The only thing I can think is it has found another method of registering...
I figured out what the problem is. My changes aren't working. Even if you don't give it the right values to the rand addition it lets you go.
David.

Last edited by davemackey; 12-11-2007 at 08:31 PM.
Reply With Quote
  #45 (permalink)  
Old 12-11-2007, 08:35 PM
joehunk's Avatar
Casual Pligger
 
Join Date: Oct 2007
Posts: 67
Dave, you are saying you are still in attack after implementing the random # generator auth'n you wrote above? right?

So, it means no luck on this solution ha. Seems like this bot is so intelligent that he knows PLIGG core code. Hmmm..... I stop working on the solution this morning and now I am ready to look at "HOW INTELLIGENT" this bot is. If I find the solution, I'll post here quickly.

----------------------------------
My pligg site: www.ebenta.com
Reply With Quote
  #46 (permalink)  
Old 12-11-2007, 08:47 PM
New Pligger
 
Join Date: May 2007
Posts: 21
Quote:
Originally Posted by davemackey View Post
Okay, strike this:
What the heck. This bot seems pretty intelligent. It is managing to register even with my random number generator authentication. Any ideas anyone? The only thing I can think is it has found another method of registering...
I figured out what the problem is. My changes aren't working. Even if you don't give it the right values to the rand addition it lets you go.
David.
Yes most of us who are using pligg getting this attack, and I guess the problem was address in this post.

Hackers using PyCurl to bypass registration

So even we tried put some code in our site, there is a hole where the hacker using to spam our sites.

I hope pligg dev team can see this problem.....
Reply With Quote
  #47 (permalink)  
Old 12-11-2007, 08:58 PM
New Pligger
 
Join Date: Jun 2006
Posts: 4
I've this problem too.

More than 2,000 spam users and 3,000 spam comments (and keep going). Hope someone can help.
Reply With Quote
  #48 (permalink)  
Old 12-11-2007, 08:59 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,803
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Thanks for pointing out the article edpudol, we're looking into fixing this problem and other methods to stop spam.

Now Available: Facebook Connect Module !
Reply With Quote
  #49 (permalink)  
Old 12-11-2007, 08:59 PM
not2serious's Avatar
Pligg Donor
Pligg Version: v0.96 w/modifications
Pligg Template: Yget w/modifications
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 205
Quote:
Originally Posted by bbrian017 View Post
I would suggest 2 things in order to avoid spam. Sad but here they are,

#1- stay away from pliggsites.com it s a heat score

#2 - don't post in the my pligg site forum it's also a heat score.
Just so everyone knows that this is not the source of the attack. I have not registered on pliggsites nor have I posted my site in "my pligg site," but am under attack.

Unfortunately, I have no time to implement any of the fixes yet, but did delete the register and comment files from my server and it has stopped the progression. I will work on cleaning up the mess over the next few days.

Last edited by not2serious; 12-11-2007 at 09:59 PM.
Reply With Quote
  #50 (permalink)  
Old 12-11-2007, 09:00 PM
rmorrill's Avatar
New Pligger
 
Join Date: Jun 2007
Posts: 15
Quote:
Originally Posted by edpudol View Post
Yes most of us who are using pligg getting this attack, and I guess the problem was address in this post.

Hackers using PyCurl to bypass registration

So even we tried put some code in our site, there is a hole where the hacker using to spam our sites.

I hope pligg dev team can see this problem.....
interesting that it is not just me, didn't think to look here, but I can help diagnose what is happening from the security viewpoint. It is interesting to watch this, but the bubba has only made some 500 accounts on mine, and I am back in the db deleting them.

The behavior though is coming in spirts, like he/she/they is testing the code. The question, how many pligg installs are there?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looks like our Curl User is back REF Help I am being Spammed rmorrill Questions and Comments 1 01-09-2008 11:00 PM
Wiki has been spammed... jrothra Questions and Comments 5 07-14-2007 04:20 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development