» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > PHP Programming and Tips

PHP Programming and Tips Discuss about PHP programming and Share Tips. Ask questions about Scripting and Errors.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2006, 01:32 PM
webspider webspider is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
webspider is on a distinguished road
Default PHP session hacking

Before anyone complains this is purely for testing a new script I have developed to see if there are any obvious holes in it. You hear a lot about session hacking so I thought it was something worth learning more about.

I have developed a script for a login area to a simple CMS and I want to know how hackers get in and exploit sessions so that I know where I should be looking for holes. I'm not expecting anyone to post hacking code here, just pointers to what I should look out for.

Basically I'm using a form to post user and password to a session script that starts the session and starts a timer. Every time the user navigates inside the admin area the timer is reset but will log the person out if they are inactive for 20mins. Is this the right approach and have I missed anything obvious.

Thanks in advance for your time. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-23-2006, 01:34 PM
aventis aventis is offline
Junior Member
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
aventis is on a distinguished road
Thumbs up

PhpSec.org has a good security guide about php sessions.

link: phpsec.org/projects/guide/4.html -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 08-23-2006, 01:36 PM
looney looney is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
looney is on a distinguished road
Default

Try this out

store you sessions in database

mysql has a memory table type, its even faster than storing sessions in /tmp on the disk

you can also do fancy things like number of users online

and its secure

Warm regards -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #4  
Old 08-23-2006, 01:39 PM
kirstan kirstan is offline
Junior Member
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kirstan is on a distinguished road
Thumbs up

Quote:
Originally Posted by aventis
PhpSec.org has a good security guide about php sessions.

link: phpsec.org/projects/guide/4.html

Great link mate, was looking for something like that for a long time, thanks a lot. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
session variable overwriting euhoria PHP Programming and Tips 2 08-22-2006 01:01 PM
Is PHP loosing out to .NET? garcia PHP Programming and Tips 1 08-10-2006 01:44 PM
Security Safe PHP Session Setup waugh PHP Programming and Tips 2 08-03-2006 05:03 PM
Getting MySQL & PHP to communicate JCH MySQL Forums 0 05-29-2006 01:52 PM
stop indexing PHP SESSION IDs danielle Yahoo 4 03-26-2006 05:34 AM


All times are GMT. The time now is 02:25 PM.