-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SameSite cookie, posible issues #26377
Comments
Hi @diazwatson. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @diazwatson do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento give me 2.4-develop instance |
Hi @okorshenko. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
Hi @okorshenko, here is your Magento instance. |
I think this is a possible duplicate of #26310 |
It is indeed @devchris79 thanks for linking both issues 👍 |
Hi @engcom-Charlie. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Charlie Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
@engcom-Charlie thanks for reviewing and testing this issue. |
Issues come across as a result of sameSite in the last 24 hours are if you do not have an active backend SSL certificate then both Chrome & Firefox will not allow you to log in to the backend admin panel rather it will simply refresh without any errors and warning. After looking further into it I think the cause of this is down to a commit made 22 days ago zendframework/zend-http@84d4615 Steps to Reproduce
Result Temporary workaround until permanent fix found |
@okorshenko @magento-engcom-team guys do you see any potential issue in production sites with this change going live next week? |
Hello @diazwatson! |
This comes in tomorrow so a fix is a pretty high priority as it will affect a lot of payment gateways thus making the checkout process impossible |
Any news on this as yet as we've got cookies failing to load from multiple sources now on 2.3.4 |
It appears this new behavior breaks Payflow Pro credit card processing: #26840 |
Also valuable to note per https://www.chromium.org/updates/same-site this SameSite functionality will not become the default behavior even on Chrome 80 until the 17th (and even then it seems it will be limited in scope). |
I guess it is due to all the issue it cause. But it will be done sooner or later so better to be prepared. |
Guys, I published quick & dirty fix module for this issue. https://github.com/Veriteworks/CookieFix We tested it against 3DS payment and worked fine. |
Has there been any progress made? We are seeing this affect customers now |
The issue is samesite cookie "LAX" when it should be set to NONE. This is likely because it is not getting set at all in magento and chrome is setting the cookie to lax by default. |
My issue is LAX, but they are set to secure. This really only should effect cross-site communication abilities in a chrome based browser, which is payflow. My customers can not checkout using a credit card if they are on a chrome based browser. This is after the latest update of 2.4.3-p1. Has anyone actually tested the fix on a production site with payflow? |
@salehawal Do you have cookie restriction mode enabled? I do not and I am wondering if maybe that needs to be enabled for the cookies to have the proper attributes assigned. |
@live4soccer7 frankly i don't know, but still working on how to resolve this, or lets say find the responsible file to edit it. |
@salehawal You can sign into your admin and check. It is a setting in the backend under general --> web --> cookies. We have opposing problems, so perhaps it could have to do with the way we each have our settings. It shouldn't really matter, but could just be the way the fix is applied and isn't fully "idiot" proof with the settings in admin. When I get some time, I'll screenshot my related settings in admin for cookies and sessions. Comparing our settings may help, if you don't mind doing so. |
@live4soccer7 there you go |
@salehawal @live4soccer7 |
@diazwatson |
My store was migrated from an M1 installation, is there anything to check for in the DB that could be affecting this? |
Don't think the DB but the source code. |
@diazwatson even though it states <2.4.2? It is not resolved in >2.4.2? MC-41359 (for Magento >=2.3.6-p1 <2.3.7, >=2.4.2 <2.4.3)-Fixes the issue of the incorrect SameSite cookie parameters settings. It does not show up in the quality patches when you run the command in CLI for 2.4.3-p1 edit: I have checked each change in the 2.4.2 patch and the files in 2.4.3-p1 all have these changes in my installation |
i also followed your link: https://github.com/magento/quality-patches/pull/47/files i get this error: GraphQL error: Could not resolve to a PullRequest with the number of 47. |
@salehawal if you're on the latest magento then the patch is already included, but there is still a problem with the cookies as shown by my screenshots. What do you have for your varnish and session settings in the admin area of magento? |
@live4soccer7 i am focusing on the cookie issue now, varnish and session has no effect on this case i guess |
@salehawal it could have an effect, which is why it doesn't hurt to check such settings. |
@salehawal, the PR on magento2 repo was #32462 |
@ihor-sviziev @diazwatson @live4soccer7 |
We've found a workaround for the cookie issue, currently it works just fine in our 2 projects. app/code/SB/Framework/etc/di.xml:
app/code/SB/Framework/Plugin/CallbackSessionChecker.php:
Hope this can help someone. |
@chickyd3v This works for the payflow pro samesite cookie issue, ie the cookie not being set to None? Has it been tested/used on the latest magento 2.4.3-p1? |
Could you report this issue separately?
Thank you!
…On Thu, 28 Oct 2021 at 18:33 live4soccer7 ***@***.***> wrote:
@chickyd3v <https://github.com/chickyd3v> This works for the payflow pro
samesite cookie issue? Has it been tested/used on the latest magento
2.4.3-p1?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26377 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOJOUNWGR6422PPVOAH3K3UJFUMDANCNFSM4KGILURQ>
.
|
@ihor-sviziev I have created a new issue here: #34472 Please let me know there if you need/want any additional information as gateway issues are tough to track down and sandbox vs production seems to be different results. |
This solution has some issues with Guest customers. |
| QPT Data Collection|borderStyle=dashed|borderColor=#cccccc|titleBGColor=#dddddd|bgColor=#e3ffea |
| --- |
|
1.0.20
MC-41359
N/A
Check compatibility
|
Preconditions (*)
On February, 4, Google is set to roll out a new Chrome update that promises a bunch of new features designed to make the browser faster and more secure — including a new approach to cookies.
The SameSite update will require website owners to explicitly state label the third-party cookies that can be used on other sites. Cookies without the proper labelling won’t work in the Chrome browser, which has 63.62% of the overall browser market, according to Statcounter.
Right now, the Chrome SameSite cookie default is: “None,” which allows third-party cookies to track users across sites. But from February, cookies will default into “SameSite=Lax,” which means cookies are only set when the domain in the URL of the browser matches the domain of the cookie — a first-party cookie.
This will not probably affect Magento itself but what about it 3rd party integrations which comes pre installed by default such as NewRelic?
Steps to reproduce (*)
SameSite by default cookies
andCookies without SameSite must be secure
Expected result (*)
Actual result (*)
Production site
Admin Panel of a Vanilla Magento 2.3-develop site
Paying with PayPal Express sandbox account
Related links
The text was updated successfully, but these errors were encountered: