Leave a Comment:
7 comments
[…] check the post for the code you need to embed in protected application to fetch cookie and security loopholes of […]
ReplyHi Mahendra,
One scenario I would like to cover here is if a hacker is siting in the same network from where he has access to the target application which is protected by OAM, and if your target app is accepting cookie without any validation i.e which server is sending the cookie. In that case this is a security breach and a hacker can easily get access to the target app with the username he wishes to access.
My ten cents.
Cheers,
Shilu
Hi Shilu,
Yes, you may be right in one sense. I have clearly mentioned that there is a loophole by fetching userid from Cookie. Instead you can use Basic Over LDAP Authentication scheme. You may also try with certificate based authentication scheme as well.
Even securing the cookie contents by encryption is not an option here. So you can use Basic Over LDAP in that case.
Again, you have to decide with your Security Architect for handling such vulnerable case.
-Mahendra.
ReplyAny idea why the cookie would not be passed correctly from an Oracle OHS Server to Weblogic? When I use it in thei mabber, the JSP page on Weblogic does not get the correct value from the cookie unless I refresh the jsp after the redirect.
Replytcraffa,
What is imabber? Is there any specific reason why you are passing cookie instead of header variable?
-Mahendra
ReplyI am using a cookie because of your earlier post about header variable not being passed in IE when you have multiple redirects. I am using Form-based authentication. The form and the java app are on the same weblogic server, but for some reason the cookie value is null when the java app reads it the first time. Once I refresh the page, the cookie is retrieved correctly. I think it is being set correctly. There is just something odd about how it is retrieved the first time.
Replytcraffa,
As you mentioned – “Once I refresh the page, the cookie is retrieved correctly. I think it is being set correctly.”
we are facing same issue in our setup.Were you able to figure out the issue?
Thanks.
Reply