CPIP/GCF and handling cookies with the remote_host or remote_addr value encoded in it

0
No votes yet

We have just written generic CPIP connectors for most of our web based resources. Recently I have encountered a number of applications that are storing the value of the remote_host or remote_addr in the cookie and then encrypting it to help deter cookie hijacking.

This causes me a problem as the IP/HOST information presented to the remote server is my CPIP server and not the user's machine. So that when my CPIP servlet consumes the cookie and passes it on to the user prior to redirection the user does not get to use the remote site as their cookie is not valid.

Have any of you encountered this issue, if so what have you done to deal with it?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

MD5 perhaps?

This is probably outside of the scope of the GCF configuration, but using a CPIP connector (yuck) you can duplicate the method used for hashing the REMOTE_HOST / REMOTE_ADDR. For example, if its something as simple as an MD5, using Java, pull in the library, and encode the IP address of the client browser, then overwrite that to the cookie after its set, but before its passed back.

If it is some type of proprietary encryption, unless you can figure out the scheme used to generate the string, you are probably out of luck with SSO. The variable would remain set to the IP address of the Jakarta web engine, which will be the IP address of the Luminis server.

But start with MD5...

Thanks

It is proprietary I suppose. Fortunately the two systems are open source tools (pubcookie and websieve) so I have access to their code and could rework the cookie if the mail administrator would supply me his secret phrase for encrypting the cookies. However at this point if possible (although looking less and less likely) I wish to avoid doing this.