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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 bug + fix, active.asp
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 04 December 2007 :  07:35:53  Show Profile  Send ruirib a Yahoo! Message
Active.asp has a security related bug fix. Where now you have lines# 123-130:

if Request.Form("AllRead") = "Y" then
	'## The redundant line below is necessary, don't delete it.
	Session(strCookieURL & "last_here_date") = Request.Form("BuildTime")
	Session(strCookieURL & "last_here_date") = Request.Form("BuildTime")
	lastDate = Session(strCookieURL & "last_here_date")
	UpdateLastHereDate Request.Form("BuildTime"),strDBNTUserName
	ActiveSince = ""
end if

Replace it by

if Request.Form("AllRead") = "Y" then
	lastDate = ChkString(Request.Form("BuildTime"),"SQLString")

       '## The redundant line below is necessary, don't delete it.
	session(strCookieURL & "last_here_date") = lastDate
	Session(strCookieURL & "last_here_date") = lastDate
        UpdateLastHereDate lastDate,strDBNTUserName
	ActiveSince = ""
end if
<


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - AnonJr on 17 March 2009 19:15:42

borge
Junior Member

Norway
185 Posts

Posted - 04 December 2007 :  11:41:12  Show Profile
The new fix i slightly different from the Dec. 1 version, some lines have been moved, is that of any importance?<

borge
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 04 December 2007 :  12:33:04  Show Profile  Send ruirib a Yahoo! Message
The only unimportant line here is the commented one. All the other lines should appear in the order they appear now, which is the order in which they appeared in an update to the original fix, posted a bit afterwards.<


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

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 04 December 2007 :  22:38:08  Show Profile
Fixed in 3.4.07.<

Support Snitz Forums
Go to Top of Page

TastyNutz
Junior Member

USA
251 Posts

Posted - 05 December 2007 :  09:51:13  Show Profile  Visit TastyNutz's Homepage
This exploit also effects anyone using the "Unanswered Topics" MOD by OneWayMule. In which case, the above changes should also be made to unanswered.asp.<


PowerQuad Disability Support Forum
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 05 December 2007 :  11:08:42  Show Profile  Visit AnonJr's Homepage
Good catch. It probably effects any MODs based on the active.asp page.<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 05 December 2007 :  11:34:26  Show Profile  Visit modifichicci's Homepage
also most recent topics and an include of image forum, privatemess.asp need such change.<

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

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 05 December 2007 :  11:36:32  Show Profile
To avoid confusion, can somebody start a new topic detailing the list of mods that need this fix along with the exact changes required?

<

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 05 December 2007 :  12:07:48  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
What about all the other versions of Snitz? i.e. Image, Speedball, etc.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 05 December 2007 :  12:25:35  Show Profile  Visit HuwR's Homepage
we are only concerned with the base Snitz code, maintaining MODS and other versions of Snitz is not our responsibility<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 December 2007 :  17:18:32  Show Profile  Send ruirib a Yahoo! Message
We can probably be a bit more restrictive with the fix and test for a number, which the lastDate needs to be, to avoid an attempted hack to result in setting a bad M_LASTHEREDATE value. So, the fix can be:

Where now you have lines# 123-130:

if Request.Form("AllRead") = "Y" then
	'## The redundant line below is necessary, don't delete it.
	Session(strCookieURL & "last_here_date") = Request.Form("BuildTime")
	Session(strCookieURL & "last_here_date") = Request.Form("BuildTime")
	lastDate = Session(strCookieURL & "last_here_date")
	UpdateLastHereDate Request.Form("BuildTime"),strDBNTUserName
	ActiveSince = ""
end if

Replace it by

if Request.Form("AllRead") = "Y" then
	lastDate = Request.Form("BuildTime")

        If (Not IsNumeric(lastDate)) or (lastDate = "") then 
           lastDate = DateToStr(strForumTimeAdjust)
        End If

       '## The redundant line below is necessary, don't delete it.
	session(strCookieURL & "last_here_date") = lastDate
	Session(strCookieURL & "last_here_date") = lastDate
        UpdateLastHereDate lastDate,strDBNTUserName
	ActiveSince = ""
end if
<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07