Allegro RomPager HTTP Cookie Management Remote Code Execution Vulnerability (Misfortune Cookie) - Nessus
Critical Plugin ID: 80304This page contains detailed information about the Allegro RomPager HTTP Cookie Management Remote Code Execution Vulnerability (Misfortune Cookie) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 80304
Name: Allegro RomPager HTTP Cookie Management Remote Code Execution Vulnerability (Misfortune Cookie)
Filename: allegro_software_rompager_misfortune_cookie.nasl
Vulnerability Published: 2014-12-18
This Plugin Published: 2014-12-30
Last Modification Time: 2018-11-15
Plugin Version: 1.11
Plugin Type: remote
Plugin Family: Web Servers
Dependencies:
http_version.nasl
Vulnerability Information
Severity: Critical
Vulnerability Published: 2014-12-18
Patch Published: 2005-07-01
CVE [?]: CVE-2014-9222, CVE-2014-9223
CPE [?]: cpe:/a:allegrosoft:rompager
Synopsis
The remote host is affected by multiple remote code execution vulnerabilities.
Description
Nessus was able to overwrite the request path by sending a specially crafted cookie to the remote web server. It is, therefore, affected by multiple vulnerabilities :
- A flaw in HTTP cookie management in the embedded web server allows a remote attacker to execute arbitrary code with administrative privileges and to possibly conduct attacks against connected devices. (CVE-2014-9222)
- A digest authentication buffer overflow flaw exists that allows a remote attacker to cause a denial of service or to execute arbitrary code. (CVE-2014-9223)
Solution
Contact the vendor for an updated firmware image. Allegro addressed both issues in mid-2005 with RomPager version 4.34.
Public Exploits
Target Network Port(s): 80, 7547
Target Asset(s): Services/www
Exploit Available: True (Exploit-DB, GitHub, Immunity Canvas)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the Allegro RomPager HTTP Cookie Management Remote Code Execution Vulnerability (Misfortune Cookie) vulnerability:
- Exploit-DB: exploits/hardware/webapps/39739.py
[EDB-39739: RomPager 4.34 (Multiple Router Vendors) - 'Misfortune Cookie' Authentication Bypass] - GitHub: https://github.com/BenChaliah/MIPS-CVE-2014-9222
[CVE-2014-9222: Lets have fun by digging into a Zyxel router firmware and MIPS Arch] - GitHub: https://github.com/TopCaver/scz_doc_copy
[CVE-2014-9222] - GitHub: https://github.com/donfanning/MIPS-CVE-2014-9222
[CVE-2014-9222: Lets have fun by digging into a Zyxel router firmware and MIPS Arch] - Immunity Canvas: CANVAS
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:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score: | 10.0 (High) |
Impact Subscore: | 10.0 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 8.3 (High) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 8.3 (High) |
Go back to menu.
Plugin Source
This is the allegro_software_rompager_misfortune_cookie.nasl nessus plugin source code. This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(80304);
script_version("1.11");
script_cvs_date("Date: 2018/11/15 20:50:25");
script_cve_id("CVE-2014-9222", "CVE-2014-9223");
script_bugtraq_id(71744, 71756);
script_xref(name:"CERT", value:"561444");
script_name(english:"Allegro RomPager HTTP Cookie Management Remote Code Execution Vulnerability (Misfortune Cookie)");
script_summary(english:"Attempts to overwrite the request path via a cookie.");
script_set_attribute(attribute:"synopsis", value:
"The remote host is affected by multiple remote code execution
vulnerabilities.");
script_set_attribute(attribute:"description", value:
"Nessus was able to overwrite the request path by sending a specially
crafted cookie to the remote web server. It is, therefore, affected by
multiple vulnerabilities :
- A flaw in HTTP cookie management in the embedded web
server allows a remote attacker to execute arbitrary
code with administrative privileges and to possibly
conduct attacks against connected devices.
(CVE-2014-9222)
- A digest authentication buffer overflow flaw exists that
allows a remote attacker to cause a denial of service or
to execute arbitrary code. (CVE-2014-9223)");
# http://mis.fortunecook.ie/too-many-cooks-exploiting-tr069_tal-oppenheim_31c3.pdf
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?bb698969");
# https://blog.checkpoint.com/2014/12/18/misfortune-cookie-the-hole-in-your-internet-gateway-3/
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?2647cb4a");
# http://mis.fortunecook.ie/misfortune-cookie-suspected-vulnerable.pdf
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?946b7793");
# https://www.allegrosoft.com/allegro-software-urges-manufacturers-to-maintain-firmware-for-highest-level-of-embedded-device-security/news-press.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?22cba06d" );
script_set_attribute(attribute:"solution", value:
"Contact the vendor for an updated firmware image. Allegro addressed
both issues in mid-2005 with RomPager version 4.34.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
script_set_attribute(attribute:"canvas_package", value:'CANVAS');
script_set_attribute(attribute:"vuln_publication_date", value:"2014/12/18");
script_set_attribute(attribute:"patch_publication_date", value:"2005/07/01");
script_set_attribute(attribute:"plugin_publication_date", value:"2014/12/30");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:allegrosoft:rompager");
script_set_attribute(attribute:"exploited_by_nessus", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"Web Servers");
script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
script_dependencies("http_version.nasl");
script_require_ports("Services/www", 80, 7547);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
app_name = "Allegro RomPager";
port = get_http_port(default:7547, embedded:TRUE);
banner = get_http_banner(port:port);
# Only check banner if we are doing a paranoid scan
if(report_paranoia < 2)
{
if(!banner)
audit(AUDIT_WEB_NO_SERVER_HEADER, port);
if("RomPager" >!< banner)
audit(AUDIT_NOT_DETECT , app_name, port);
}
token = "/nessus_" + unixtime();
flag = token + "' was not found on the RomPager server.";
set_http_cookie(name:"C107373883", value:token);
r = http_send_recv3(
method : "GET",
item : "/",
port : port,
fetch404: TRUE,
exit_on_fail:TRUE
);
if (flag >< r[2])
{
if (report_verbosity > 0)
{
report =
'\n' + 'Nessus was able to exploit this issue with the following request:' +
'\n' +
'\n' + http_last_sent_request();
security_hole(port:port, extra:report);
}
else security_hole(port:port);
}
else audit(AUDIT_LISTEN_NOT_VULN, app_name, port);
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/allegro_software_rompager_misfortune_cookie.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\allegro_software_rompager_misfortune_cookie.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/allegro_software_rompager_misfortune_cookie.nasl
Go back to menu.
How to Run
Here is how to run the Allegro RomPager HTTP Cookie Management Remote Code Execution Vulnerability (Misfortune Cookie) 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 Web Servers plugin family.
- On the right side table select Allegro RomPager HTTP Cookie Management Remote Code Execution Vulnerability (Misfortune Cookie) plugin ID 80304.
- 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 allegro_software_rompager_misfortune_cookie.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a allegro_software_rompager_misfortune_cookie.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - allegro_software_rompager_misfortune_cookie.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 allegro_software_rompager_misfortune_cookie.nasl -t <IP/HOST>
Go back to menu.
References
BID | SecurityFocus Bugtraq ID: CERT | Computer Emergency Response Team: See also:
- https://www.tenable.com/plugins/nessus/80304
- http://www.nessus.org/u?22cba06d
- http://www.nessus.org/u?946b7793
- http://www.nessus.org/u?2647cb4a
- http://www.nessus.org/u?bb698969
- https://vulners.com/nessus/ALLEGRO_SOFTWARE_ROMPAGER_MISFORTUNE_COOKIE.NASL
- 80228 - Allegro RomPager HTTP Cookie Management Remote Code Execution Vulnerability (Misfortune Cookie)
- 19304 - Allegro Software RomPager 2.10 Malformed Authentication Request DoS
- 156164 - Apache Log4Shell CVE-2021-45046 Bypass Remote Code Execution
- 148239 - Apache OFBiz Remote Code Execution (CVE-2021-26295)
- 40353 - DD-WRT HTTP Daemon Metacharacter Injection Remote Code Execution
- 146861 - Liferay Portal Remote Code Execution (direct check)
- 142137 - Nostromo < 1.9.7 Remote Code Execution
- 136770 - Apache Tomcat 7.0.0 < 7.0.104 Remote Code Execution
- 124064 - Apache Tomcat 7.0.0 < 7.0.94 Remote Code Execution Vulnerability (Windows)
- 124063 - Apache Tomcat 8.5.0 < 8.5.40 Remote Code Execution Vulnerability (Windows)
- 136807 - Apache Tomcat 8.5.x < 8.5.55 Remote Code Execution
- 124058 - Apache Tomcat 9.0.0.M1 < 9.0.19 Remote Code Execution Vulnerability (Windows)
- 136806 - Apache Tomcat 9.0.0 < 9.0.35 Remote Code Execution
- 105484 - Oracle WebLogic WSAT Remote Code Execution
- 124338 - Oracle WebLogic WLS9-async Remote Code Execution (remote check)
- 133270 - IBM WebSphere Application Server 7.0.0.x <= 7.0.0.45 / 8.0.0.x <= 8.0.0.15 / 8.5.x < 8.5.5.15 / 9.0.0.x < 9.0.0.10 Remote Code Execution (CVE-2018-1567)
- 125630 - IBM WebSphere Application Server Virtual Enterprise 7.0.x / Network Deployment 8.5.x < 8.5.5.16 / Network Deployment 9.0.0.x <= 9.0.0.11 Remote Code Execution Vulnerability (CVE-2019-4279)
- 137398 - IBM WebSphere Application Server 7.0.0.x <= 7.0.0.45 / 8.0.0.x <= 8.0.0.15 / 8.5.x < 8.5.5.18 / 9.0.x < 9.0.5.4 Remote Code Execution (CVE-2020-4448)
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file allegro_software_rompager_misfortune_cookie.nasl version 1.11. For more plugins, visit the Nessus Plugin Library.
Go back to menu.