CVE-2006-3336
CVSS4.0
发布时间 :2006-07-05 16:05:00
修订时间 :2011-03-07 21:38:23
NMCOS    

[原文]TWiki 01-Dec-2000 up to 4.0.3 allows remote attackers to bypass the upload filter and execute arbitrary code via filenames with double extensions such as ".php.en", ".php.1", and other allowed extensions that are not .txt. NOTE: this is only a vulnerability when the server allows script execution in the pub directory.


[CNNVD]TWiki脚本文件上传漏洞(CNNVD-200607-020)

        TWiki是一款灵活易用、功能强大的企业协作平台。
        TWiki对上传文件的后缀检查过滤不充分,远程攻击者可能利用此漏洞上传脚本文件执行,从而以Web进程权限在服务器上执行任意命令。
        TWiki上传过滤器可以在上传的文件名后附加.txt后缀,以防执行.php、.php1、.phps、.pl之类的可执行脚本。但是,PHP和其他一些类型允许额外的文件后缀,如.php.en、.php.1和.php.2等。TWiki没有检查这些后缀,也就是可能没有添加.txt文件名后缀便上传一些PHP脚本,导致执行任意代码。

- CVSS (基础分值)

CVSS分值: 4 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: NONE [对系统可用性无影响]
攻击复杂度: HIGH [漏洞利用存在特定的访问条件]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:twiki:twiki:2004-09-02
cpe:/a:twiki:twiki:2004-09-04
cpe:/a:twiki:twiki:2001-09-01
cpe:/a:twiki:twiki:2001-12-01
cpe:/a:twiki:twiki:4.0
cpe:/a:twiki:twiki:2000-12-01
cpe:/a:twiki:twiki:2004-09-03
cpe:/a:twiki:twiki:4.0.0
cpe:/a:twiki:twiki:4.0.2
cpe:/a:twiki:twiki:4.0.3
cpe:/a:twiki:twiki:2004-09-01
cpe:/a:twiki:twiki:2003-02-01
cpe:/a:twiki:twiki:4.0.1

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://twiki.org/cgi-bin/view/Codev/SecurityAlertSecureFileUploads
(PATCH)  CONFIRM  http://twiki.org/cgi-bin/view/Codev/SecurityAlertSecureFileUploads
http://securitytracker.com/id?1016458
(PATCH)  SECTRACK  1016458
http://secunia.com/advisories/20992
(VENDOR_ADVISORY)  SECUNIA  20992
http://www.vupen.com/english/advisories/2006/2677
(UNKNOWN)  VUPEN  ADV-2006-2677
http://www.securityfocus.com/bid/18854
(UNKNOWN)  BID  18854

- 漏洞信息

TWiki脚本文件上传漏洞
中危 输入验证
2006-07-05 00:00:00 2006-07-20 00:00:00
远程  
        TWiki是一款灵活易用、功能强大的企业协作平台。
        TWiki对上传文件的后缀检查过滤不充分,远程攻击者可能利用此漏洞上传脚本文件执行,从而以Web进程权限在服务器上执行任意命令。
        TWiki上传过滤器可以在上传的文件名后附加.txt后缀,以防执行.php、.php1、.phps、.pl之类的可执行脚本。但是,PHP和其他一些类型允许额外的文件后缀,如.php.en、.php.1和.php.2等。TWiki没有检查这些后缀,也就是可能没有添加.txt文件名后缀便上传一些PHP脚本,导致执行任意代码。

- 公告与补丁

        目前厂商已经发布了升级补丁以修复这个安全问题,补丁下载链接:
        http://twiki.org/cgi-bin/view/Codev/TWikiRelease04x00x04
        http://twiki.org/cgi-bin/view/Codev/SecurityAlertSecureFileUploads#Hotfixes

- 漏洞信息

27081
TWiki Multiple File Extension Upload Arbitrary Code Execution
Remote / Network Access Input Manipulation
Loss of Confidentiality, Loss of Integrity Upgrade
Exploit Public Vendor Verified

- 漏洞描述

Twiki contains a flaw that may lead to an unauthorized information disclosure. Server side executables files could be uploaded by naming them with a double extension (ex : 2upload.php.1 ) in the Twiki topic. Once uploaded, an attacker can all the file directly which will be executed with the privileges of the web server.

- 时间线

2006-07-10 Unknow
2006-07-04 Unknow

- 解决方案

Upgrade to version 04.00.04 or higher, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by implementing the following workaround: Disable the execution of script language in the pub directory tree.

- 相关参考

- 漏洞作者

- 漏洞信息

TWiki Arbitrary File Upload Vulnerability
Input Validation Error 18854
Yes No
2006-07-06 12:00:00 2006-07-11 04:58:00
Tom McAdam is credited with the discovery of this vulnerability.

- 受影响的程序版本

TWiki TWiki 4.0.3
TWiki TWiki 4.0.2
TWiki TWiki 4.0.1
TWiki TWiki 01-Sep-1999
TWiki TWiki 01-Feb-2003
TWiki TWiki 01-Dec-2001
TWiki TWiki 01-Dec-2000
TWiki TWiki 0

- 漏洞讨论

TWiki is prone to an arbitrary file-upload vulnerability.

The issue is due to a failure in the application to properly sanitize user-supplied input.

An attacker can exploit this issue to include an arbitrary remote file containing malicious PHP code and to execute it in the context of the webserver process. This may allow the attacker to compromise the application and the underlying system.

- 漏洞利用

Attackers can exploit this issue via a web client.

- 解决方案

The vendor has released a patch to address this issue. Please see the vendor advisory for details.

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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