Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

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 Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old February 12th, 2004, 09:11 PM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
What pages need to be secure?

I have a secure site and need some guidance about what pages need to be secure and what don't.


The username (if logged in) is shown on every page. So does everypage need to be secure if the user is logged on - or is it just pages with forms on them.


If it is just the form pages should I be worried about session hijacking (so the hacker can get the username). Passwords etc are not session variables - only the username and id.
Thanks


Reply With Quote
  #2  
Old February 12th, 2004, 09:44 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: What pages need to be secure?

Generally, I only use secure pages where sensitive information like monetary transactions take place, such as a shopping cart checkout. Up until the time of the checkout, I wont secure it, and have never had "session hijacking" to be a major problem.

Reply With Quote
  #3  
Old February 13th, 2004, 12:19 AM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
RE: What pages need to be secure?

Does anyone else have any input on this?

Reply With Quote
  #4  
Old February 13th, 2004, 05:39 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10700 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 46 m 44 sec
Reputation Power: 4
RE: What pages need to be secure?

I think you only need some pages to be secure. For example the page that contains the login form doesn't need to be secure, but the page that does the actual login does. Generally, I would make the pages that handle forms secure, perhaps some others too if there really is need to do it.

Reply With Quote
  #5  
Old February 14th, 2004, 10:36 AM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
RE: What pages need to be secure?

Why doesnt the login form need to be secure. Wont the password be sent unencrypted then? So I shouldnt worry about a hacker getting the username and userid and should just make the sensitive info secure?

Thanks

Reply With Quote
  #6  
Old February 14th, 2004, 11:30 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10700 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 46 m 44 sec
Reputation Power: 4
RE: What pages need to be secure?

When the user comes to the form, there is no sensitive data moving. But when the form is sent, the username and password are sensitive. That's why the there should be action="https://blablabla/bla.php" in the form tag, but the form itself doesn't be on a secured page.

Another thing is how you use sessions. Should you store the username and password, or make it more secure and save only a randomly generated ID that makes the system recognize the user and computer. What I mean is, that you save a session id to the database's users table, and check that from the session variable. I think it might be more secure that way (not completely sure though.)

Reply With Quote
  #7  
Old February 15th, 2004, 11:58 PM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
RE: What pages need to be secure?

Okay. I've got that. Thanks.

I'll move the login and register form off the secure area. And just have the processing and other relevant pages on secure pages.

Thanks for your input

Reply With Quote
  #8  
Old February 17th, 2004, 03:10 AM
tchala tchala is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Manchester, UK
Posts: 59 tchala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: What pages need to be secure?

One little thing to add to this...

Sending _anything_ over https creates a heavy strain on the processor of the server - html is small but images can be big

A solution sometimes used is to have the actual pages you want secure on https and stuff like images on http

There is a small problem with this though (I'm sure you've seen it a few times)

If the browser detects mixed https and http it warns the user that certain parts of this page are insecure

The way around this is to use frames so, for example, only your forms and any images there are https while the rest of the site is normal http

Bit more complex to set up but not hugely so and where you need to update two or more frames at the same time a little bit of very simple JavaScript works perfectly

Reply With Quote
  #9  
Old February 17th, 2004, 03:12 AM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 2
RE: What pages need to be secure?

That's exactly why I asked the question in the first place. When the user is logged in the site slows to a crawl. It's just too slow. Thanks for the input

Reply With Quote
  #10  
Old February 17th, 2004, 03:31 AM
tchala tchala is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Manchester, UK
Posts: 59 tchala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: What pages need to be secure?

Well, now you both know why it happens and the solutions

Hope it helped

Reply With Quote
  #11  
Old February 17th, 2004, 04:33 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: RE: What pages need to be secure?

Quote:
Sending _anything_ over https creates a heavy strain on the processor of the server - html is small but images can be big


I wouldnt say HEAVY...a slightly elevated processor load perhaps, but not heavy. Any secure tunnel service will increase your overhead a little because of extra packet headers it has to process. All sites that I have seen, who use secure pages do just fine.
Quote:
A solution sometimes used is to have the actual pages you want secure on https and stuff like images on http

There is a small problem with this though (I'm sure you've seen it a few times)

If the browser detects mixed https and http it warns the user that certain parts of this page are insecure

Modern day browsers will ask before they display non secure items. It isnt as much of a problem as it used to be.

Frames are a little bit of an outdated solution to this problem.....I look at a page with frames and I think gawdy. Web designers will take curb appeal over server load anyday. Although I do not like to argue this point, because I dont whole heartedly agree, some people will argue that javascript is turned off in some browsers and your site will not work if it is dependant on it.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > What pages need to be secure?


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway