深刻度 高
CodeIgniter4 allows spoofing of IP address when using proxy
codeigniter4/framework(ライブラリ)の脆弱性です。深刻度は「高」、CVSS は 7.0です。修正版は 4.2.11 です。
- 対象
- codeigniter4/framework(ライブラリ)
- CVE 番号
- CVE-2022-23556
- 深刻度
- 高CVSS 7.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
- 影響を受けるバージョン
- 4.2.11 未満
- 修正版
- 4.2.11
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
### Impact This vulnerability may allow attackers to spoof their IP address when your server is behind a reverse proxy. ### Patches Upgrade to v4.2.11 or later, and configure `Config\App::$proxyIPs`. ### Workarounds Do not use `$request->getIPAddress()`. ### References - https://codeigniter4.github…(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
codeigniter4/framework を、修正版の 4.2.11 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-ghw3-5qvm-3mqc(新しいタブで開きます)
- https://nvd.nist.gov/vuln/detail/CVE-2022-23556(新しいタブで開きます)
- https://github.com/codeigniter4/CodeIgniter4/commit/5ca8c99b2db09a2a08a013836628028ddc984659(新しいタブで開きます)
- https://codeigniter4.github.io/userguide/incoming/request.html#CodeIgniter\HTTP\Request::getIPAddress(新しいタブで開きます)
- https://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-23556.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's Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued
- CodeIgniter Improper Privilege Management
- CodeIgniter HTTP Header Injection
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。