Vulnerabilities > CVE-2013-3895 - Permissions, Privileges, and Access Controls vulnerability in Microsoft Office web Apps and Sharepoint Server

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
microsoft
CWE-264
nessus

Summary

Microsoft SharePoint Server 2007 SP3 and 2010 SP1 and SP2 allows remote attackers to conduct clickjacking attacks via a crafted web page, aka "Parameter Injection Vulnerability."

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Accessing, Modifying or Executing Executable Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Blue Boxing
    This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.

Msbulletin

bulletin_idMS13-084
bulletin_url
date2013-10-08T00:00:00
impactRemote Code Execution
knowledgebase_id2885089
knowledgebase_url
severityImportant
titleVulnerabilities in Microsoft SharePoint Server Could Allow Remote Code Execution

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS13-084.NASL
descriptionThe versions of Office SharePoint Server, SharePoint Server, Windows SharePoint Services, SharePoint Foundation, or Office Web Apps installed on the remote host are affected by multiple vulnerabilities : - A remote code execution vulnerability exists in the way that Microsoft Office Services and Web Apps parse content in specially crafted files. (CVE-2013-3889) - An elevation of privilege vulnerability exists. (CVE-2013-3895)
last seen2020-06-01
modified2020-06-02
plugin id70336
published2013-10-09
reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/70336
titleMS13-084: Vulnerabilities in Microsoft SharePoint Server Could Allow Remote Code Execution (2885089)
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(70336);
  script_version("1.14");
  script_cvs_date("Date: 2018/11/15 20:50:31");

  script_cve_id("CVE-2013-3889", "CVE-2013-3895");
  script_bugtraq_id(62800, 62829);
  script_xref(name:"MSFT", value:"MS13-084");
  script_xref(name:"MSKB", value:"2589365");
  script_xref(name:"MSKB", value:"2596741");
  script_xref(name:"MSKB", value:"2752002");
  script_xref(name:"MSKB", value:"2760561");
  script_xref(name:"MSKB", value:"2826022");
  script_xref(name:"MSKB", value:"2826028");
  script_xref(name:"MSKB", value:"2826029");
  script_xref(name:"MSKB", value:"2826030");
  script_xref(name:"MSKB", value:"2826036");
  script_xref(name:"MSKB", value:"2827222");
  script_xref(name:"MSKB", value:"2827327");
  script_xref(name:"IAVB", value:"2013-B-0116");

  script_name(english:"MS13-084: Vulnerabilities in Microsoft SharePoint Server Could Allow Remote Code Execution (2885089)");
  script_summary(english:"Checks SharePoint / Office Web Apps version");

  script_set_attribute(attribute:"synopsis", value:"The remote host is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The versions of Office SharePoint Server, SharePoint Server, Windows
SharePoint Services, SharePoint Foundation, or Office Web Apps
installed on the remote host are affected by multiple vulnerabilities :

  - A remote code execution vulnerability exists in the way
    that Microsoft Office Services and Web Apps parse
    content in specially crafted files. (CVE-2013-3889)

  - An elevation of privilege vulnerability exists.
    (CVE-2013-3895)");

  script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2013/ms13-084");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released a set of patches for SharePoint Server 2007,
SharePoint Server 2010, SharePoint Foundation 2010, SharePoint Server
2013, and Office Web Apps 2010.");
  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_set_attribute(attribute:"vuln_publication_date", value:"2013/10/08");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/10/08");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/09");

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

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

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

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

global_var bulletin, vuln;

function get_ver()
{
  local_var fh, path, rc, share, ver;

  path = _FCT_ANON_ARGS[0];

  share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:path);

  rc = NetUseAdd(share:share);
  if (rc != 1)
  {
    NetUseDel();
    audit(AUDIT_SHARE_FAIL, share);
  }

  ver = NULL;
  path = ereg_replace(string:path, pattern:"^[A-Za-z]:(.*)", replace:'\\1\\');

  fh = CreateFile(
    file               : path,
    desired_access     : GENERIC_READ,
    file_attributes    : FILE_ATTRIBUTE_NORMAL,
    share_mode         : FILE_SHARE_READ,
    create_disposition : OPEN_EXISTING
  );
  if (!isnull(fh))
  {
    ver = GetFileVersion(handle:fh);
    ver = join(ver, sep:".");
    CloseFile(handle:fh);
  }

  NetUseDel(close:FALSE);

  return ver;
}

function check_vuln(fix, kb, name, path, ver)
{
  local_var info;

  if (isnull(ver))
    ver = get_ver(path);

  if (isnull(ver) || ver_compare(ver:ver, fix:fix, strict:FALSE) >= 0)
    return 0;

  info =
    '\n  Product           : ' + name +
    '\n  Path              : ' + path +
    '\n  Installed version : ' + ver +
    '\n  Fixed version     : ' + fix +
    '\n';
  hotfix_add_report(info, bulletin:bulletin, kb:kb);

  vuln = TRUE;
}

get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");

bulletin = "MS13-084";
kbs = make_list(
  2589365, 2596741, 2752002, 2760561,
  2826022, 2826028, 2826029, 2826030,
  2826036, 2827222, 2827327);

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", exit_code:1);

# Connect to the registry.
registry_init();
hklm = registry_hive_connect(hive:HKEY_LOCAL_MACHINE, exit_on_fail:TRUE);

# Get the path information for SharePoint Server 2007
sps_2007_path = get_registry_value(
  handle : hklm,
  item   : "SOFTWARE\Microsoft\Office Server\12.0\InstallPath"
);

# Get path information for SharePoint Server 2010.
sps_2010_path = get_registry_value(
  handle : hklm,
  item   : "SOFTWARE\Microsoft\Office Server\14.0\InstallPath"
);

# Get the path information for SharePoint Server 2013
sps_2013_path = get_registry_value(
  handle : hklm,
  item   : "SOFTWARE\Microsoft\Office Server\15.0\InstallPath"
);

# Get the path information for SharePoint Service 3.0
sps_30_path = get_registry_value(
  handle : hklm,
  item   : "SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Location"
);

# Get path information for SharePoint Foundation 2010.
spf_2010_path = get_registry_value(
  handle : hklm,
  item   : "SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\Location"
);

# Close connection to registry.
RegCloseKey(handle:hklm);
close_registry(close:FALSE);

# Get path information for Windows.
windir = hotfix_get_systemroot();
if (isnull(windir))
  exit(1, "Failed to determine the location of %windir%.");

# Get path information for Common Files.
commonprogramfiles = hotfix_get_commonfilesdir();
if (isnull(commonprogramfiles))
  exit(1, "Failed to determine the location of %commonprogramfiles%.");

# Get path information for Office Web Apps.
owa_2010_path = sps_2010_path;

######################################################################
# SharePoint Server 2007 SP3
#
# [KB2827327] xlsrv.dll: 12.0.6683.5002
######################################################################
if (sps_2007_path)
{
  name = "Office SharePoint Server 2007";

  get_kb_item_or_exit("SMB/Registry/Uninstall/Enumerated", exit_code:1);

  check_vuln(
    name : name,
    kb   : "2827327",
    path : sps_2007_path + "Bin\xlsrv.dll",
    fix  : "12.0.6683.5002"
  );

  display_names = get_kb_list("SMB/Registry/HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/*/DisplayName");
  if (display_names)
  {
    kb2596741 = FALSE;
    foreach item (keys(display_names))
    {
      if ('Security Update for Microsoft Office SharePoint Server 2007 (KB2596741)' >< display_names[item])
      {
        kb2596741 = TRUE;
        break;
      }
    }
  }
  if (!kb2596741)
  {
    hotfix_add_report('\n  According to the registry, KB2596741 is missing.\n', bulletin:bulletin, kb:2596741);
    vuln++;
  }
}

######################################################################
# SharePoint Foundation 2010 SP1 / SP2
#
# [KB2589365] Onetutil.dll: 14.0.7106.5002
######################################################################
if (spf_2010_path)
{
  path = spf_2010_path + "Bin\Onetutil.dll";
  ver = get_ver(path);

  if (ver && ver =~ "^14\.")
  {
    check_vuln(
      name : "SharePoint Foundation 2010",
      kb   : "2589365",
      path : path,
      ver  : ver,
      fix  : "14.0.7106.5002"
    );
  }
}

######################################################################
# SharePoint Server 2010 SP1 / SP2
#
# [KB2826029]- xlsrv.dll: 14.0.7108.5000
# [KB2826022] - sword.dll: 14.0.7109.5000
######################################################################
if (sps_2010_path)
{
  name = "Office SharePoint Server 2010";

  check_vuln(
    name : name,
    kb   : "2826029",
    path : sps_2010_path + "Bin\xlsrv.dll",
    fix  : "14.0.7108.5000"
  );

  check_vuln(
    name : "Office SharePoint Server 2010",
    kb   : "2826022",
    path : sps_2010_path + "WebServices\WordServer\Core\sword.dll",
    fix  : "14.0.7109.5000"
  );
}

######################################################################
# SharePoint Server 2013
#
# [KB2827222] Microsoft.Office.Excel.Server.dll: 15.0.4525.1000
# [KB2760561] Microsoft.Office.Server.PowePoint.dll: 15.0.4525.1000
# [KB2752002] xlsrv.dll: 15.0.4535.1007
# [KB2826036] sword.dll: 15.0.4535.1507
######################################################################
if (sps_2013_path)
{
  name = "Office SharePoint Server 2013";

  check_vuln(
    name : name,
    kb   : "2827222",
    path : windir + "\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Office.Excel.Server\v4.0_15.0.0.0__71e9bce111e9429c\Microsoft.Office.Excel.Server.dll",
    fix  : "15.0.4525.1000"
  );

  check_vuln(
    name : name,
    kb   : "2760561",
    path : windir + "\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Office.Server.PowerPoint\v4.0_15.0.0.0__71e9bce111e9429c\Microsoft.Office.Server.PowerPoint.dll",
    fix  : "15.0.4521.1000"
  );

  check_vuln(
    name : name,
    kb   : "2752002",
    path : sps_2013_path + "Bin\xlsrv.dll",
    fix  : "15.0.4535.1507"
  );

  check_vuln(
    name : name,
    kb   : "2826036",
    path : sps_2013_path + "WebServices\ConversionServices\sword.dll",
    fix  : "15.0.4535.1507"
  );
}

######################################################################
# Office Web Apps 2010 SP1 / SP2
#
# [KB2826028] xlsrv.dll: 14.0.7108.5000
# [KB2826030] sword.dll: 14.0.7106.5001
######################################################################
if (owa_2010_path)
{
  check_vuln(
    name : "Office Web Apps 2010",
    kb   : "2826028",
    path : owa_2010_path + "Bin\xlsrv.dll",
    fix  : "14.0.7108.5000"
  );

  check_vuln(
    name : "Office Web Apps 2010",
    kb   : "2826030",
    path : owa_2010_path + "WebServices\ConversionService\Bin\Converter\sword.dll",
    fix  : "14.0.7109.5000"
  );
}


if (vuln)
{
  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");
}

Oval

accepted2014-12-08T04:00:15.142-05:00
classvulnerability
contributors
  • nameSecPod Team
    organizationSecPod Technologies
  • nameKumarswamy S
    organizationSecPod Technologies
definition_extensions
  • commentMicrosoft SharePoint Foundation 2010 Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:15661
  • commentMicrosoft SharePoint Foundation 2010 Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:19047
  • commentMicrosoft SharePoint Server 2010 Service Pack 1 is installed
    ovaloval:org.mitre.oval:def:15614
  • commentMicrosoft SharePoint Server 2010 Service Pack 2 is installed
    ovaloval:org.mitre.oval:def:18921
  • commentMicrosoft Office SharePoint Server 2007 SP3 is installed
    ovaloval:org.mitre.oval:def:15537
  • commentMicrosoft SharePoint Services 3.0 SP3 is installed
    ovaloval:org.mitre.oval:def:14966
descriptionMicrosoft SharePoint Server 2007 SP3 and 2010 SP1 and SP2 allows remote attackers to conduct clickjacking attacks via a crafted web page, aka "Parameter Injection Vulnerability."
familywindows
idoval:org.mitre.oval:def:18991
statusaccepted
submitted2013-10-16T14:45:34
titleParameter injection vulnerability in Microsoft SharePoint (CVE-2013-3895) - MS13-084
version12