Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Perl Cookie Encryption

by saintmike (Vicar)
on Apr 08, 2004 at 22:38 UTC ( [id://343787]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Cookie Encryption
in thread Perl Cookie Encryption

An easy way would be saving the remote IP together with browser signature inside the session, and rejecting any request not matching the stored info

The client's IP often changes in between requests. If the client's ISP is using a rotating proxy (which many big ISPs do), this is so common that it renders this approach unusable.

There is no 100% secure and browser-independent way to prevent a stolen cookie being replayed by the thief, impersonating the user.

Replies are listed 'Best First'.
Re: Re: Re: Perl Cookie Encryption
by JoeJaz (Monk) on Apr 09, 2004 at 02:11 UTC
    That's good to know. Cookies certainly seem to have their share of security holes. Looks like this isn't as easy as I originally thought. Nonetheless, it is a good learning experience. Thanks for your advice. Joe
      I have casually come across this link: Basic Web Session Impersonation: a good reading, the more so if you're new to the field of securing web applications.
      Ant9000

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://343787]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-19 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found