Cross domain IFrame not able to access cookie from parent domain.
Categories
(Core :: Networking: Cookies, defect)
Tracking
()
People
(Reporter: vinayakdewangan104, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Steps to reproduce:
Parent Website : www.localhost:8080, We have the login mechanism there we are storing User Details with Expiration time in session cookie. Any action checks for User Details from Session Cookie.
Cross Domain IFrame : www.localhost:8085, Here we have html and While performing any type of action, We check the parent domain session cookie for user details but getting parent cookie value as Undefined/Null.
Actual results:
Due to which we get logged out from parent website as we have session checks for user detils.
Note: This is working fine in Google Chrome (Version 87) and Mircosoft Edge (Version 87).
Expected results:
I should not get logged out. OR In otherwords parent domain cookie should able to access from cross domain IFrame.
(In reply to Vinayak from comment #0)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Steps to reproduce:
Parent Website : www.localhost:8080, We have login mechanism where we are storing User Details with Expiration time in session cookie. A User is validated agianst a Session Cookie before performing any action.
Cross Domain IFrame : www.localhost:8085, Here we have html and While performing any type of action, We check the parent domain session cookie for user details but getting parent cookie value as Undefined/Null.
Actual results:
Due to which we get logged out from parent website as we have session checks for user detils.
Note: This is working fine in Google Chrome (Version 87) and Mircosoft Edge (Version 87).
Expected results:
It should be able access parent domin session cookie from cross domian IFrame.
Comment 2•5 years ago
|
||
Why does this need to be hidden as a security issue? Lack of access to cookies fails closed, right? (ie actions will not be allowed when they should be allowed, rather than the other way around)
Can you provide a testcase?
I have wrongly put security as bug type, I will update.
Yes, Failed to access parent cookie.
Steps to reproduce:
Parent Website : www.localhost:8080, We have login mechanism where we are storing User Details with Expiration time in session cookie. A User is validated agianst a Session Cookie before performing any action.
Cross Domain IFrame : www.localhost:8085, Here we have html and While performing any type of action, We check the parent domain session cookie for user details but getting parent cookie value as Undefined/Null.
Comment 4•5 years ago
|
||
(In reply to Vinayak from comment #3)
Steps to reproduce:
These aren't complete steps - can you link to a live testcase, or attach a zipfile or similar with a minimal case that reproduces the problem you're seeing?
Comment 7•4 years ago
|
||
No test case has been provided.
Description
•