CVE-2022-39284
LOW2.6EPSS 0.49%Codeigniter4's Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued
發布日:2022/10/6修改日:2024/3/6
描述
CodeIgniter is a PHP full-stack web framework. In versions prior to 4.2.7 setting `$secure` or `$httponly` value to `true` in `Config\Cookie` is not reflected in `set_cookie()` or `Response::setCookie()`. As a result cookie values are erroneously exposed to scripts. It should be noted that this vulnerability does not affect session cookies. Users are advised to upgrade to v4.2.7 or later. Users unable to upgrade are advised to manually construct their cookies either by setting the options in code or by constructing Cookie objects. Examples of each workaround are available in the linked GHSA.
受影響套件(2)
- Bitnami/codeigniter>= 4.0.0, < 4.2.7
- Packagist/codeigniter4/frameworkfrom 0, < 4.2.7
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | LOW2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N |
參考連結(9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-39284
- PATCHhttps://github.com/codeigniter4/CodeIgniter4
- WEBhttps://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie
- WEBhttps://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgniter%5CHTTP%5CResponse::setCookie
- WEBhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies
- WEBhttps://github.com/codeigniter4/CodeIgniter4/issues/6540
- WEBhttps://github.com/codeigniter4/CodeIgniter4/pull/6544
- WEBhttps://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvp
- WEBhttps://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-39284.yaml