Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) Full Session Protection SP1.3.x V1.1 (Read 12168 times)
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Full Session Protection SP1.3.x V1.1
Sep 28th, 2004 at 3:10pm
Print Post  
OK, I'm normally at my best when lured into something I can't stand not working Grin

Full Session Protection SP1.3.x V1.1

This upgrade comprises of the changing of the following 6 scripts:
Load.pl
LogInOut.pl
Subs.pl
Profile.pl
AdminEdit.pl
YaBBC.pl
english.lng (as I needed to add an error line)

What has been changed ?

- header routine is now compatible with latest RFC's (equal to SP2)
- Redirect subs now also pass the cookie (which old code did not)
- Cookie handling now handled by a sub routine (borrowed from SP2)
- User validity is now checked on password and IP based static session id per login session
- All forms now have a hex encrypted dynamic session id which is also based on IP, but where the seed can be any random number between 0 and 99 so each pass the form session changes.
- User password in cookie is now dynamic and changes every logged in session based on 10000 possible random seeds.
- changed template subroutine not to load news.txt for every line in the template (which was stupid)
- image tag bug fix for bmp files
- image tag cannot hold action command to YaBB.

When does it react ?
1. if a user changes IP address he gets logged out
2. if a form holds a session value not related to the IP address from the user
3. if the form has no session value (as all should have one now using some smart regexing in the template subroutine)
4. if the cookie has been tampered with (so hijacking is useless)

Please test (as far as you can tingle with IP addresses and spoofed forms) and report any irregularities.

Version History
1.0
Original Release

1.1
Restricted img tag not to allow any action commands
« Last Edit: Sep 29th, 2004 at 5:55pm by Spikecity »  

Nothing to add here Smiley
Back to top
 
IP Logged
 
mimit
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 247
Location: Buenos Aires
Joined: Jun 16th, 2003
Gender: Male
Re: Full Session Protection SP1.3.x V1.0
Reply #1 - Sep 28th, 2004 at 6:14pm
Print Post  
Nice mod  Cheesy
Thanks Ron  Wink

Just a question, it is compatyble with the encrypt password mod?
  
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: Full Session Protection SP1.3.x V1.0
Reply #2 - Sep 28th, 2004 at 6:30pm
Print Post  
mimit wrote on Sep 28th, 2004 at 6:14pm:
Nice mod  Cheesy
Thanks Ron  Wink

Just a question, it is compatyble with the encrypt password mod?

Mmmm.... don't know I only encrypt the password that is in the cookie different so definitely not.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Jazhawk
God Member
*****
Offline


I'm not always right but
I'm never wrong

Posts: 799
Location: Las Vegas
Joined: Mar 11th, 2002
Gender: Male
Re: Full Session Protection SP1.3.x V1.1
Reply #3 - Sep 29th, 2004 at 3:41pm
Print Post  
Thanks a bunch Ron.  I'll get back with you when it's loaded up.

-Jazhawk
  
Back to top
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: Full Session Protection SP1.3.x V1.1
Reply #4 - Sep 29th, 2004 at 5:50pm
Print Post  
Jazhawk wrote on Sep 29th, 2004 at 3:41pm:
Thanks a bunch Ron.  I'll get back with you when it's loaded up.

-Jazhawk

Take your time as there are certainly coming changes and additions on this mod.

We are currently discussing what should be protected and what not without restricting users too much and withour contaminating the url with large yibberish session codes.
Allthough this discussion is hidden from the normal audience (while we discuss a lot of "better not show the public" methods to hack the board in there), all the brilliant minded YaBB guru's attend, so we have Michael from here, Unknown from the SMF team, a few of the SP2 devs and YaBB staff, and me trying to think of any devious action a cracker could take to undermine the board.
Sofar I think we have covered about 80% with the current version (like all form actions and misuse of the img tag), but there are some things we need to further discuss and test.
I am convinced that after we have finished with this major security overhaul YaBB in any version would be topping the list of "difficult to hack" Grin
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Full Session Protection SP1.3.x V1.1
Reply #5 - Sep 29th, 2004 at 7:49pm
Print Post  
So once this mod is installed, those with fairly permanent connections will be much better off, as far as log-ins go, than those on dial-up.

Still, if its safer, it may well be worth it.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: Full Session Protection SP1.3.x V1.1
Reply #6 - Sep 29th, 2004 at 9:46pm
Print Post  
batchman wrote on Sep 29th, 2004 at 7:49pm:
So once this mod is installed, those with fairly permanent connections will be much better off, as far as log-ins go, than those on dial-up.

Still, if its safer, it may well be worth it.

The only thing users with changing IP addresses loose is the "stay logged in" feature, which is a small price to pay compared to what I now know hackers can do to any YaBB currently running.
Not that the holes we found are huge and obvious, but as we progress in making YaBB more secure, so do the hackers to find new loopholes to get in or damage the board.
The good thing is that it gets the best out of developers as it is a constant race "good vs bad" but the bad thing is that it is open source software so it only takes downloading the latest version and looking at the code to see how to get around it.

I still like the challenge though Grin
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
BillBSET
God Member
*****
Offline


Ignorance can be fixed,
Stupid is Forever

Posts: 698
Location: Monkey Island
Joined: Sep 19th, 2003
Gender: Male
Re: Full Session Protection SP1.3.x V1.1
Reply #7 - Oct 3rd, 2004 at 11:01pm
Print Post  
I am getting ready to install this and
I have a question...  
with the counting stuff I have been doing, I think that I see
some AOL users constantly getting a different IP from their server...
I mean while they are browsing... it sort of looks like with each click a different IP...
First, I don't know for sure that is what is happening but I think it is...  the reason I even noticed is that I had heard that this happens.   I had one that was refusing my counter cookie and getting a new IP often,,  

Even I am having trouble understanding what I am saying but anyway...
Is it possible that they are getting a new IP every click or so or
maybe something else explains it...
  


After you eliminate all of the possibilities,
whatever is left, no matter how seemingly impossible,
must be the truth.


Back to top
WWW  
IP Logged
 
Dam Yankee
God Member
*****
Offline



Posts: 1538
Location: Maryville
Joined: Jun 13th, 2003
Gender: Female
Re: Full Session Protection SP1.3.x V1.1
Reply #8 - Oct 4th, 2004 at 3:30am
Print Post  
Yes, that is exactly what happens with AOL. AOL uses proxy servers and caches pages for faster retrieval. Here is some more info:

http://webmaster.info.aol.com/proxyinfo.html
  
Back to top
WWW  
IP Logged
 
BillBSET
God Member
*****
Offline


Ignorance can be fixed,
Stupid is Forever

Posts: 698
Location: Monkey Island
Joined: Sep 19th, 2003
Gender: Male
Re: Full Session Protection SP1.3.x V1.1
Reply #9 - Oct 4th, 2004 at 6:54am
Print Post  
Thanks Dam Yankee,,,
That is Exactly what is happening...

hmmm...

Thanks!!!
  


After you eliminate all of the possibilities,
whatever is left, no matter how seemingly impossible,
must be the truth.


Back to top
WWW  
IP Logged
 
Captain_N
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 1
Location: Bismarck
Joined: Jun 6th, 2003
Re: Full Session Protection SP1.3.x V1.1
Reply #10 - Oct 13th, 2004 at 12:55am
Print Post  
Quote:
"better not show the public" methods to hack the board


...yeah. Wink

*laughs*

xodnizel, emulator author, comes to IRC channel: "I'm bored. I'm going to hack your forum."

Me: "Okay, just don't destroy any topics. Expose any bugs however you like." *sends xodnizel the URL to the hidden, temporary board*

*xodnizel plays around with board*

xodnizel: "Go here. Then there. Then reload here."

@.@

Yeah, I'm glad that most people aren't evil and that this mod has finally been written.

Thank you. ^^
  
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: Full Session Protection SP1.3.x V1.1
Reply #11 - Oct 15th, 2004 at 7:43am
Print Post  
Can anyone having this mod installed and having AOL users please report if there are any problems with AOL ?
This is crucial information to decide if the way this protection now works is the correct way or if I need to rethink about alternative manners.

Thanks,

Ron
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Dam Yankee
God Member
*****
Offline



Posts: 1538
Location: Maryville
Joined: Jun 13th, 2003
Gender: Female
Re: Full Session Protection SP1.3.x V1.1
Reply #12 - Oct 16th, 2004 at 2:47am
Print Post  
I would test this for you, but the only reason I haven't installed it is because my IP# changes frequently due to my LAN modem. I didn't want to have to keep logging in every time my IP# changed. If there's any way to disable that part of the mod (for at least admin), I'll install it. I've got a few members with AOL.
  
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: Full Session Protection SP1.3.x V1.1
Reply #13 - Oct 16th, 2004 at 12:24pm
Print Post  
Quote:
I would test this for you, but the only reason I haven't installed it is because my IP# changes frequently due to my LAN modem. I didn't want to have to keep logging in every time my IP# changed. If there's any way to disable that part of the mod (for at least admin), I'll install it. I've got a few members with AOL.


Giving admins immunity to IP sessions would be contradictoy to the protection in should provide as admin and gmod sessions are the ones most likely to be hijacked for their extra powers to get into the heart of the board.
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Dam Yankee
God Member
*****
Offline



Posts: 1538
Location: Maryville
Joined: Jun 13th, 2003
Gender: Female
Re: Full Session Protection SP1.3.x V1.1
Reply #14 - Oct 16th, 2004 at 3:02pm
Print Post  
Okay, I understand. On Monday, I'll hook my old modem back up, install the mod, and help you test it. I definitely like the idea of this mod, being the queen of paranoia that I am. lol  Wink
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint