Foxit Reader 2.x < 2.3 Build 3902 / 3.x < 3.0 Build 1506 Multiple Vulnerabilities - Nessus

High   Plugin ID: 35807

This page contains detailed information about the Foxit Reader 2.x < 2.3 Build 3902 / 3.x < 3.0 Build 1506 Multiple Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 35807
Name: Foxit Reader 2.x < 2.3 Build 3902 / 3.x < 3.0 Build 1506 Multiple Vulnerabilities
Filename: foxit_reader_multiple_flaws.nasl
Vulnerability Published: 2009-03-09
This Plugin Published: 2009-03-09
Last Modification Time: 2018-11-15
Plugin Version: 1.17
Plugin Type: local
Plugin Family: Windows
Dependencies: foxit_reader_installed.nasl
Required KB Items [?]: installed_sw/Foxit Reader

Vulnerability Information


Severity: High
Vulnerability Published: 2009-03-09
Patch Published: 2009-03-09
CVE [?]: CVE-2009-0191, CVE-2009-0836, CVE-2009-0837
CPE [?]: cpe:/a:foxitsoftware:foxit_reader
Exploited by Malware: True

Synopsis

A PDF viewer installed on the remote host is affected by multiple vulnerabilities.

Description

The version of Foxit Reader installed on the remote Windows host is 2.x prior to 2.3 Build 3902 or 3.x prior to 3.0 Build 1506. It is, therefore, affected by multiple vulnerabilities :

- An uninitialized memory dereference flaw exists due to improper handling of a JBIG2 symbol dictionary segment with zero new symbols. An unauthenticated, remote attacker can exploit this, via a crafted PDF file, to execute arbitrary code. (CVE-2009-0191)

- A flaw exists due to a failure to require user authorization before preforming dangerous actions defined in a PDF file. An unauthenticated, remote attacker can exploit this, via a crafted PDF file, to execute arbitrary commands. (CVE-2009-0836)

- A stack-based buffer overflow condition exists due to improper sanitization of user-supplied input. An unauthenticated, remote attacker can exploit this to execute arbitrary code via a crafted PDF file having a long relative or absolute path in a filename argument in an action. Note that this issue only affects version 3.x. (CVE-2009-0837)

Solution

Upgrade to Foxit Reader version 2.3 Build 3902 / 3.0 Build 1506 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Foxit Reader 2.x < 2.3 Build 3902 / 3.x < 3.0 Build 1506 Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/fileformat/foxit_reader_launch
    [Foxit Reader 3.0 Open Execute Action Stack Based Buffer Overflow]
  2. Metasploit: auxiliary/pdf/foxit/authbypass
    [Foxit Reader Authorization Bypass]
  3. Exploit-DB: exploits/windows/local/8201.pl
    [EDB-8201: Foxit Reader 3.0 (Build 1301) - PDF Universal Buffer Overflow]
  4. Exploit-DB: exploits/windows/local/18905.rb
    [EDB-18905: Foxit Reader 3.0 - Open Execute Action Stack Buffer Overflow (Metasploit)]
  5. 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:M/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:8.1 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.1 (High)

Go back to menu.

Plugin Source


This is the foxit_reader_multiple_flaws.nasl nessus plugin source code. This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(35807);
  script_version("1.17");
  script_cvs_date("Date: 2018/11/15 20:50:26");

  script_cve_id("CVE-2009-0191", "CVE-2009-0836", "CVE-2009-0837");
  script_bugtraq_id(34035);
  script_xref(name:"EDB-ID", value:"8201");
  script_xref(name:"EDB-ID", value:"18905");
  script_xref(name:"Secunia", value:"34036");

  script_name(english:"Foxit Reader 2.x < 2.3 Build 3902 / 3.x < 3.0 Build 1506 Multiple Vulnerabilities");
  script_summary(english:"Checks the version of Foxit Reader.");
 
  script_set_attribute(attribute:"synopsis", value:
"A PDF viewer installed on the remote host is affected by multiple
vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The version of Foxit Reader installed on the remote Windows host is
2.x prior to 2.3 Build 3902 or 3.x prior to 3.0 Build 1506. It is,
therefore, affected by multiple vulnerabilities :

  - An uninitialized memory dereference flaw exists due to
    improper handling of a JBIG2 symbol dictionary segment
    with zero new symbols. An unauthenticated, remote
    attacker can exploit this, via a crafted PDF file, to
    execute arbitrary code. (CVE-2009-0191)

  - A flaw exists due to a failure to require user
    authorization before preforming dangerous actions
    defined in a PDF file. An unauthenticated, remote
    attacker can exploit this, via a crafted PDF file, to
    execute arbitrary commands. (CVE-2009-0836)

  - A stack-based buffer overflow condition exists due to
    improper sanitization of user-supplied input. An
    unauthenticated, remote attacker can exploit this to
    execute arbitrary code via a crafted PDF file having a
    long relative or absolute path in a filename argument in
    an action. Note that this issue only affects version
    3.x. (CVE-2009-0837)");
  script_set_attribute(attribute:"see_also", value:"https://secuniaresearch.flexerasoftware.com/secunia_research/2009-11/");
  script_set_attribute(attribute:"see_also", value:"https://www.foxitsoftware.com/support/security-bulletins.php");
  script_set_attribute(attribute:"see_also", value:"https://www.foxitsoftware.com/company/press.php?id=97");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Foxit Reader version 2.3 Build 3902 / 3.0 Build 1506 or
later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:H/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_core", value:"true");
  script_set_attribute(attribute:"exploited_by_malware", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Foxit Reader 3.0 Open Execute Action Stack Based Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'CANVAS');
  script_cwe_id(94, 119);

  script_set_attribute(attribute:"vuln_publication_date", value: "2009/03/09");
  script_set_attribute(attribute:"patch_publication_date", value: "2009/03/09");
  script_set_attribute(attribute:"plugin_publication_date", value: "2009/03/09");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe",value:"cpe:/a:foxitsoftware:foxit_reader");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");

  script_dependencies("foxit_reader_installed.nasl");
  script_require_keys("installed_sw/Foxit Reader");

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("install_func.inc");

app = "Foxit Reader";
install = get_single_install(app_name:app, exit_if_unknown_ver:TRUE);
version = install["version"];
path    = install["path"];

report = NULL;
fixed_version = NULL;

if (version =~ "^2\.3\.")
  fixed_version = "2.3.3902";

if (version =~ "^3\.0\.")
  fixed_version = "3.0.1506";

# Remove the year from the version where applicable
ver_ui = NULL;
if (ereg(pattern:"200[789]\.", string:version))
{
  ver_ui = version;
  version = ereg_replace(pattern:"(200[789]\.)", replace:"", string:version);
}

if (fixed_version && ver_compare(ver:version, fix:fixed_version, strict:FALSE) < 0)
{
  port = get_kb_item("SMB/transport");
  if (!port)
    port = 445;

  report = '\n  Path              : ' + path;

  if (!isnull(ver_ui))
    report += '\n  UI version        : ' + ver_ui;

  report +=
    '\n  Installed version : ' + version +
    '\n  Fixed version     : ' + fixed_version + '\n';

  security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
  exit(0);
}
else
  audit(AUDIT_INST_PATH_NOT_VULN, app, version, path);

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

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

Go back to menu.

How to Run


Here is how to run the Foxit Reader 2.x < 2.3 Build 3902 / 3.x < 3.0 Build 1506 Multiple Vulnerabilities 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 Windows plugin family.
  6. On the right side table select Foxit Reader 2.x < 2.3 Build 3902 / 3.x < 3.0 Build 1506 Multiple Vulnerabilities plugin ID 35807.
  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 foxit_reader_multiple_flaws.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - foxit_reader_multiple_flaws.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 foxit_reader_multiple_flaws.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: Secunia Advisory: CWE | Common Weakness Enumeration:
  • CWE-94 (Weakness) Improper Control of Generation of Code ('Code Injection')
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
See also: Similar and related Nessus plugins:
  • 154005 - Foxit PDF Editor < 11.1 Multiple Vulnerabilities
  • 157230 - Foxit PDF Editor < 11.2.1 Multiple Vulnerabilities
  • 139315 - Foxit PhantomPDF < 10.0.1 Multiple Vulnerabilities
  • 155706 - Foxit PhantomPDF < 10.1.6 Multiple Vulnerabilities
  • 158564 - Foxit PhantomPDF < 10.1.7 Multiple Vulnerabilities
  • 49808 - Foxit Phantom < 2.2.0.926 Multiple Vulnerabilities
  • 102858 - Foxit PhantomPDF < 8.3.2 Multiple Vulnerabilities
  • 121246 - Foxit PhantomPDF < 8.3.9 Multiple Vulnerabilities
  • 111376 - Foxit PhantomPDF < 9.2 Multiple Vulnerabilities
  • 121045 - Foxit PhantomPDF < 9.4 Multiple Vulnerabilities
  • 140503 - Foxit PhantomPDF < 9.7.3 Multiple Vulnerabilities
  • 139316 - Foxit Reader < 10.0.1 Multiple Vulnerabilities
  • 154004 - Foxit PDF Reader < 11.1 Multiple Vulnerabilities
  • 157229 - Foxit PDF Reader < 11.2.1 Multiple Vulnerabilities
  • 32396 - Foxit Reader < 2.3 Build 2923 util.printf() Floating Point Specifier RCE
  • 45404 - Foxit Reader < 3.2.1 Arbitrary Program Execution
  • 48276 - Foxit Reader < 4.1.1.0805 FreeType CFF Opcodes RCE
  • 49780 - Foxit Reader < 4.2.0.0928 Multiple Vulnerabilities
  • 52458 - Foxit Reader < 4.3.1.0218 Multiple Vulnerabilities
  • 55671 - Foxit Reader < 5.0.2.0718 Multiple Vulnerabilities
  • 86698 - Foxit Reader < 7.2 Multiple Vulnerabilities
  • 102859 - Foxit Reader < 8.3.2 Multiple Vulnerabilities
  • 111377 - Foxit Reader < 9.2 Multiple Vulnerabilities
  • 121046 - Foxit Reader < 9.4 Multiple Vulnerabilities
  • 64094 - Foxit Reader Firefox Plugin URL File Name RCE
  • 157114 - Foxit PDF Editor for Mac < 11.1.1 Multiple Vulnerabilities
  • 157115 - Foxit PDF Reader for Mac < 11.1.1 Multiple Vulnerabilities
  • 154013 - Foxit PDF Reader for Mac < 11.1 Vulnerability

Version


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

Go back to menu.