Vulnerabilities > CVE-2009-0837 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Foxit Reader3.0

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
foxit
CWE-119
nessus
exploit available
metasploit

Summary

Stack-based buffer overflow in Foxit Reader 3.0 before Build 1506, including 1120 and 1301, allows remote attackers to execute arbitrary code via a long (1) relative path or (2) absolute path in the filename argument in an action, as demonstrated by the "Open/Execute a file" action.

Vulnerable Configurations

Part Description Count
Application
Foxit
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

  • descriptionFoxit Reader 3.0 Open Execute Action Stack Based Buffer Overflow. CVE-2009-0837. Local exploit for windows platform
    idEDB-ID:18905
    last seen2016-02-02
    modified2012-05-21
    published2012-05-21
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/18905/
    titleFoxit Reader 3.0 Open Execute Action Stack Based Buffer Overflow
  • descriptionFoxit Reader 3.0 (<= Build 1301) PDF Buffer Overflow Exploit (Univ.). CVE-2009-0837. Local exploit for windows platform
    idEDB-ID:8201
    last seen2016-02-01
    modified2009-03-13
    published2009-03-13
    reporterSkD
    sourcehttps://www.exploit-db.com/download/8201/
    titleFoxit Reader <= 3.0 Build 1301 - PDF Buffer Overflow Exploit Univ.

Metasploit

descriptionThis module exploits a buffer overflow in Foxit Reader 3.0 builds 1301 and earlier. Due to the way Foxit Reader handles the input from an "Launch" action, it is possible to cause a stack-based buffer overflow, allowing an attacker to gain arbitrary code execution under the context of the user.
idMSF:EXPLOIT/WINDOWS/FILEFORMAT/FOXIT_READER_LAUNCH
last seen2020-05-26
modified2020-01-15
published2012-05-18
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/fileformat/foxit_reader_launch.rb
titleFoxit Reader 3.0 Open Execute Action Stack Based Buffer Overflow

Nessus

NASL familyWindows
NASL idFOXIT_READER_MULTIPLE_FLAWS.NASL
descriptionThe 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)
last seen2020-06-01
modified2020-06-02
plugin id35807
published2009-03-09
reporterThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/35807
titleFoxit Reader 2.x < 2.3 Build 3902 / 3.x < 3.0 Build 1506 Multiple Vulnerabilities
code
#
# (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);

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 34035 CVE(CAN) ID: CVE-2009-0191,CVE-2009-0836,CVE-2009-0837 Foxit Reader是一款小型的PDF文档查看器和打印程序。 1) Foxit Reader在处理JBIG2符号字典段时存在错误,特制的PDF文件可能导致引用未经初始化的内存。 2) 如果PDF文件中定义了Open/Execute a file操作,Foxit Reader可能会未经用户确认便打开或执行PDF文件创建者所定义的文件。 3) 如果带有超长文件名参数的PDF文件中定义了Open/Execute a file操作,由于未经充分的边界检查便试图将文件名参数拷贝到栈中固定大小的缓冲区,在某些情况下可能会触发栈溢出。 Foxit Foxit Reader 3.0 Foxit Foxit Reader 2.3 厂商补丁: Foxit ----- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=http://www.foxitsoftware.com/downloads/ target=_blank rel=external nofollow>http://www.foxitsoftware.com/downloads/</a>
idSSV:4892
last seen2017-11-19
modified2009-03-11
published2009-03-11
reporterRoot
sourcehttps://www.seebug.org/vuldb/ssvid-4892
titleFoxit Reader PDF文件处理多个代码执行和绕过授权漏洞