TinyPortal

Development => Feedback => Topic started by: deniz on April 18, 2006, 09:25:51 PM

Title: WARNING
Post by: deniz on April 18, 2006, 09:25:51 PM
my site hacked.

i found problem and i solved.

problem with skoutbox.

you have to close shoutbox from block.

Title: Re: WARNING
Post by: anunlike on April 18, 2006, 09:46:41 PM
Could you provide us with further details?
Title: Re: WARNING
Post by: deniz on April 18, 2006, 09:50:27 PM
i can give info just othority. because this info should be secret.
Title: Re: WARNING
Post by: anunlike on April 18, 2006, 09:55:35 PM
OK. Got ya. :-X

:)
Title: Re: WARNING
Post by: deniz on April 18, 2006, 10:00:41 PM
sorry. i sent an PM to Bloc.

may be they will a patch for this.
Title: Re: WARNING
Post by: anunlike on April 18, 2006, 10:23:21 PM
I hope so. :)
Title: Re: WARNING
Post by: Mitchâ„¢ on April 18, 2006, 11:51:25 PM
So can anyone tell use is this going to be fixed or was it just a problem with their site?
Title: Re: WARNING
Post by: JayBachatero on April 18, 2006, 11:56:17 PM
Ok I provided a quick fix here (http://www.simplemachines.org/community/index.php?topic=69644.msg550190#msg550190).

It was not a problem on their site.  My site was hacked too.
Title: Re: WARNING
Post by: Mitchâ„¢ on April 19, 2006, 12:29:38 AM
How could that big of a security hole be left wide open in TP?!
Title: Re: WARNING
Post by: JayBachatero on April 19, 2006, 12:31:42 AM
Sometimes things happen.  Bloc is a great code though.  I would expect this to be fixed on TP .9 :)  Remember things happen specially on something as big as TP.
Title: Re: WARNING
Post by: Mitchâ„¢ on April 19, 2006, 12:32:58 AM
Well I think there should be some sort of patch that should be installed. I know people who dont know alot of coding will just turn a blind eye on the subject.
Title: Re: WARNING
Post by: Crip on April 19, 2006, 01:02:04 AM
Quote from: JayBachatero on April 18, 2006, 11:56:17 PM
Ok I provided a quick fix here (http://www.simplemachines.org/community/index.php?topic=69644.msg550190#msg550190).

It was not a problem on their site.  My site was hacked too.

So Jay,
we should really edit all the file in TPortal in your quick fix..is this something that Needs to be done without Bloc's own approval??
Title: Re: WARNING
Post by: JayBachatero on April 19, 2006, 01:03:41 AM
If you look at the changes it's small changes.  I'll PM you with more details.
Title: Re: WARNING
Post by: elpvn on April 19, 2006, 01:09:46 AM
Quote from: JayBachatero in SMF site
Ok here is a quick fix.  This add slashes to apostrophes and removes any html tags from $_POST var.

In TPmodules.php
Code (find) Select

$shout=strip_tags(substr($_POST['tp-shout'],0,300),'<b><u><i>');


Code (replace) Select

$_POST = addslashes__recursive($_POST);
$shout = substr($_POST['tp-shout'],0,300);
$shout = strip_tags($shout);
$_POST['tp-shout-name'] = strip_tags($_POST['tp-shout-name']);


In TPortal.php
Code (find) Select

  $shouts='Last '.$limit.' shouts:<hr />';

  while($row = mysql_fetch_assoc($request)){


Code (replace) Select

  $shouts='Last '.$limit.' shouts:<hr />';

  while($row = mysql_fetch_assoc($request)){
$row = stripslashes__recursive($row);


In TPortalAdmin.php
Code (find) Select

               if(mysql_num_rows($request)>0){
                  while ($row = mysql_fetch_assoc($request))
                  {


Code (replace) Select

               if(mysql_num_rows($request)>0){
                  while ($row = mysql_fetch_assoc($request))
                  {
$row = stripslashes__recursive($row);


Thanks, I tried  ;)
Title: Re: WARNING
Post by: JayBachatero on April 19, 2006, 01:16:57 AM
That is for the shoutbox only.  It might be good to check any other place too just to be on the safe side.
Title: Re: WARNING
Post by: bloc on April 19, 2006, 01:19:33 AM
I will send out notice of an update to 0.86 asap.

In the meantime, just try out Jay's code. I need to check it out and setup a update package.
Title: Re: WARNING
Post by: elpvn on April 19, 2006, 01:20:16 AM
Jay, the link: http://www.kevmundial.com/board/index.php?action=googlemap can't operationÃ,  ???
Title: Re: WARNING
Post by: JayBachatero on April 19, 2006, 01:27:29 AM
Bloc I'll post a packaged version of this fix in a few mins.  elpvn are you using IE or FF?
Title: Re: WARNING
Post by: elpvn on April 19, 2006, 01:29:23 AM
Quote from: JayBachatero on April 19, 2006, 01:27:29 AM
Bloc I'll post a packaged version of this fix in a few mins.Ã,  elpvn are you using IE or FF?

Thank for up to update the fixed.
I using IE6 browserÃ,  :)
Title: Re: WARNING
Post by: JayBachatero on April 19, 2006, 01:58:18 AM
@elpvn - Umm I still haven't applied the fix for the Google Map to work on IE6.  TLM provided a fix but forgot all about it :-\.

Here is a packaged fix.  I tried it on my site and it worked.  If anything just let me know.
Title: Re: WARNING
Post by: anunlike on April 19, 2006, 02:14:40 AM
Bloc just posted the fix for this here: http://www.tinyportal.net/smf/index.php?topic=4440.0
Title: Re: WARNING
Post by: Mitchâ„¢ on April 19, 2006, 02:36:56 AM
So if we dont show the shoutbox will we be ok?
Title: Re: WARNING
Post by: JayBachatero on April 19, 2006, 02:59:34 AM
Yes you should be on if you have the shoutbox disabled.  Just to be on the safe side apply the patch.
Title: Re: WARNING
Post by: bloc on April 19, 2006, 08:19:52 AM
It is/was only active when you allow guests shouting. Thats also why I missed that hole - its some code I haven't looked at for some while.
Title: Re: WARNING
Post by: JayBachatero on April 19, 2006, 08:49:31 AM
I don't allow guests to shout (it was getting spammed).  The person registered as exploit and exploited my forum.
Title: Re: WARNING
Post by: bloc on April 19, 2006, 10:05:58 AM
So he registered and still managed to post a message which re-directed the site?
Title: Re: WARNING
Post by: JayBachatero on April 19, 2006, 05:38:05 PM
Yea he registered and posted the redirect.  Same happened to agridocs site.  That's when I found out about my site.
Title: Re: WARNING
Post by: palorber on April 23, 2006, 05:27:48 PM
Same thing happened to me. I

They registered as ertan... His IP is 85.106.142.123
Host name:  dsl85-106-36475.ttnet.net.tr