CVE-2006-1339
CVSS5.0
发布时间 :2006-03-20 21:06:00
修订时间 :2008-09-05 17:01:39
NMCO    

[原文]Directory traversal vulnerability in inc/functions.inc.php in CuteNews 1.4.1 and possibly other versions, when register_globals is enabled, allows remote attackers to include arbitrary files via a .. (dot dot) sequence and trailing NULL (%00) byte in the archive parameter in an HTTP POST or COOKIE request, which bypasses a sanity check that is only applied to a GET request.


[CNNVD]CutePHP CuteNews 'function.php'本地文件包含漏洞(CNNVD-200603-333)

        Cutenews是一款功能强大的新闻管理系统,使用二维表格式文本文件存储数据。
        Cutenews在"inc/function.php"中没有正确地验证"archive"参数的输入数据,导致远程攻击者可以访问任意文件(如users.db.php和config.php)。
        以下是$cutepath/inc/functions.inc.php的第七行:
        if( isset($_GET['archive']) and $_GET['archive'] != "" and !eregi("^[_a-zA-Z0-9-]{1,}$", $_GET['archive'])){ die("invalid archive characters"); }
        可见cutenews只过滤了"$_GET['archive']"但没有过滤"$_POST['archive']"和"$COOKIE['archive']!",而在剩下的代码部分使用了"$archive"而不是"$_GET['archive'] !!!?",例如:
        if($archive == ""){
         $news_file = "$cutepath/data/news.txt";
         $comm_file = "$cutepath/data/comments.txt";
        }else{
         $news_file = "$cutepath/data/archives/$archive.news.arch";
         $comm_file = "$cutepath/data/archives/$archive.comments.arch";
        }
        ...
        成功攻击要求打开了"register_globals"。
        如果攻击者可以提供并不存在的文件名,服务端就会返回有关cutenews路径的信息,如:
        Warning: file([PATH]/cutenews/data/archives/hamid.news.arch):
        failed to open stream: No such file or directory in [PATH]\cutenews\inc\shows.inc.php on line 583
        
        

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: NONE [对系统的机密性无影响]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: NONE [对系统可用性无影响]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/17152
(UNKNOWN)  BID  17152
http://secunia.com/advisories/19289
(VENDOR_ADVISORY)  SECUNIA  19289
http://hamid.ir/security/cutenews.txt
(UNKNOWN)  MISC  http://hamid.ir/security/cutenews.txt
http://xforce.iss.net/xforce/xfdb/25324
(UNKNOWN)  XF  cutenews-incfunction-directory-traversal(25324)
http://www.securityfocus.com/archive/1/archive/1/428434/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060322 cutenews 1.4.1 Arbitrary File Access

- 漏洞信息

CutePHP CuteNews 'function.php'本地文件包含漏洞
中危 路径遍历
2006-03-20 00:00:00 2006-03-23 00:00:00
远程  
        Cutenews是一款功能强大的新闻管理系统,使用二维表格式文本文件存储数据。
        Cutenews在"inc/function.php"中没有正确地验证"archive"参数的输入数据,导致远程攻击者可以访问任意文件(如users.db.php和config.php)。
        以下是$cutepath/inc/functions.inc.php的第七行:
        if( isset($_GET['archive']) and $_GET['archive'] != "" and !eregi("^[_a-zA-Z0-9-]{1,}$", $_GET['archive'])){ die("invalid archive characters"); }
        可见cutenews只过滤了"$_GET['archive']"但没有过滤"$_POST['archive']"和"$COOKIE['archive']!",而在剩下的代码部分使用了"$archive"而不是"$_GET['archive'] !!!?",例如:
        if($archive == ""){
         $news_file = "$cutepath/data/news.txt";
         $comm_file = "$cutepath/data/comments.txt";
        }else{
         $news_file = "$cutepath/data/archives/$archive.news.arch";
         $comm_file = "$cutepath/data/archives/$archive.comments.arch";
        }
        ...
        成功攻击要求打开了"register_globals"。
        如果攻击者可以提供并不存在的文件名,服务端就会返回有关cutenews路径的信息,如:
        Warning: file([PATH]/cutenews/data/archives/hamid.news.arch):
        failed to open stream: No such file or directory in [PATH]\cutenews\inc\shows.inc.php on line 583
        
        

- 公告与补丁

        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        www.CutePHP.com.

- 漏洞信息

24008
CuteNews inc/function.php archive Parameter Arbitrary File Access
Remote / Network Access

- 漏洞描述

CuteNews contains a flaw that allows a remote attacker to access arbitrary files. The issue is due to the inc/function.php script not properly sanitizing user input supplied to the 'archive' variable. By specifying an arbitrary file, the contents will be displayed to the remote attacker. Additionally, if a non-existant file is requested, the system will disclose the software's installation path. While such information is relatively low risk, it is often useful in carrying out additional, more focused attacks.

- 时间线

2006-03-20 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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