Vulnerabilities > CVE-2008-3007 - Improper Input Validation vulnerability in Microsoft Office and Office Onenote

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

Summary

Argument injection vulnerability in a URI handler in Microsoft Office XP SP3, 2003 SP2 and SP3, 2007 Office System Gold and SP1, and Office OneNote 2007 Gold and SP1 allow remote attackers to execute arbitrary code via a crafted onenote:// URL, aka "Uniform Resource Locator Validation Error Vulnerability."

Vulnerable Configurations

Part Description Count
Application
Microsoft
7

Common Weakness Enumeration (CWE)

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.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS08-055.NASL
descriptionThe version of Microsoft Office running on the remote host is affected by an argument injection vulnerability. By convincing a user to click on a specially crafted OneNote URL, a remote attacker can exploit this to execute arbitrary code or view or change data with current user rights.
last seen2020-06-01
modified2020-06-02
plugin id34123
published2008-09-10
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/34123
titleMS08-055: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (955047)
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
 script_id(34123);
 script_version("1.29");
 script_cvs_date("Date: 2018/11/15 20:50:30");

 script_cve_id("CVE-2008-3007");
 script_bugtraq_id(31067);
 script_xref(name:"MSFT", value:"MS08-055");
 script_xref(name:"MSKB", value:"950130");
 script_xref(name:"MSKB", value:"951944");
 script_xref(name:"MSKB", value:"953404");
 script_xref(name:"MSKB", value:"953405");
 script_xref(name:"IAVB", value:"2008-B-0058");

 script_name(english:"MS08-055: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (955047)");
 script_summary(english:"Determines the version of MSO.dll.");

 script_set_attribute(attribute:"synopsis", value:
"Arbitrary code can be executed on the remote host through Microsoft
Office.");
 script_set_attribute(attribute:"description", value:
"The version of Microsoft Office running on the remote host is affected
by an argument injection vulnerability. By convincing a user to click
on a specially crafted OneNote URL, a remote attacker can exploit this
to execute arbitrary code or view or change data with current user
rights.");
 script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2008/ms08-055");
 script_set_attribute(attribute:"solution", value:
"Microsoft has released a set of patches for Office XP, 2003, 2007 and
OneNote 2007.");
 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(20);

 script_set_attribute(attribute:"vuln_publication_date", value:"2008/09/09");
 script_set_attribute(attribute:"patch_publication_date", value:"2008/09/09");
 script_set_attribute(attribute:"plugin_publication_date", value:"2008/09/10");

 script_set_attribute(attribute:"plugin_type", value:"local");
 script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office");
 script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:onenote");
 script_set_attribute(attribute:"stig_severity", value:"II");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);

 script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
 script_family(english:"Windows : Microsoft Bulletins");

 script_dependencies("smb_hotfixes.nasl", "office_installed.nasl", "onenote_installed.nbin", "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_func.inc");
include("smb_hotfixes.inc");
include("smb_hotfixes_fcheck.inc");
include("misc_func.inc");
include("install_func.inc");

get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");

bulletin = 'MS08-055';
kbs = make_list("950130", "951944", "953404", "953405");
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/WindowsVersion", exit_code:1);

vuln = 0;

share = '';
lastshare = '';
accessibleshare = FALSE;
office_versions = hotfix_check_office_version ();
if ( max_index(keys(office_versions)) > 0 )
{
 if (office_versions["10.0"] )
 {
  officesp = get_kb_item("SMB/Office/XP/SP");
  if (!isnull(officesp) && officesp == 3)
  {
    path = hotfix_get_officecommonfilesdir(officever:"10.0") + "\Microsoft Shared\Office10";
    dll = path + "\mso.dll";
    share = hotfix_path2share(path:path);
    lastshare = share;
    if (is_accessible_share(share:share))
    {
      accessibleshare = TRUE;
      res = hotfix_get_fversion(path:dll);
      if (res['error'] == HCF_OK)
      {
        ver = res['value'];
        if (int(ver[0]) == 10 && int(ver[1]) == 0 && int(ver[2]) < 6845)
        {
          vuln++;
          info =
            '\n  Product           : Microsoft Office 2002' +
            '\n  Path              : ' + path +
            '\n  Installed version : ' + join(ver, sep:'.') +
            '\n  Fixed version     : 10.0.6845.0\n';
          hotfix_add_report(info, bulletin:bulletin, kb:'953405');
        }
      }
    }
  }
 }
 if (office_versions["11.0"] )
 {
   officesp = get_kb_item("SMB/Office/2003/SP");
   if (!isnull(officesp) && (officesp == 2 || officesp == 3))
   {
     path = hotfix_get_officecommonfilesdir(officever:"11.0") + "\Microsoft Shared\Office11";
     dll = path + "\mso.dll";
     share = hotfix_path2share(path:path);
     if (share != lastshare || !accessibleshare)
     {
       lastshare = share;
       if (is_accessible_share(share:share))
       {
         accessibleshare = TRUE;
         res = hotfix_get_fversion(path:dll);
         if (res['error'] == HCF_OK)
         {
           ver = res['value'];
           if (int(ver[0]) == 11 && int(ver[1]) == 0 && int(ver[2]) < 8221)
           {
             vuln++;
             info =
               '\n  Product           : Microsoft Office 2003' +
               '\n  Path              : ' + path +
               '\n  Installed version : ' + join(ver, sep:'.') +
               '\n  Fixed version     : 11.0.8221.0\n';
             hotfix_add_report(info, bulletin:bulletin, kb:'953404');
           }
         }
       }
       else accessibleshare = FALSE;
     }
   }
 }
 if (office_versions["12.0"] )
 {
   officesp = get_kb_item("SMB/Office/2007/SP");
   if (!isnull(officesp) && (officesp == 0 || officesp == 1))
   {
     path = hotfix_get_officecommonfilesdir(officever:"12.0") + "\Microsoft Shared\Office12";
     dll = path + "\mso.dll";
     share = hotfix_path2share(path:path);
     if (share != lastshare || !accessibleshare)
     {
       lastshare = share;
       if (is_accessible_share(share:share))
       {
         accessibleshare = TRUE;
         res = hotfix_get_fversion(path:dll);
         if (res['error'] == HCF_OK)
         {
           ver = res['value'];
           if (int(ver[0]) == 12 && int(ver[1]) == 0 && int(ver[2]) < 6320)
           {
             vuln++;
             info =
               '\n  Product           : Microsoft Office 2007' +
               '\n  Path              : ' + path +
               '\n  Installed version : ' + join(ver, sep:'.') +
               '\n  Fixed version     : 12.0.6320.5000\n';
             hotfix_add_report(info, bulletin:bulletin, kb:'951944');
           }
         }
       }
       else accessibleshare = FALSE;
     }
   }
 }
}
hotfix_check_fversion_end();

onenote_installs = get_installs(app_name:'Microsoft OneNote');
if (onenote_installs[0] == IF_OK)
{
  foreach install (onenote_installs[1])
  {
    onenote_product = install['product'];
    onenote_sp = install['sp'];
    onenote_path = install['path'];
    onenote_version = install['version'];
    if (onenote_version == UNKNOWN_VER) continue;

    # Check Product
    if (onenote_product == '2007')
    {
      # Check Service Pack
      if (onenote_sp == '0' || onenote_sp == '1')
      {
        v = split(onenote_version, sep:'.', keep:FALSE);
        if (
          (int(v[0]) == 12 && int(v[1]) == 0 && int(v[2]) < 6316) ||
          (int(v[0]) == 12 && int(v[1]) == 0 && int(v[2]) == 6316 && int(v[3]) < 5000)
        )
        {
          vuln++;
          info =
            '\n  Product           : Microsoft OneNote 2007' +
            '\n  Path              : ' + onenote_path +
            '\n  Installed version : ' + onenote_version +
            '\n  Fixed version     : 12.0.6316.5000\n';
          hotfix_add_report(info, bulletin:bulletin, kb:'950130');
        }
      }
    }
  }
}

if (vuln)
{
  set_kb_item(name:"SMB/Missing/"+bulletin, value:TRUE);
  hotfix_security_hole();
  exit(0);
}
else audit(AUDIT_HOST_NOT, 'affected');

Oval

accepted2013-09-02T04:05:47.294-04:00
classvulnerability
contributors
  • nameSudhir Gandhe
    organizationSecure Elements, Inc.
  • nameMike Lah
    organizationThe MITRE Corporation
  • nameShane Shaffer
    organizationG2, Inc.
  • nameDragos Prisaca
    organizationG2, Inc.
definition_extensions
  • commentMicrosoft Office XP is installed
    ovaloval:org.mitre.oval:def:663
  • commentMicrosoft Office 2003 is installed
    ovaloval:org.mitre.oval:def:233
  • commentMicrosoft Office 2007 is installed
    ovaloval:org.mitre.oval:def:1211
descriptionArgument injection vulnerability in a URI handler in Microsoft Office XP SP3, 2003 SP2 and SP3, 2007 Office System Gold and SP1, and Office OneNote 2007 Gold and SP1 allow remote attackers to execute arbitrary code via a crafted onenote:// URL, aka "Uniform Resource Locator Validation Error Vulnerability."
familywindows
idoval:org.mitre.oval:def:5970
statusaccepted
submitted2008-09-09T13:58:00
titleUniform Resource Locator Validation Error Vulnerability
version17

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 31067 CVE ID:CVE-2008-3007 CNCVE ID:CNCVE-20083007 Microsoft Office OneNote是一款Microsoft Office 系统的一个集成部分,用于帮助管理信息过载,更加轻松地共享信息,并且更加高效地与他人协作的程序。 Microsoft Office处理使用OneNote协议处理器(onenote://)的URL存在缓冲区溢出,远程攻击者可以利用漏洞以应用程序权限执行任意指令。 构建特殊的onenote:// URL可触发此漏洞。目前没有详细漏洞细节提供。 Microsoft OneNote 2007 SP1 Microsoft OneNote 2007 0 Microsoft Office XP SP3 + Microsoft Excel 2002 SP3 + Microsoft FrontPage 2002 SP3 + Microsoft Outlook 2002 SP3 + Microsoft PowerPoint 2002 SP3 + Microsoft Publisher 2002 SP3 Microsoft Office XP SP2 - Microsoft Windows 2000 Professional SP3 - Microsoft Windows 2000 Professional SP2 - Microsoft Windows 2000 Professional SP1 - Microsoft Windows 2000 Professional - Microsoft Windows 98 - Microsoft Windows 98SE - Microsoft Windows ME - Microsoft Windows NT Workstation 4.0 SP6a - Microsoft Windows NT Workstation 4.0 SP6 - Microsoft Windows NT Workstation 4.0 SP5 - Microsoft Windows NT Workstation 4.0 SP4 - Microsoft Windows NT Workstation 4.0 SP3 - Microsoft Windows NT Workstation 4.0 SP2 - Microsoft Windows NT Workstation 4.0 SP1 - Microsoft Windows NT Workstation 4.0 - Microsoft Windows XP Home SP1 - Microsoft Windows XP Home - Microsoft Windows XP Professional SP1 - Microsoft Windows XP Professional Microsoft Office XP SP1 - Microsoft Windows 2000 Professional SP2 - Microsoft Windows 2000 Professional SP1 - Microsoft Windows 2000 Professional - Microsoft Windows 98 - Microsoft Windows ME - Microsoft Windows NT Workstation 4.0 SP6a - Microsoft Windows NT Workstation 4.0 SP6 - Microsoft Windows NT Workstation 4.0 SP5 - Microsoft Windows NT Workstation 4.0 SP4 - Microsoft Windows NT Workstation 4.0 SP3 - Microsoft Windows NT Workstation 4.0 SP2 - Microsoft Windows NT Workstation 4.0 SP1 - Microsoft Windows NT Workstation 4.0 - Microsoft Windows XP Home - Microsoft Windows XP Professional Microsoft Office XP - Microsoft Windows 2000 Professional SP2 - Microsoft Windows 2000 Professional SP1 - Microsoft Windows 2000 Professional - Microsoft Windows 98 - Microsoft Windows ME - Microsoft Windows NT Workstation 4.0 SP6a - Microsoft Windows NT Workstation 4.0 SP6 - Microsoft Windows NT Workstation 4.0 SP5 - Microsoft Windows NT Workstation 4.0 SP4 - Microsoft Windows NT Workstation 4.0 SP3 - Microsoft Windows NT Workstation 4.0 SP2 - Microsoft Windows NT Workstation 4.0 SP1 - Microsoft Windows NT Workstation 4.0 - Microsoft Windows XP Home - Microsoft Windows XP Professional Microsoft Office 2007 SP1 Microsoft Office 2007 0 + Microsoft Access 2007 0 + Microsoft Excel 2003 + Microsoft Excel 2007 0 + Microsoft FrontPage 2003 + Microsoft Groove 2007 0 + Microsoft InfoPath 2003 + Microsoft InfoPath 2007 0 + Microsoft Office Communicator 2007 0 + Microsoft OneNote 2003 0 + Microsoft Outlook 2003 0 + Microsoft Outlook 2007 0 + Microsoft PowerPoint 2003 0 + Microsoft PowerPoint 2007 0 + Microsoft Project Professional 2007 0 + Microsoft Project Standard 2007 0 + Microsoft Publisher 2003 + Microsoft Publisher 2007 0 + Microsoft SharePoint Designer 2007 0 + Microsoft Visio Professional 2007 0 + Microsoft Visio Standard 2007 0 Microsoft Office 2003 SP3 Microsoft Office 2003 SP2 Microsoft Office 2003 SP1 Microsoft Office 2003 0 + Microsoft Excel 2003 + Microsoft FrontPage 2003 + Microsoft InfoPath 2003 + Microsoft OneNote 2003 0 + Microsoft Outlook 2003 0 + Microsoft PowerPoint 2003 0 + Microsoft Publisher 2003 可参考如下补丁: Microsoft Office XP SP3 Microsoft Security Update for Microsoft Office XP (KB953405) <a href=http://www.microsoft.com/downloads/details.aspx?familyid=ef3de64c-fc17 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=ef3de64c-fc17</a> -4500-9da4-a3bba97fda6d Microsoft OneNote 2007 0 Microsoft Security Update for Microsoft Office OneNote 2007 (KB955047) <a href=http://www.microsoft.com/downloads/details.aspx?familyid=8ac3576c-7873 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=8ac3576c-7873</a> -4ac6-8bbc-033f6a7bb395 Microsoft Office 2003 SP2 Microsoft Security Update for Microsoft Office 2003 (KB953404) <a href=http://www.microsoft.com/downloads/details.aspx?familyid=e670ad22-d3c1 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=e670ad22-d3c1</a> -41f7-ba30-6a67139feaa3 Microsoft Office 2007 0 Microsoft Security Update for Microsoft Office 2007 (KB955047) 2007 Microsoft Office System Service Pack 1 <a href=http://www.microsoft.com/downloads/details.aspx?familyid=fb457536-26c5 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=fb457536-26c5</a> -428b-97e4-1fc13718266e Microsoft Office XP SP1 Microsoft Security Update for Microsoft Office XP (KB953405) <a href=http://www.microsoft.com/downloads/details.aspx?familyid=ef3de64c-fc17 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=ef3de64c-fc17</a> -4500-9da4-a3bba97fda6d Microsoft Office XP SP2 Microsoft Security Update for Microsoft Office XP (KB953405) <a href=http://www.microsoft.com/downloads/details.aspx?familyid=ef3de64c-fc17 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=ef3de64c-fc17</a> -4500-9da4-a3bba97fda6d Microsoft Office XP Microsoft Security Update for Microsoft Office XP (KB953405) <a href=http://www.microsoft.com/downloads/details.aspx?familyid=ef3de64c-fc17 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=ef3de64c-fc17</a> -4500-9da4-a3bba97fda6d Microsoft Office 2007 SP1 Microsoft Security Update for Microsoft Office 2007 (KB955047) 2007 Microsoft Office System Service Pack 1 <a href=http://www.microsoft.com/downloads/details.aspx?familyid=fb457536-26c5 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=fb457536-26c5</a> -428b-97e4-1fc13718266e Microsoft OneNote 2007 SP1 Microsoft Security Update for Microsoft Office OneNote 2007 (KB955047) <a href=http://www.microsoft.com/downloads/details.aspx?familyid=8ac3576c-7873 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=8ac3576c-7873</a> -4ac6-8bbc-033f6a7bb395 Microsoft Office 2003 SP3 Microsoft Security Update for Microsoft Office 2003 (KB953404) <a href=http://www.microsoft.com/downloads/details.aspx?familyid=e670ad22-d3c1 target=_blank>http://www.microsoft.com/downloads/details.aspx?familyid=e670ad22-d3c1</a> -41f7-ba30-6a67139feaa3
idSSV:4016
last seen2017-11-19
modified2008-09-11
published2008-09-11
reporterRoot
titleMicrosoft Office OneNote URL处理远程代码执行漏洞(MS08-055)