Vulnerabilities > CVE-2007-4471 - Path Traversal vulnerability in Intuit Quickbooks

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
intuit
CWE-22
critical
nessus

Summary

Multiple unspecified vulnerabilities in the Intuit QuickBooks Online Edition ActiveX control before 10 allow remote attackers to create or overwrite arbitrary files via unspecified arguments to the (1) httpGETToFile, (2) httpPOSTFromFile, and possibly other methods, probably involving path traversal vulnerabilities in exposed dangerous methods. NOTE: this can be leveraged for code execution by writing to a Startup folder.

Vulnerable Configurations

Part Description Count
Application
Intuit
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Relative Path Traversal
    An attacker exploits a weakness in input validation on the target by supplying a specially constructed path utilizing dot and slash characters for the purpose of obtaining access to arbitrary files or resources. An attacker modifies a known path on the target in order to reach material that is not available through intended channels. These attacks normally involve adding additional path separators (/ or \) and/or dots (.), or encodings thereof, in various combinations in order to reach parent directories or entirely separate trees of the target's directory structure.
  • Directory Traversal
    An attacker with access to file system resources, either directly or via application logic, will use various file path specification or navigation mechanisms such as ".." in path strings and absolute paths to extend their range of access to inappropriate areas of the file system. The attacker attempts to either explore the file system for recon purposes or access directories and files that are intended to be restricted from their access. Exploring the file system can be achieved through constructing paths presented to directory listing programs, such as "ls" and 'dir', or through specially crafted programs that attempt to explore the file system. The attacker engaging in this type of activity is searching for information that can be used later in a more exploitive attack. Access to restricted directories or files can be achieved through modification of path references utilized by system applications.
  • File System Function Injection, Content Based
    An attack of this type exploits the host's trust in executing remote content including binary files. The files are poisoned with a malicious payload (targeting the file systems accessible by the target software) by the attacker and may be passed through standard channels such as via email, and standard web content like PDF and multimedia files. The attacker exploits known vulnerabilities or handling routines in the target processes. Vulnerabilities of this type have been found in a wide variety of commercial applications from Microsoft Office to Adobe Acrobat and Apple Safari web browser. When the attacker knows the standard handling routines and can identify vulnerabilities and entry points they can be exploited by otherwise seemingly normal content. Once the attack is executed, the attackers' program can access relative directories such as C:\Program Files or other standard system directories to launch further attacks. In a worst case scenario, these programs are combined with other propagation logic and work as a virus.
  • Using Slashes and URL Encoding Combined to Bypass Validation Logic
    This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple way of encoding an URL and abuse the interpretation of the URL. An URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
  • Manipulating Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.

Nessus

  • NASL familyWindows
    NASL idQUICKBOOKS_10_ACTIVEX_ISSUES.NASL
    descriptionThe remote host contains an Active control associated with QuickBooks Online Edition, a variant of Intuit QuickBooks implemented as an ActiveX control. The version of this control on the remote host reportedly is affected by multiple and as-yet unspecified stack-based buffer overflows that could allow for the execution of arbitrary code. It also fails to properly restrict access to methods, which could be abused to download or upload files arbitrary files. Successful exploition requires that an attacker trick a user on the affected host into visiting a specially crafted web page, and code execution and file access would be subject to the user
    last seen2020-06-01
    modified2020-06-02
    plugin id26061
    published2007-09-18
    reporterThis script is Copyright (C) 2007-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/26061
    titleIntuit QuickBooks Online Edition < 10 ActiveX Multiple Vulnerabilities
    code
    #
    #  (C) Tenable Network Security, Inc.
    #
    
    
    
    include("compat.inc");
    
    if (description)
    {
      script_id(26061);
      script_version("1.17");
    
      script_cve_id("CVE-2007-0322", "CVE-2007-4471");
      script_bugtraq_id(25544);
      script_xref(name:"CERT", value:"907481");
      script_xref(name:"CERT", value:"979638");
    
      script_name(english:"Intuit QuickBooks Online Edition < 10 ActiveX Multiple Vulnerabilities");
      script_summary(english:"Checks for QuickBooks Online Edition control");
    
     script_set_attribute(attribute:"synopsis", value:
    "The remote Windows host has an ActiveX control that is affected by
    various vulnerabilities." );
     script_set_attribute(attribute:"description", value:
    "The remote host contains an Active control associated with QuickBooks
    Online Edition, a variant of Intuit QuickBooks implemented as an
    ActiveX control.
    
    The version of this control on the remote host reportedly is affected
    by multiple and as-yet unspecified stack-based buffer overflows that
    could allow for the execution of arbitrary code.  It also fails to
    properly restrict access to methods, which could be abused to download
    or upload files arbitrary files.
    
    Successful exploition requires that an attacker trick a user on the
    affected host into visiting a specially crafted web page, and code
    execution and file access would be subject to the user's privileges." );
     script_set_attribute(attribute:"solution", value:
    "Disable the use of this ActiveX control from within Internet Explorer
    by setting its kill bit.  Note that upgrading to version 10 or later
    of the QuickBooks Online Edition does not necessarily remove earlier
    versions of the control." );
     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:U/RL:OF/RC:C");
     script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
     script_set_attribute(attribute:"exploit_available", value:"false");
     script_cwe_id(22, 119, 264);
    
    
     script_set_attribute(attribute:"plugin_publication_date", value: "2007/09/18");
     script_set_attribute(attribute:"vuln_publication_date", value: "2007/09/04");
     script_cvs_date("Date: 2018/07/25 18:58:06");
    script_set_attribute(attribute:"plugin_type", value:"local");
    script_end_attributes();
    
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Windows");
    
      script_copyright(english:"This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.");
    
      script_dependencies("smb_hotfixes.nasl");
      script_require_keys("SMB/Registry/Enumerated");
      script_require_ports(139, 445);
    
      exit(0);
    }
    
    
    include("global_settings.inc");
    include("smb_func.inc");
    include("smb_activex_func.inc");
    
    
    if (!get_kb_item("SMB/Registry/Enumerated")) exit(0);
    
    
    # Locate files used by the control.
    if (activex_init() != ACX_OK) exit(0);
    
    info = "";
    clsids = make_list(
      # nb: each version of QuickBooks Online Edition uses a different CLSID.
      "{CF9DEB90-8DE3-11D5-BAE4-00105AAAFF94}",
      "{4F720B9C-24B1-4948-A035-8853DC01F19E}",
      "{2EFF8C97-F2A8-4395-9F47-9A06F998BF88}",
      "{2CC3D8DE-18BF-43ff-8CB8-21B442300FD5}",
      "{DBB177CC-6908-4b53-9BEE-F1C697818D65}",
      "{A80D199B-CFDD-4da4-8C47-2310D5B8DD97}",
      "{0D3983A9-4E29-4f33-8313-DA22B29D3F87}",
      "{D92D7607-05D9-4dd8-B68B-D458948FB883}",
      "{8CE3BAE6-AB66-40b6-9019-41E5282FF1E2}",
      "{40F8967E-34A6-474a-837A-CEC1E7DAC54C}"
    );
    foreach clsid (clsids)
    {
      file = activex_get_filename(clsid:clsid);
      if (file)
      {
        if (report_paranoia > 1 || activex_get_killbit(clsid:clsid) == 0)
        {
          info += '  ' + clsid + '\n' + 
                  '    ' + file + '\n';
          if (!thorough_tests) break;
        }
      }
    }
    activex_end();
    
    
    if (info)
    {
      report = string(
        "Nessus found the control installed as :\n",
        "\n",
        info
      );
    
      if (!thorough_tests)
      {
        report = string(
          report,
          "\n",
          "Note that Nessus did not check whether there were other instances\n",
          "installed because the 'Perform thorough tests' setting was not enabled\n",
          "when this scan was run.\n"
        );
      }
    
      if (report_paranoia > 1)
        report = string(
          report,
          "\n",
          "Note that Nessus did not check whether the kill bit was set for\n",
          "the control(s) because of the Report Paranoia setting in effect\n",
          "when this scan was run.\n"
        );
      else 
        report = string(
          report,
          "\n",
          "Moreover, the kill bit was  not set for the control(s) so they\n",
          "are accessible via Internet Explorer.\n"
        );
      security_hole(port:kb_smb_transport(), extra:report);
    }
    
  • NASL familyWindows : Microsoft Bulletins
    NASL idSMB_NT_MS07-069.NASL
    descriptionThe remote host is missing the IE cumulative security update 942615. The remote version of IE is vulnerable to several flaws that could allow an attacker to execute arbitrary code on the remote host.
    last seen2020-06-01
    modified2020-06-02
    plugin id29313
    published2007-12-11
    reporterThis script is Copyright (C) 2007-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/29313
    titleMS07-069: Cumulative Security Update for Internet Explorer (942615)
    code
    #
    # Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
     script_id(29313);
     script_version("1.36");
     script_cvs_date("Date: 2018/11/15 20:50:30");
    
     script_cve_id(
      "CVE-2007-0322",
      "CVE-2007-3902",
      "CVE-2007-3903",
      "CVE-2007-4471",
      "CVE-2007-5344",
      "CVE-2007-5347",
      "CVE-2007-6387"
     );
     script_bugtraq_id(25544, 26427, 26506, 26815, 26816, 26817, 26819);
     script_xref(name:"MSFT", value:"MS07-069");
     script_xref(name:"MSKB", value:"942615");
     
     script_xref(name:"CERT", value:"907481");
     script_xref(name:"CERT", value:"979638");
     script_xref(name:"EDB-ID", value:"4825");
    
     script_name(english:"MS07-069: Cumulative Security Update for Internet Explorer (942615)");
     script_summary(english:"Determines the presence of update 942615");
    
     script_set_attribute(attribute:"synopsis", value:
    "Arbitrary code can be executed on the remote host through the web
    client.");
     script_set_attribute(attribute:"description", value:
    "The remote host is missing the IE cumulative security update 942615.
    
    The remote version of IE is vulnerable to several flaws that could allow
    an attacker to execute arbitrary code on the remote host.");
     script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2007/ms07-069");
     script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-07-073/");
     script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-07-074/");
     script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-07-075/");
     script_set_attribute(attribute:"solution", value:
    "Microsoft has released a set of patches for Windows 2000, XP, 2003 and
    Vista.");
     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:POC/RL:OF/RC:C");
     script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
     script_set_attribute(attribute:"exploit_available", value:"true");
     script_cwe_id(22, 94, 119, 189, 264, 399);
    
     script_set_attribute(attribute:"vuln_publication_date", value:"2007/09/04");
     script_set_attribute(attribute:"patch_publication_date", value:"2007/12/11");
     script_set_attribute(attribute:"plugin_publication_date", value:"2007/12/11");
    
     script_set_attribute(attribute:"plugin_type", value:"local");
     script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:ie");
     script_end_attributes();
    
     script_category(ACT_GATHER_INFO);
    
     script_copyright(english:"This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.");
     script_family(english:"Windows : Microsoft Bulletins");
    
     script_dependencies("smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl");
     script_require_keys("SMB/MS_Bulletin_Checks/Possible");
     script_require_ports(139, 445, 'Host/patch_management_checks');
     exit(0);
    }
    
    
    include("audit.inc");
    include("smb_hotfixes_fcheck.inc");
    include("smb_hotfixes.inc");
    include("smb_func.inc");
    include("misc_func.inc");
    
    get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");
    
    bulletin = 'MS07-069';
    kb = '942615';
    
    kbs = make_list(kb);
    if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);
    
    get_kb_item_or_exit("SMB/Registry/Enumerated");
    get_kb_item_or_exit("SMB/WindowsVersion", exit_code:1);
    
    if (hotfix_check_sp_range(win2k:'4,5', xp:'2', win2003:'1,2', vista:'0') <= 0) audit(AUDIT_OS_SP_NOT_VULN);
    
    rootfile = hotfix_get_systemroot();
    if (!rootfile) exit(1, "Failed to get the system root.");
    
    share = hotfix_path2share(path:rootfile);
    if (!is_accessible_share(share:share)) audit(AUDIT_SHARE_FAIL, share);
    
    if (
      hotfix_is_vulnerable(os:"6.0", sp:0, file:"Mshtml.dll", version:"7.0.6000.20710", min_version:"7.0.6000.20000", dir:"\system32", bulletin:bulletin, kb:kb) ||
      hotfix_is_vulnerable(os:"6.0", sp:0, file:"Mshtml.dll", version:"7.0.6000.16587", dir:"\system32", bulletin:bulletin, kb:kb) ||
    
      hotfix_is_vulnerable(os:"5.2", sp:1, file:"Mshtml.dll", version:"6.0.3790.3041", dir:"\system32", bulletin:bulletin, kb:kb) ||
      hotfix_is_vulnerable(os:"5.2", sp:2, file:"Mshtml.dll", version:"6.0.3790.4186", dir:"\system32", bulletin:bulletin, kb:kb) ||
      hotfix_is_vulnerable(os:"5.2", file:"Mshtml.dll", version:"7.0.6000.20710", min_version:"7.0.6000.20000", dir:"\system32", bulletin:bulletin, kb:kb) ||
      hotfix_is_vulnerable(os:"5.2", file:"Mshtml.dll", version:"7.0.6000.16587", min_version:"7.0.0.0", dir:"\system32", bulletin:bulletin, kb:kb) ||
    
      hotfix_is_vulnerable(os:"5.1", sp:2, file:"Mshtml.dll", version:"6.0.2900.3243", dir:"\system32", bulletin:bulletin, kb:kb) ||
      hotfix_is_vulnerable(os:"5.1", sp:2, file:"Mshtml.dll", version:"7.0.6000.20710", min_version:"7.0.6000.20000", dir:"\system32", bulletin:bulletin, kb:kb) ||
      hotfix_is_vulnerable(os:"5.1", sp:2, file:"Mshtml.dll", version:"7.0.6000.16587", min_version:"7.0.0.0", dir:"\system32", bulletin:bulletin, kb:kb) ||
    
      hotfix_is_vulnerable(os:"5.0", file:"Mshtml.dll", version:"6.0.2800.1605", min_version:"6.0.0.0", dir:"\system32", bulletin:bulletin, kb:kb) ||
      hotfix_is_vulnerable(os:"5.0", file:"Mshtml.dll", version:"5.0.3858.1100", dir:"\system32", bulletin:bulletin, kb:kb)
    )
    {
      set_kb_item(name:"SMB/Missing/"+bulletin, value:TRUE);
      hotfix_security_hole();
      hotfix_check_fversion_end();
      exit(0);
    }
    else
    {
      hotfix_check_fversion_end();
      audit(AUDIT_HOST_NOT, 'affected');
    }
    

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 25544 CVE(CAN) ID: CVE-2007-4471,CVE-2007-0322 QuickBooks Online Edition是一款在线财务软件。 QuickBooks Online Edition的ActiveX控件处理在处理畸形用户请求时存在漏洞,远程攻击者可能利用此漏洞控制用户系统。 如果用户受骗打开了恶意HTML文档的话,QuickBooks Online Edition ActiveX控件的httpGETToFile()和httpPOSTFromFile()方式可能会向用户系统中任意位置下载或上传文件;其他一些方式中可能还会触发栈溢出,导致执行任意指令。 Intuit QuickBooks Online Edition 9 临时解决方法: 在IE中为以下CLSID设置kill bit: {CF9DEB90-8DE3-11D5-BAE4-00105AAAFF94} {4F720B9C-24B1-4948-A035-8853DC01F19E} {2EFF8C97-F2A8-4395-9F47-9A06F998BF88} {2CC3D8DE-18BF-43ff-8CB8-21B442300FD5} {DBB177CC-6908-4b53-9BEE-F1C697818D65} {A80D199B-CFDD-4da4-8C47-2310D5B8DD97} {0D3983A9-4E29-4f33-8313-DA22B29D3F87} {D92D7607-05D9-4dd8-B68B-D458948FB883} {8CE3BAE6-AB66-40b6-9019-41E5282FF1E2} {40F8967E-34A6-474a-837A-CEC1E7DAC54C} 或将以下文本保存为.REG文件并导入: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{CF9DEB90-8DE3-11D5-BAE4-00105AAAFF94}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{4F720B9C-24B1-4948-A035-8853DC01F19E}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{2EFF8C97-F2A8-4395-9F47-9A06F998BF88}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{2CC3D8DE-18BF-43ff-8CB8-21B442300FD5}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{DBB177CC-6908-4b53-9BEE-F1C697818D65}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{A80D199B-CFDD-4da4-8C47-2310D5B8DD97}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{0D3983A9-4E29-4f33-8313-DA22B29D3F87}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{D92D7607-05D9-4dd8-B68B-D458948FB883}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{8CE3BAE6-AB66-40b6-9019-41E5282FF1E2}] &quot;Compatibility Flags&quot;=dword:00000400 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{40F8967E-34A6-474a-837A-CEC1E7DAC54C}] &quot;Compatibility Flags&quot;=dword:00000400 厂商补丁: Intuit ------ 目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本: <a href="http://oe.quickbooks.com/index.cfm" target="_blank">http://oe.quickbooks.com/index.cfm</a>
idSSV:2199
last seen2017-11-19
modified2007-09-08
published2007-09-08
reporterRoot
titleIntuit QuickBooks Online Edition ActiveX控件多个远程安全漏洞