vendor:
HIServices.framework
by:
Project Zero
7,8
CVSS
HIGH
Heap Overflow
119
CWE
Product Name: HIServices.framework
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2017
HIServices.framework CFObject Serialization Heap Overflow Vulnerability
HIServices.framework is used by a handful of deamons and implements its own CFObject serialization mechanism. The entrypoint to the deserialization code is AXUnserializeCFType; it reads a type field and uses that to index an array of function pointers for the support types. From a cursory inspection it's clear that these methods don't expect to parse untrusted data. The first method, cfStringUnserialize, trusts the length field in the serialized representation and uses that to byte-swap the string without any bounds checking leading to me to believe that this is a heap overflow vulnerability.
Mitigation:
Ensure that all data is properly validated before being used in deserialization operations.