深刻度 低
Codeigniter4's Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued
codeigniter4/framework(ライブラリ)の脆弱性です。深刻度は「低」、CVSS は 2.6です。修正版は 4.2.7 です。
- 対象
- codeigniter4/framework(ライブラリ)
- CVE 番号
- CVE-2022-39284
- 深刻度
- 低CVSS 2.6CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N
- 影響を受けるバージョン
- 4.2.7 未満
- 修正版
- 4.2.7
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
### Impact Setting `$secure` or `$httponly` value to `true` in `Config\Cookie` is not reflected in `set_cookie()` or `Response::setCookie()`. > **Note** > This vulnerability does not affect session cookies. The following code does not issue a cookie with the secure flag even if you set `$secure = t…(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
codeigniter4/framework を、修正版の 4.2.7 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvp(新しいタブで開きます)
- https://nvd.nist.gov/vuln/detail/CVE-2022-39284(新しいタブで開きます)
- https://github.com/codeigniter4/CodeIgniter4/issues/6540(新しいタブで開きます)
- https://github.com/codeigniter4/CodeIgniter4/pull/6544(新しいタブで開きます)
- https://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie(新しいタブで開きます)
- https://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgniter%5CHTTP%5CResponse::setCookie(新しいタブで開きます)
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies(新しいタブで開きます)
- https://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-39284.yaml(新しいタブで開きます)
- https://github.com/codeigniter4/CodeIgniter4(新しいタブで開きます)
codeigniter4/framework のほかの脆弱性
- CodeIgniter4 vulnerable to information disclosure when detailed error report is displayed in production environment
- CodeIgniter4 Potential Session Handlers Vulnerability
- CodeIgniter4 allows spoofing of IP address when using proxy
- CodeIgniter Improper Privilege Management
- CodeIgniter HTTP Header Injection
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。