Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Forums hacked into last night!
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 7

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 December 2007 :  17:34:11  Show Profile  Send ruirib a Yahoo! Message
That just means that the fix stopped you from being hacked. The bug forum has an updated version that will ensure that only numeric expressions will be stored in the database.



Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 December 2007 :  19:40:33  Show Profile  Send ruirib a Yahoo! Message
Deleting the guy would be an option. That doesn't happen in all forums, there are quite a few where those side effects did not occur.

Anyway, if you want to avoid that, you can either apply the recommendation made here or replace the current version of your UpdateLastHereDate function, in inc_func_common.asp by this code:


function UpdateLastHereDate(fTime,UserName)
	UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
	If UserIPAddress = "" or Left(UserIPAddress, 7) = "unknown" Then
		UserIPAddress = Request.ServerVariables("REMOTE_ADDR")
	ElseIf InStr(UserIPAddress, ",") > 0 Then
		UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ",")-1)
	ElseIf InStr(UserIPAddress, ";") > 0 Then
		UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ";")-1)
	End If
	If InStr(UserIPAddress, ":") > 0 then
		UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ":")-1)
	End If
	
	If Not isValidForumDateString(fTime) Then
		fTime = DateToStr(strForumTimeAdjust)
	End If
	
	'## Forum_SQL - Do DB Update
	strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
	strSql = strSql & " SET M_LASTHEREDATE = '" & fTime & "'"
	strSql = strSql & ",    M_LAST_IP = '" & UserIPAddress & "'"
	strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & ChkString(UserName, "SQLString") & "' "
	
	my_conn.Execute (strSql),,adCmdText + adExecuteNoRecords
end function


function isValidForumDateString(fDate)
	
	set regEx = New RegExp
	regEx.Global = true
	regEx.Pattern = "^[123][0-9]{13}$"

	retVal = regEx.Test(fDate)

	set regEx = nothing

	if Not retVal Then
           validDateString = false
	Else
           validDateString = true
	end if

end function


This won't solve the problem for that user, though.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 18 December 2007 :  20:49:20  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
The problem was also found to be in some mods, one of the mods being Unanswerd topics where unanswered.asp has the same flaw and needs to be fix and such was announced in the forum here (can't find it right now) so if you have that mod in your modded site, or any other mod that was sort of based off active.asp, then you should check that out Image.

coaster crazy
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 December 2007 :  20:57:00  Show Profile  Send ruirib a Yahoo! Message
Image,

You know, somehow your code is less resistant to a bad value in a last visit date than my own test 3.4.06 version. The result I usually saw is exemplified by the image posted by Aaron here: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66059

Anyway, I've provided you with two alternatives that won't cause that issue on versions of the forum code less resistant to a bad value on the members last visit date, one of which had been posted a few days ago. You, not being born yesterday, must have realized that already, so I fail to see the point of this last post of yours.

Even better, you can code your own fix and add it to your forum version, if you don't like any of mine.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 18 December 2007 :  22:04:24  Show Profile  Visit SiSL's Homepage
Best to write yer own modz that noone knows anything about

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 19 December 2007 :  18:11:50  Show Profile  Send ruirib a Yahoo! Message
This is what happens on my test 3.4.06 version:

http://ruirib.net/mlev.jpg

As you can see, the forum still works, so I saw no reason to change the fix. I saw similar behavior in other forums as well.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

mdelcour2000
Junior Member

United States
133 Posts

Posted - 26 January 2008 :  16:22:38  Show Profile  Visit mdelcour2000's Homepage
ok, I have installed the fixes from Ruirub several times over, today, my forum was hacked once more. This time they deleted almost all of my members and their posts and left this message:

Hacked By Ozel Kuvvetler-BordoBereliler / AYT


Don't Be Silent About War Of Iraq !

Innocent People Die Every Day,Every Hour In Iraq !

We Are Your Nightmare In CyberWorld !

Don't Forget it ;

One Turk Against The World..

SawTurk - Swantska - The UnderTaker - ClientCode - Deli61 - pikatel1 - Vasili - F34RL355 - Amen - Turk67 - AdReNalin


SANAL ALEMiN BORDO BERELi ASKERLERi
AYYILDIZ TiM

They also deleted my forum logo and changed several other things. You can see the results they left at www.thatsmychurch.com hurry though, I am going to shut this down tommorrow 1-27-08!

Please help me find some answers!

http://lacledeforum.com/

"Never get so busy doing the work of the kingdom that you forget who the King is"
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 26 January 2008 :  16:43:07  Show Profile  Visit modifichicci's Homepage
Have you apply the correct fix?
There was a member as admin that you don't recognize?
Can someone have had your password?

Can you post a text link to your active.asp and inc_func_common.asp?

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 26 January 2008 :  16:43:19  Show Profile
Did you check for admins you don't know?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 26 January 2008 :  17:41:41  Show Profile  Send ruirib a Yahoo! Message
If you want to send me your code, zipped, I'll have a look at it. Do you have mods installed?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

mdelcour2000
Junior Member

United States
133 Posts

Posted - 26 January 2008 :  22:00:21  Show Profile  Visit mdelcour2000's Homepage
yes, I have a few mods installed on it, however I have disabled most of them. Here is a link to a Zip File containing Default.asp, Config.asp, inc_func_common.asp, and active.asp I don't know exactly what all you want. www.thatsmychurch.com/churchfiles.zip

http://lacledeforum.com/

"Never get so busy doing the work of the kingdom that you forget who the King is"
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 January 2008 :  06:11:59  Show Profile  Send ruirib a Yahoo! Message
What mods were those? Active.asp seems adequately protected, that shouldn't be the way in. Maybe you should just download a new 3.4.06 clean version and replace all your files by the ones in the download.

Do you have access to web server logs? I really would like to see hoe they got in.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 27 January 2008 :  06:33:40  Show Profile  Visit modifichicci's Homepage
he has private message, I see in default, so He has to apply the security fix also for that.

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 January 2008 :  07:37:34  Show Profile  Send ruirib a Yahoo! Message
I missed that, certainly because I have no login.
My advice would be to just delete all existing files and use a new Snitz download. Make sure it's a recent download, to include the active.asp patch.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

mdelcour2000
Junior Member

United States
133 Posts

Posted - 27 January 2008 :  12:48:44  Show Profile  Visit mdelcour2000's Homepage
thanks, I will do that. I appreciate everyone's help! :))

http://lacledeforum.com/

"Never get so busy doing the work of the kingdom that you forget who the King is"
Go to Top of Page
Page: of 7 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 2.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07