漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
CodeIgniter: Uploaded file extension validation bypass in `ext_in` rule
Vulnerability Description
CodeIgniter is a PHP full-stack web framework. Prior to 4.7.3, the ext_in upload validation rule in system/Validation/StrictRules/FileRules.php checked the MIME-derived guessed extension instead of the client-provided filename extension. As a result, an uploaded file named shell.php containing GIF-like content could pass validation such as uploaded[avatar]|is_image[avatar]|mime_in[avatar,image/gif]|ext_in[avatar,gif] because the detected MIME type maps to gif, even though the uploaded filename extension is php. Applications are impacted if they accept user-controlled uploads, rely on ext_in to validate the uploaded filename extension, save uploaded files using the original client filename with $file->move($path), store uploads in a web-accessible directory, and allow PHP or other executable files to run from that directory. In those conditions, this may lead to arbitrary code execution. This issue is fixed in version 4.7.3.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
危险类型文件的不加限制上传
Vulnerability Title
codeigniter 任意文件上传漏洞
Vulnerability Description
CodeIgniter是Codeigniter组织开源的一个轻量级、快速、灵活和安全的 PHP 全栈 Web 框架。 CodeIgniter4 4.7.3之前版本存在任意文件上传漏洞,该漏洞源于ext_in上传验证规则检查MIME推测的扩展名而非客户端提供的文件名扩展,可能导致攻击者上传名为shell.php的GIF内容文件并执行任意代码。
CVSS Information
N/A
Vulnerability Type
N/A