Vulnerabilities > CVE-2013-5163 - Improper Authentication vulnerability in Apple mac OS X

047910
CVSS 6.6 - MEDIUM
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
COMPLETE
Availability impact
COMPLETE
local
low complexity
apple
CWE-287
nessus

Summary

Directory Services in Apple Mac OS X before 10.8.5 Supplemental Update allows local users to bypass password-based authentication and modify arbitrary Directory Services records via unspecified vectors. per http://lists.apple.com/archives/security-announce/2013/Oct/msg00000.html version 10.8.5 is vulnerable.

Vulnerable Configurations

Part Description Count
OS
Apple
80

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Authentication Abuse
    An attacker obtains unauthorized access to an application, service or device either through knowledge of the inherent weaknesses of an authentication mechanism, or by exploiting a flaw in the authentication scheme's implementation. In such an attack an authentication mechanism is functioning but a carefully controlled sequence of events causes the mechanism to grant access to the attacker. This attack may exploit assumptions made by the target's authentication procedures, such as assumptions regarding trust relationships or assumptions regarding the generation of secret values. This attack differs from Authentication Bypass attacks in that Authentication Abuse allows the attacker to be certified as a valid user through illegitimate means, while Authentication Bypass allows the user to access protected material without ever being certified as an authenticated user. This attack does not rely on prior sessions established by successfully authenticating users, as relied upon for the "Exploitation of Session Variables, Resource IDs and other Trusted Credentials" attack patterns.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Utilizing REST's Trust in the System Resource to Register Man in the Middle
    This attack utilizes a REST(REpresentational State Transfer)-style applications' trust in the system resources and environment to place man in the middle once SSL is terminated. Rest applications premise is that they leverage existing infrastructure to deliver web services functionality. An example of this is a Rest application that uses HTTP Get methods and receives a HTTP response with an XML document. These Rest style web services are deployed on existing infrastructure such as Apache and IIS web servers with no SOAP stack required. Unfortunately from a security standpoint, there frequently is no interoperable identity security mechanism deployed, so Rest developers often fall back to SSL to deliver security. In large data centers, SSL is typically terminated at the edge of the network - at the firewall, load balancer, or router. Once the SSL is terminated the HTTP request is in the clear (unless developers have hashed or encrypted the values, but this is rare). The attacker can utilize a sniffer such as Wireshark to snapshot the credentials, such as username and password that are passed in the clear once SSL is terminated. Once the attacker gathers these credentials, they can submit requests to the web service provider just as authorized user do. There is not typically an authentication on the client side, beyond what is passed in the request itself so once this is compromised, then this is generally sufficient to compromise the service's authentication scheme.
  • Man in the Middle Attack
    This type of attack targets the communication between two components (typically client and server). The attacker places himself in the communication channel between the two components. Whenever one component attempts to communicate with the other (data flow, authentication challenges, etc.), the data first goes to the attacker, who has the opportunity to observe or alter it, and it is then passed on to the other component as if it was never intercepted. This interposition is transparent leaving the two compromised components unaware of the potential corruption or leakage of their communications. The potential for Man-in-the-Middle attacks yields an implicit lack of trust in communication or identify between two components.

Nessus

NASL familyMacOS X Local Security Checks
NASL idMACOSX_10_8_5_SU1.NASL
descriptionThe remote host is running a version of Mac OS X 10.8 that is missing the OS X v10.8.5 Supplemental Update. This update fixes a logic issue in verification of authentication credentials by Directory Services, which could otherwise allow a local attacker to bypass password validation.
last seen2019-10-28
modified2013-10-04
plugin id70301
published2013-10-04
reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/70301
titleMac OS X 10.8 < 10.8.5 Supplemental Update
code
#TRUSTED 2033be1fc0e964a0a56a032608aadccc5639cd50403c108a3d3de2881550ead2de4c94d00d0ef33bd453d84d56297bc46613dd5835e1b61ecd08b5513cbb0fbf3cbbd1028ce9fa189a45d0334cac7eaa1c3fea4c6f841cd0dd1ad511650483d8813fbcc0bbda97d1bdf46a3825e13890d75131b2cb2b54ea092f7056cafffcd3d03ec8a3fe8932e814a6eddc5822fb91be77a95fcef3c0ce90b14f61bb694667775ea3ac4c5ede15ba5c0b0d047ab0d4ecaca98e876fac4d8ca4c3cb48d5eb4d63fdd71d95b6fc86c58abc1707146514d71e6e63d61f1e188b00c33030e39c194866636eab994d4442c40290361149775544ed4c604ef320e87066153b4c23051e36617dfa487355af003fa5eceaa5efb2fcdb949a1e297bf68c680978be7467479e7993ddc99fd080090e750f24a8632591e71d6911715666936df32d4ce2ab0a9b11b72bdc2e7435be3177e75f94e122ec02e71e5ccd44290a2165c822177c185b91c6929639d7a4504c4d0fe8138d6c1ceb21cc8bbbcd9c370904d028da96fa9f6151840790889cd8b1cb79f41918d8d214818a6f12369d476791c4bcb64dbe824756d7b8857b90e5a3c866f809161b55173fdea921e9c254b6d2b996ef1cea15d06f26baa531c97cf88e510de293cfc49cc019879e46aab26df8b9b8f771271a37cf1e072ad533e2cc73d50f9fdc056883809199b5200cd27416d02d78cf
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


if (description)
{
  script_id(70301);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14");

  script_cve_id("CVE-2013-5163");
  script_bugtraq_id(62812);
  script_xref(name:"APPLE-SA", value:"APPLE-SA-2013-10-03-1");

  script_name(english:"Mac OS X 10.8 < 10.8.5 Supplemental Update");
  script_summary(english:"Check the version of Mac OS X");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote host is missing a Mac OS X security update that fixes a
local security bypass vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The remote host is running a version of Mac OS X 10.8 that is missing
the OS X v10.8.5 Supplemental Update.  This update fixes a logic issue
in verification of authentication credentials by Directory Services,
which could otherwise allow a local attacker to bypass password
validation."
  );
  script_set_attribute(attribute:"see_also", value:"http://support.apple.com/kb/HT5964");
  script_set_attribute(attribute:"see_also", value:"http://lists.apple.com/archives/security-announce/2013/Oct/msg00000.html");
  script_set_attribute(attribute:"see_also", value:"http://www.securityfocus.com/archive/1/528980/30/0/threaded");
  script_set_attribute(attribute:"solution", value:"Install the OS X v10.8.5 Supplemental Update.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/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/03");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/10/03");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/10/04");

  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:apple:mac_os_x");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"MacOS X Local Security Checks");

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

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/MacOSX/Version");

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("ssh_func.inc");
include("macosx_func.inc");



if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
  enable_ssh_wrappers();
else disable_ssh_wrappers();

if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);

os = get_kb_item("Host/MacOSX/Version");
if (!os) audit(AUDIT_OS_NOT, "Mac OS X");
if (!ereg(pattern:"Mac OS X 10\.8([^0-9]|$)", string:os)) audit(AUDIT_OS_NOT, "Mac OS X 10.8");
if (!ereg(pattern:"Mac OS X 10\.8($|\.[0-5]([^0-9]|$))", string:os)) exit(0, "The remote host uses a version of Mac OS X Mountain Lion later than 10.8.5.");


# Get the product build version.
plist = "/System/Library/CoreServices/SystemVersion.plist";
cmd =
  'plutil -convert xml1 -o - \'' + plist + '\' | ' +
  'grep -A 1 ProductBuildVersion | ' +
  'tail -n 1 | ' +
  'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\'';
build = exec_cmd(cmd:cmd);
if (
  !strlen(build) ||
  build !~ "^12F[0-9]+$"
) exit(1, "Failed to extract the ProductBuildVersion from '"+plist+"'.");


if (build =~ "^12F([0-9]|[1-3][0-9]|4[0-4])$")
{
  if (report_verbosity > 0)
  {
    report = '\n  Product version                 : ' + os +
             '\n  Installed product build version : ' + build +
             '\n  Fixed product build version     : 12F45' +
             '\n';
    security_warning(port:0, extra:report);
  }
  else security_warning(0);
}
else exit(0, "The host has product build version "+build+" and is not affected.");