Open mdevrees opened 2 weeks ago
Hi @mdevrees. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @mdevrees,
Thanks for the report and collaboration!
We have tried to reproduce the issue in the 2.4-develop branch and we have observed that the mage-messages
cookie not secure. But it seems it is working as expected.
Please go through the documentation related to it:
And let us know the use case where you need this cookie should be secure.
Thanks
Hi @engcom-Hotel
Seeing the compliance cookie law regarding mage-messages, then yes, you are correct in it not being (or having to be) secure. The cookie not being secure was a point of action coming from a security scan. In order to comply with that, I added the change mentioned in the Steps to Reproduce in the description of this ticket.
Thank you, @mdevrees, for your response!
Given that this issue has been flagged in your security scan, it's possible that others may encounter it too. Therefore, we'll proceed by treating this as a "feature request."
Appreciate it!
Preconditions and environment
Steps to reproduce
\Magento\Theme\Controller\Result\MessagePlugin::setCookie
themage-messages
cookie is createdsetCookie
method the$publicCookieMetadata->setSecure($this->sessionConfig->getCookieSecure());
is not set / missing and apparently not marking the mage-messages as secure. If I addsetSecure
the mage-messages cookie is marked secure:Expected result
I expected the mage-messages cookie to be also set as secure.
Actual result
The
mage-messages
cookie isn't marked as secure.Additional information
I've tried searching for this specific issue in the github issue tracker but could not find any.
Release note
No response
Triage and priority