954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

cookie spoofing

Is it easy or even possible for a user to create a cookie on his own and use it on a site that uses authentication with cookies?

Dominick
Light Poster
38 posts since Jan 2004
Reputation Points: 11
Solved Threads: 0
 

Generally, the authentication Info is hashed within the cookie so in order to make a cookie you would need the password amongst other things for the account which generated it. Generally attacks using cookies are executed by using stolen cookies.

Redshift
Junior Poster in Training
61 posts since Jan 2004
Reputation Points: 11
Solved Threads: 0
 

easy enough. thanks for the quick reply

Dominick
Light Poster
38 posts since Jan 2004
Reputation Points: 11
Solved Threads: 0
 

It depends on the poorly written code, but it is quite possible to spoof cookies and even steal them remotely using xss

floris
Junior Poster
162 posts since Jan 2004
Reputation Points: 115
Solved Threads: 2
 
Generally, the authentication Info is hashed within the cookie so in order to make a cookie you would need the password amongst other things for the account which generated it. Generally attacks using cookies are executed by using stolen cookies.

Ok, supposing I have all the cookies I need for cookie authentication, and I'm trying to run some php scripts on one site that will read in other php-generated pages. The problem I'm getting is that the site I'm grabbing from is not recognizing their own cookies or something. I have the required cookies set on my computer for that site, and I have identical ones set on the site I'm trying to run my script on. Do I have to be trying to do this from a server, or at least a computer than can run php?

Ideas?

sowiebinich
Newbie Poster
1 post since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Are you using curl? You really should have started a new topic in the PHP forum.

DanceInstructor
Posting Whiz
368 posts since Feb 2005
Reputation Points: 17
Solved Threads: 14
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You