Forum Moderators: open

Message Too Old, No Replies

modifying session-cookies as client - revisited...

This is a reply to an older thread...

         

david28

9:51 am on Dec 2, 2003 (gmt 0)

10+ Year Member



A while back, this subject has been discussed on this forum...

The original question was how to modify cookie data on the client.

As a reply, someone asked for a "valid" reason to tamper with the cookies, and there is (this is how I found this thread): I'm currently developing a Web application that needs to be rather secure since credit card information is stored with the users of the system.

Therefore, I *need* to try to hack that application before it goes into production because if I don't, somebody else will (and since I'm the developer, I'm in charge if that happens).

And in fact, it's quite simple to tamper with the cookies: with Mozilla 1.5, they are stored in a plaintext file named "cookies.txt" that can easily be changed. However, if your application stores any relevant information encrypted on the client (ASP.NET does by default), this probably won't help any hacker - and if somebody tries, you can find that out (unless he's lucky in the first attempt).

korkus2000

2:04 pm on Dec 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would be hesitant to put any information in a cookie that could compromise the system. Eventhough .Net does encrypt the cookie info, I would not rely on it to stop hackers. Why not use SQL server to hold the information?

david28

2:23 pm on Dec 2, 2003 (gmt 0)

10+ Year Member



Obiously, the actual data is stored in the database - but for persistent sessions to work, you somehow need to link into the database (e.g. with the userID).

However, one solution to make this rather bullet-proof is asking for the login credentials again before any operations that have to do with the credit card (eBay does this extensively - which can be quite annoying, though).

korkus2000

2:28 pm on Dec 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I mean use SQL Server for session information [microsoft.com]. this will be a more secure method and avoid having users turn cookies on.

I do agree that Ebay's way is some what annoying, but it is secure. Cookies as you see are really not that secure.

BTW welcome to WebmasterWorld!