S
sameergn
Hi,
Our site is using URL rewriting for session tracking. As an added
security (although not fool-proof) we also check referer to be our own
site. All the links are currently http and we are planning to
introduce few https links.
Browser (correctly) does not send referer header when user clicks on
http URL from an https page and this is breaking our referer check. If
we remove referer check, then session hijacking becomes very easy as
URLs can be frequently passed in emails etc.
We are thinking of adding IP address check when URL is submitted back,
to make sure that it is coming from same IP, but it is not reliable as
IP can change frequently. (E.g when user moves from a wired to
wireless connection)
What would be a good security mechanism if we remove referer check and
still keep using URL-rewriting? I guess, cookie based sessions are
also vulnerable to session hijacking but it is more difficult to steal
cookie. (Since it is not easily visible in URL, only option is to
sniff the network, guess the cookie value, or steal it from user's
computer)
Thanks,
Sameer
Our site is using URL rewriting for session tracking. As an added
security (although not fool-proof) we also check referer to be our own
site. All the links are currently http and we are planning to
introduce few https links.
Browser (correctly) does not send referer header when user clicks on
http URL from an https page and this is breaking our referer check. If
we remove referer check, then session hijacking becomes very easy as
URLs can be frequently passed in emails etc.
We are thinking of adding IP address check when URL is submitted back,
to make sure that it is coming from same IP, but it is not reliable as
IP can change frequently. (E.g when user moves from a wired to
wireless connection)
What would be a good security mechanism if we remove referer check and
still keep using URL-rewriting? I guess, cookie based sessions are
also vulnerable to session hijacking but it is more difficult to steal
cookie. (Since it is not easily visible in URL, only option is to
sniff the network, guess the cookie value, or steal it from user's
computer)
Thanks,
Sameer