Codeigniter4's Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued
Low severity
GitHub Reviewed
Published
Oct 6, 2022
in
codeigniter4/CodeIgniter4
•
Updated Jul 12, 2023
Description
Published to the GitHub Advisory Database
Oct 6, 2022
Reviewed
Oct 6, 2022
Published by the National Vulnerability Database
Oct 6, 2022
Last updated
Jul 12, 2023
Impact
Setting
$secure
or$httponly
value totrue
inConfig\Cookie
is not reflected inset_cookie()
orResponse::setCookie()
.The following code does not issue a cookie with the secure flag even if you set
$secure = true
inConfig\Cookie
.Patches
Upgrade to v4.2.7 or later.
Workarounds
References
For more information
If you have any questions or comments about this advisory:
References