Antivirus Protection
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationAntivirus Protection

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 10th, 2003, 05:51 PM
summercom's Avatar
summercom summercom is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Michigan, USA
Posts: 278 summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 11 h 4 m
Reputation Power: 16
Session ID Hijackin

i've spent probably about the last 3 hours reading that topic on security and I am kind of confused. when using sessions and you have that option in the php config enabled to automatically add the session id to the url, is it possible to then use this same session on another computer by simply typing it in in the address bar, or is it more complex than that to hijack it?

Reply With Quote
  #2  
Old April 10th, 2003, 05:53 PM
driskel driskel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Minneapolis, MN
Posts: 35 driskel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
without any additional security measures, the answer can be yes.

Reply With Quote
  #3  
Old April 10th, 2003, 05:59 PM
summercom's Avatar
summercom summercom is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Michigan, USA
Posts: 278 summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level)summercom User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 11 h 4 m
Reputation Power: 16
is the session id in the url already encrypted and if it isnt can it be? and what further measures can be used?

Reply With Quote
  #4  
Old April 10th, 2003, 06:30 PM
GNUbie's Avatar
GNUbie GNUbie is offline
Throws Rocks
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Cincinnati, Ohio
Posts: 392 GNUbie User rank is Corporal (100 - 500 Reputation Level)GNUbie User rank is Corporal (100 - 500 Reputation Level)GNUbie User rank is Corporal (100 - 500 Reputation Level)GNUbie User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 6 h 31 m 7 sec
Reputation Power: 13
Now you're getting into key management issues
__________________
Two things have come out of Berkeley, Unix and LSD.
It is uncertain which caused the other.

Reply With Quote
  #5  
Old April 10th, 2003, 06:30 PM
driskel driskel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Minneapolis, MN
Posts: 35 driskel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
Quote:
Originally posted by summercom
is the session id in the url already encrypted and if it isnt can it be? and what further measures can be used?


the session id relates to a record on the server. The is no encrypt/decrypt happening between the client and server. For instance on a unix server there would be file in the /tmp (depends on config of php) directory named what ever the session id is and it contains all the session vars that have been assigned.

PHP sessions handler can do garbage collection on expired sessions. I store my sessions in a DB and cleanup on expired sessions via my own rules.

The approach I take toward security depends on the task or tasks at hand. Is this a general question or do you have a problem that you trying to solve.

This is one example and is definitely not the be all in security, it is just one small example.

If you use cookies first the session id will not be in the url string.
Second set a cookie on session start of some value that is unique to that user and validate that as well on each page.

Just an idea to get you thinking.

Reply With Quote
  #6  
Old April 10th, 2003, 07:08 PM
driskel driskel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Minneapolis, MN
Posts: 35 driskel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
yup!

Quote:
Originally posted by GNUbie
Now you're getting into key management issues

Reply With Quote
  #7  
Old April 10th, 2003, 08:48 PM
colpaarm's Avatar
colpaarm colpaarm is offline
300lb Bench!
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2001
Location: New York
Posts: 2,343 colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level)colpaarm User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 10 h 50 m 4 sec
Reputation Power: 60
Unless you're encrypting your connection (via ssl) any packets sent to a web server can be sniffed. However, this is a topic that's been covered extensively. Do a search on the word "security" and you'll see what I mean.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationAntivirus Protection > Session ID Hijackin

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap