CodeIgniter4のアップロード検証に脆弱性、修正版あり
Summary
CodeIgniter4の4.7.5より前に、画像検証をすり抜けてPHPファイルを置かれ、任意のコードを実行される脆弱性が見つかりました。条件が合うアプリを運用する組織は、4.7.5以降へ更新し、保存先と実行設定を見直してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
CodeIgniter4の4.7.5より前に、画像検証をすり抜けてPHPファイルを置かれ、任意のコードを実行される脆弱性が見つかりました。条件が合うアプリを運用する組織は、4.7.5以降へ更新し、保存先と実行設定を見直してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| codeigniter4CodeIgniter4 |
< 4.7.5→ 4.7.5 |
4.7.5 |
Original description The description as published by the source.
CodeIgniter4 before 4.7.5 has an upload validation bypass: the is_image and mime_in rules accept filenames whose trailing dots conceal a PHP extension, and these rules and ext_in accept a PHP extension before the final image extension. Attackers can upload such files to achieve remote code execution when applications keep client-supplied filenames in a web directory that executes PHP.
Source: CVE.org (CVE Program・cvelistV5) NVD