Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #41 (permalink)  
Old 12-11-2007, 06:29 PM
davemackey's Avatar
davemackey davemackey is offline
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 296
Downloads: 8
Uploads: 0
Thanks: 31
Thanked 24 Times in 18 Posts
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
Sponsored Links
  #42 (permalink)  
Old 12-11-2007, 06:33 PM
davemackey's Avatar
davemackey davemackey is offline
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 296
Downloads: 8
Uploads: 0
Thanks: 31
Thanked 24 Times in 18 Posts
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 06:49 PM.
Reply With Quote
  #43 (permalink)  
Old 12-11-2007, 07:16 PM
not2serious's Avatar
not2serious not2serious is offline
Pligg Donor
Pligg Version: v0.96 w/modifications
Pligg Template: Yget w/modifications
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 226
Downloads: 29
Uploads: 0
Thanks: 16
Thanked 16 Times in 15 Posts
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.
__________________
My Pligg Site: Critique My Art
My Arts Directory: Links 2 Arts
Reply With Quote
  #44 (permalink)  
Old 12-11-2007, 07:16 PM
davemackey's Avatar
davemackey davemackey is offline
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 296
Downloads: 8
Uploads: 0
Thanks: 31
Thanked 24 Times in 18 Posts
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 07:31 PM.
Reply With Quote
  #45 (permalink)  
Old 12-11-2007, 07:35 PM
joehunk's Avatar
joehunk joehunk is offline
Casual Pligger
 
Join Date: Oct 2007
Posts: 98
Downloads: 9
Uploads: 0
Thanks: 14
Thanked 10 Times in 8 Posts
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, 07:47 PM
edpudol edpudol is offline
New Pligger
 
Join Date: May 2007
Posts: 21
Downloads: 4
Uploads: 0
Thanks: 0
Thanked 1 Time in 1 Post
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, 07:58 PM
hoho hoho is offline
New Pligger
 
Join Date: Jun 2006
Posts: 2
Downloads: 9
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

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, 07:59 PM
Yankidank's Avatar
Yankidank Yankidank is offline
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Pligg Founder
Pligg Version: SVN
Pligg Template: LemonTwist
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,539
Downloads: 65
Uploads: 6
Thanks: 100
Thanked 155 Times in 105 Posts
Thanks for pointing out the article edpudol, we're looking into fixing this problem and other methods to stop spam.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #49 (permalink)  
Old 12-11-2007, 07:59 PM
not2serious's Avatar
not2serious not2serious is offline
Pligg Donor
Pligg Version: v0.96 w/modifications
Pligg Template: Yget w/modifications
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 226
Downloads: 29
Uploads: 0
Thanks: 16
Thanked 16 Times in 15 Posts
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.
__________________
My Pligg Site: Critique My Art
My Arts Directory: Links 2 Arts

Last edited by not2serious : 12-11-2007 at 08:59 PM.
Reply With Quote
  #50 (permalink)  
Old 12-11-2007, 08:00 PM
rmorrill's Avatar
rmorrill rmorrill is offline
New Pligger
 
Join Date: Jun 2007
Posts: 16
Downloads: 8
Uploads: 0
Thanks: 6
Thanked 7 Times in 4 Posts
Smile Cool it is not just me - i wrote the article on ittoolbox

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
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Wiki has been spammed... jrothra Suggestions 5 07-14-2007 03:20 PM


LinkBacks Enabled by vBSEO 3.0.0