|
|||||||||||
|
RE: How to protect against cookie stealing?
From: .:[ Death Star]:. <deathstar(at)optonline.net>
Date: Thu Jul 24 2003 - 13:13:59 EDT Another solution is to create a script that will place an object on the user machine this will allow your server not only to check the ip (user gateway or proxy) but also the MAC and the local IP associated with it (could be the local IP of the user) and this info will also be associated with the gateway IP (public IP of the user).
-----Original Message-----
Well, there are only a limited number of things that one can do.
The objective is to detect a change when a request is made. What
information
What else? Here is a sample request: POST http://localhost:8080/WebGoat/attack HTTP/1.0 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* Referer: http://localhost:8080/WebGoat/attack Accept-Language: en-za Content-Type: application/x-www-form-urlencoded Proxy-Connection: Keep-Alive User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Host: localhost:8080 Content-Length: 0 Pragma: no-cache Cookie: JSESSIONID=5971DC264B764275ED682A353BD3D44C
I would be inclined to make up a validation string comprised of a hash
of
One could also check against the source IP as a precaution, and at least
flag sessions where the source IP changes as potentially being
compromised.
One flaw with this scheme, though: If the attacker manages to execute
some
Bang goes that theory. :-( That brings us back to source IP and SSL sessionid.
IIRC, proxies are supposed to add an X-Forwarded-for header to the
request
One could, over time, build up a list of IP addresses of known proxies,
and
Which leaves SSL sessionid. I'm not sure how reliable that is, and it doesn't help non secure sites. Which I think explains why no-one has done anything about this problem! :-) Rogan Important Notice: This email is subject to important restrictions, qualifications and disclaimers ("the Disclaimer") that must be accessed and read by clicking here or by copying and pasting the following address into your Internet browser's address bar: http://www.Deloitte.co.za/Disc.htm. The Disclaimer is deemed to form part of the content of this email in terms of Section 11 of the Electronic Communications and Transactions Act, 25 of 2002. If you cannot access the Disclaimer, please obtain a copy thereof from us by sending an email to ClientServiceCentre@Deloitte.co.za. Received on Thu Jul 24 16:11:51 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:54 EDT |
||||||||||
|
|||||||||||