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 (Open)
 V3.3(.03) BUG: pop_printer_friendly.asp
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

tangoc9999
Junior Member

USA
158 Posts

Posted - 27 April 2002 :  14:07:08  Show Profile  Visit tangoc9999's Homepage  Send tangoc9999 an AOL message  Send tangoc9999 an ICQ Message  Send tangoc9999 a Yahoo! Message
pop_printer_friendly.asp can be backdoored and used to read private and hidden forums by by non members and and regular members alike. all tht is needed is the topic id.

TANGO

Computers run on smoke, when the smoke comes out, they quit running!

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 27 April 2002 :  19:09:37  Show Profile
you can download a fixed copy of pop_printer_friendly.asp here:

http://forum.snitz.com/download/bugfix/pop_printer_friendly.zip

After downloading it, just upload it to your host, overwriting your current one.
Go to Top of Page

tangoc9999
Junior Member

USA
158 Posts

Posted - 27 April 2002 :  20:24:39  Show Profile  Visit tangoc9999's Homepage  Send tangoc9999 an AOL message  Send tangoc9999 an ICQ Message  Send tangoc9999 a Yahoo! Message
works well, thank you Richard.

TANGO

Computers run on smoke, when the smoke comes out, they quit running!

Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 27 April 2002 :  20:56:36  Show Profile
In case somebody is using v4b03.x (which is functionally compatible with v3.3.03) in production environment, a quick fix is released for v4b03.

Patch004 is updated. If you applied it before, just re-apply it. Patches are here: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=16673



Think Pink
==> Start Internationalization Here
Go to Top of Page

Kenno
Average Member

Cambodia
846 Posts

Posted - 28 April 2002 :  19:21:20  Show Profile  Visit Kenno's Homepage
I have replaced the old file with the new one, I find another problem. Everythig is okay, except when I do the "printer friendly" on achived topic. The printer friendly is working here, but not at my forum. This is the message I've got:

"There has been a problem!

Either the Topic was not found or you are not authorized to view it".

Has anyone had the same problems?



Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 28 April 2002 :  22:27:22  Show Profile
you also need to change the following in topic.asp:

in sub PostingOptions around line #698 find this (this link appears twice on the same line, you need to change both of them):

<a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC_ID=<% =Topic_ID %>')">


and change it to this:

<a href="JavaScript:openWindow5('pop_printer_friendly.asp?<% =ArchiveLink %>TOPIC_ID=<% =Topic_ID %>')">
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 28 April 2002 :  22:39:34  Show Profile  Visit Aaron S.'s Homepage
The bug fix also incorporates another bug fix:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=23304

Adding the change to PostingOptions should fix this.

--Aaron

MySubs Email MOD
MOD to Smile Mgr
HotKeys MOD
Go to Top of Page

Kenno
Average Member

Cambodia
846 Posts

Posted - 29 April 2002 :  14:29:37  Show Profile  Visit Kenno's Homepage
quote:

you also need to change the following in topic.asp:

in sub PostingOptions around line #698 find this (this link appears twice on the same line, you need to change both of them):

<a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC_ID=<% =Topic_ID %>')">


and change it to this:

<a href="JavaScript:openWindow5('pop_printer_friendly.asp?<% =ArchiveLink %>TOPIC_ID=<% =Topic_ID %>')">




Richard,

Very weird, in the topic.asp, <% =AchiveLink %> doesn't pass any value to it. I think I might have accidentally removed something from it. So when I add the code you suggested above, it still did not work.

I'll take a look at it more. :-(

Kenno

Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 29 April 2002 :  14:40:33  Show Profile  Visit Aaron S.'s Homepage
I think it should be:

<a href="JavaScript:openWindow5('pop_printer_friendly.asp?ARCHIVE=true&TOPIC_ID=<% =Topic_ID %>')">

--Aaron




MySubs Email MOD
MOD to Smile Mgr
HotKeys MOD
Go to Top of Page

groul
Starting Member

11 Posts

Posted - 29 April 2002 :  20:32:16  Show Profile  Visit groul's Homepage
SO which one is the final version [i'm talking about the changes in topic.asp]?

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 29 April 2002 :  22:08:02  Show Profile
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=27011#126661
Go to Top of Page

tangoc9999
Junior Member

USA
158 Posts

Posted - 01 May 2002 :  15:03:24  Show Profile  Visit tangoc9999's Homepage  Send tangoc9999 an AOL message  Send tangoc9999 an ICQ Message  Send tangoc9999 a Yahoo! Message
fyi, i tried the code snippet that richard recommended still caused the case that kenno described. i tried aarons snippet and all is well. the only difference that i can think of is that i am running a highly modified version of davios anonymous access mod. i remember tweaking something awhile ago in search.asp which might have made the difference. just my experiences folks.

TANGO

Computers run on smoke, when the smoke comes out, they quit running!

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 01 May 2002 :  19:32:34  Show Profile
but what happens when you click on the link when the topic is not in the archive?
Go to Top of Page

tangoc9999
Junior Member

USA
158 Posts

Posted - 01 May 2002 :  22:39:19  Show Profile  Visit tangoc9999's Homepage  Send tangoc9999 an AOL message  Send tangoc9999 an ICQ Message  Send tangoc9999 a Yahoo! Message
i guess i should have rechecked that. it shows the error kenno stated.

TANGO

Computers run on smoke, when the smoke comes out, they quit running!

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 01 May 2002 :  23:48:19  Show Profile
Does your topic.asp have the following near the top of it?

if request("ARCHIVE") = "true" then
strActivePrefix = strTablePrefix & "A_"
ArchiveView = "true"
ArchiveLink = "ARCHIVE=true&"
else
strActivePrefix = strTablePrefix
ArchiveView = ""
ArchiveLink = ""
end if
Go to Top of Page

dssww
Junior Member

USA
182 Posts

Posted - 02 May 2002 :  07:17:06  Show Profile  Visit dssww's Homepage
There are 2 instances of the above IF statement, the second one does not have ArchiveLink =

If you add it it works fine.

Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
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 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07