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)
 "Vietbacschool" hacker at it again
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

the agony booth
Starting Member

19 Posts

Posted - 11 December 2007 :  16:42:23  Show Profile
Looks like the same guys behind the "vietbacshool" hacks are at it again. This time someone has registered with the id "vietnam1" (the hacker who made himself an admin last week used the id "vietnam").

I'm unable to delete this user, because they've done something to break active.asp.

You can see it for yourself here:

http://www.agonybooth.com/forum/members.asp?mode=search&M_NAME=vietnam&initial=1

If the error doesn't show up for you on the page, here's what I see:

Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: "Le"]'

/forum/inc_func_common.asp, line 826


Any ideas on how to fix this one?


http://www.agonybooth.com/

the agony booth
Starting Member

19 Posts

Posted - 11 December 2007 :  16:46:04  Show Profile
Sorry, I meant members.asp, not active.asp. The line in question is in the chkDate function:


case "mmmdy"
	chkDate = Monthname(Mid(fDate,5,2),0) & " " & _
	Mid(fDate,7,2) & " " & _
	Mid(fDate,1,4)


http://www.agonybooth.com/
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 December 2007 :  16:51:30  Show Profile  Send ruirib a Yahoo! Message
Members.asp should not break with that. It certainly does not with 3.4.06.


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

phy1729
Average Member

USA
589 Posts

Posted - 11 December 2007 :  16:55:46  Show Profile
Looks like the date is the wrong form. Can you check the db?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 December 2007 :  16:56:34  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by phy1729

Looks like the date is the wrong form. Can you check the db?


The date should have 'M_LEVEL=3' or similar.


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

the agony booth
Starting Member

19 Posts

Posted - 11 December 2007 :  16:58:56  Show Profile
I checked the database; Somehow they were able to insert the value ',M_Level='3 into the M_LASTHEREDATE column.

It looks like an injection attack. I'm using 3.4.04, but I already went through and manually applied all the security fixes listed in the Security Related Bug Fixes forum.


http://www.agonybooth.com/
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 December 2007 :  17:05:15  Show Profile  Send ruirib a Yahoo! Message
That's the result of the hack attempt. Just change that to something else. I've seen that in 3.4.05 forums and it didn't break members.asp.

I can change the code in the fix to just accept numbers, but I haven't seen it break anything.



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

the agony booth
Starting Member

19 Posts

Posted - 11 December 2007 :  17:15:54  Show Profile
Thanks for the quick response. I see that it's just someone trying to use the same hack attempt that was already patched. Well, here's my quick attempt to try to fix the problem.

In inc_func_common.asp (my changes are in red):

function UpdateLastHereDate(fTime,UserName)
	If Not IsNumeric(fTime) Then Exit Function
	'## Forum_SQL - Do DB Update
	strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
	strSql = strSql & " SET M_LASTHEREDATE = '" & fTime & "'"
	strSql = strSql & ",    M_LAST_IP = '" & Request.ServerVariables("REMOTE_ADDR") & "'"
	strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & ChkString(UserName, "SQLString") & "' "
	my_conn.Execute (strSql),,adCmdText + adExecuteNoRecords
end function


And of course the data in M_LASTHEREDATE will have to be fixed. I'll just set it to NULL, and hopefully that doesn't break anything.



http://www.agonybooth.com/
Go to Top of Page
  Previous Topic Topic Next Topic  
 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 0.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07