CVE-2002-0484
CVSS5.0
发布时间 :2002-08-12 00:00:00
修订时间 :2016-10-17 22:20:27
NMCOE    

[原文]move_uploaded_file in PHP does not does not check for the base directory (open_basedir), which could allow remote attackers to upload files to unintended locations on the system.


[CNNVD]PHP Move_Uploaded_File Open_Basedir欺诈漏洞(CNNVD-200208-205)

        PHP中的move_uploaded_file不检查基础目录(open_basedir)。远程攻击者可以利用该漏洞下载系统非计划位置文件。

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

- CPE (受影响的平台与产品)

cpe:/a:php:php:3.0.18PHP PHP 3.0.18
cpe:/a:php:php:3.0.9PHP PHP 3.0.9
cpe:/a:php:php:4.0.7:rc2
cpe:/a:php:php:4.0.7:rc1
cpe:/a:php:php:4.0
cpe:/a:php:php:3.0PHP PHP 3.0
cpe:/a:php:php:4.0.1PHP PHP 4.0.1
cpe:/a:php:php:4.1.0PHP PHP 4.1.0
cpe:/a:php:php:4.0.3PHP PHP 4.0.3
cpe:/a:php:php:4.1.2PHP PHP 4.1.2
cpe:/a:php:php:4.0.2PHP PHP 4.0.2
cpe:/a:php:php:4.1.1PHP PHP 4.1.1
cpe:/a:php:php:3.0.16PHP PHP 3.0.16
cpe:/a:php:php:3.0.8PHP PHP 3.0.8
cpe:/a:php:php:3.0.17PHP PHP 3.0.17
cpe:/a:php:php:3.0.7PHP PHP 3.0.7
cpe:/a:php:php:3.0.14PHP PHP 3.0.14
cpe:/a:php:php:3.0.6PHP PHP 3.0.6
cpe:/a:php:php:3.0.15PHP PHP 3.0.15
cpe:/a:php:php:3.0.5PHP PHP 3.0.5
cpe:/a:php:php:4.0.7:rc3
cpe:/a:php:php:4.0.1:patch1
cpe:/a:php:php:4.0.3:patch1
cpe:/a:php:php:3.0.12PHP PHP 3.0.12
cpe:/a:php:php:3.0.4PHP PHP 3.0.4
cpe:/a:php:php:3.0.13PHP PHP 3.0.13
cpe:/a:php:php:3.0.3PHP PHP 3.0.3
cpe:/a:php:php:4.0.1:patch2
cpe:/a:php:php:3.0.10PHP PHP 3.0.10
cpe:/a:php:php:3.0.2PHP PHP 3.0.2
cpe:/a:php:php:3.0.1PHP PHP 3.0.1
cpe:/a:php:php:3.0.11PHP PHP 3.0.11
cpe:/a:php:php:4.0.5PHP PHP 4.0.5
cpe:/a:php:php:4.0.4PHP PHP 4.0.4
cpe:/a:php:php:4.0.7PHP PHP 4.0.7
cpe:/a:php:php:4.0.6PHP PHP 4.0.6

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-0484
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2002-0484
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200208-205
(官方数据源) CNNVD

- 其它链接及资源

http://bugs.php.net/bug.php?id=16128
(UNKNOWN)  CONFIRM  http://bugs.php.net/bug.php?id=16128
http://marc.info/?l=bugtraq&m=101683938806677&w=2
(UNKNOWN)  BUGTRAQ  20020322 Re: move_uploaded_file breaks safe_mode restrictions in PHP
http://online.securityfocus.com/archive/1/262999
(VENDOR_ADVISORY)  BUGTRAQ  20020317 move_uploaded_file breaks safe_mode restrictions in PHP
http://online.securityfocus.com/archive/1/263259
(VENDOR_ADVISORY)  BUGTRAQ  20020321 Re: move_uploaded_file breaks safe_mode restrictions in PHP
http://www.iss.net/security_center/static/8591.php
(UNKNOWN)  XF  php-moveuploadedfile-create-files(8591)
http://www.securityfocus.com/bid/4325
(UNKNOWN)  BID  4325

- 漏洞信息

PHP Move_Uploaded_File Open_Basedir欺诈漏洞
中危 访问验证错误
2002-08-12 00:00:00 2005-05-02 00:00:00
本地  
        PHP中的move_uploaded_file不检查基础目录(open_basedir)。远程攻击者可以利用该漏洞下载系统非计划位置文件。

- 公告与补丁

        Fixes are reportedly available via the CVS repository for PHP.

- 漏洞信息 (21347)

PHP 3.0.x/4.x Move_Uploaded_File Open_Basedir Circumvention Vulnerability (EDBID:21347)
php local
2002-03-17 Verified
0 Tozz
N/A [点击下载]
source: http://www.securityfocus.com/bid/4325/info

PHP is a server side scripting language, designed to be embedded within HTML files. It is available for Windows, Linux, and many Unix based operating systems. It is commonly used for web development, and is very widely deployed.

It has been reported that the move_uploaded_file function lacks an open_basedir check. The effect of this issue is that this function may be used to perform file operations on directories outside of those specified by the open_basedir setting.

This vulnerability may not be exploited to overwrite existing files. 

<?

$file = $HTTP_POST_FILES['file']['name'];
$type = $HTTP_POST_FILES['file']['type'];
$size = $HTTP_POST_FILES['file']['size'];
$temp = $HTTP_POST_FILES['file']['tmp_name'];

$size_limit = "100000"; // set size limit in bytes

if ($file){
if ($size < $size_limit){

move_uploaded_file($temp,
"/domains/somebodyelse.org/public_html/www/test/".$file);
echo "The file <tt>$file</tt> was sucessfully
uploaded";
} else {
echo "Sorry, your file exceeds the size limit of $size_limit
bytes";
}}

echo "
<form enctype='multipart/form-data' action=$PHP_SELF method=post>
Upload a file: <input name='file' type='file'>
<input type='submit' value='Upload'>
</form>
";
?> 		

- 漏洞信息

5282
PHP move_uploaded_file Function File Upload Arbitrary File Overwrite
Remote / Network Access Input Manipulation
Loss of Integrity Patch / RCS
Exploit Public Vendor Verified

- 漏洞描述

- 时间线

2002-03-18 Unknow
Unknow Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站