{"exploit":{"id":"EDB-40906","name":"Apple iOS 10.1.x - Certificate File Memory Corruption","description":"Apple iOS 10.1.x - Certificate File Memory Corruption","cves":["CVE-2016-7626"],"author":"Maksymilian Arciemowicz","published":"2016-12-12","platform":"ios","type":"dos","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/40906","path":"exploits/ios/dos/40906.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-40906.txt","vulnerabilities":[{"id":"CVE-2016-7626","state":"PUBLISHED","title":null,"titleSource":null,"description":"An issue was discovered in certain Apple products. iOS before 10.2 is affected. tvOS before 10.1 is affected. watchOS before 3.1.1 is affected. The issue involves the \"Profiles\" component. It allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption and application crash) via a crafted certificate profile.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2016-7626","cvss":{"version":"3.0","baseScore":8.8,"severity":"high","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2016-7626"},"updatedAt":"2024-08-06T02:04:55.688Z","retrievedAt":"2026-11-26T21:08:44.630Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-40906.png?v=2","url":"https://exploitbin.com/exploits/EDB-40906","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-40906/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-40906/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Source: https://cxsecurity.com/issue/WLB-2016110046\n\niOS 10.1.x Remote memory corruption through certificate file\nCredit: Maksymilian Arciemowicz from https://cxsecurity.com\n\n--------------------------------------------------------------------------------------\n0. Short description\nSpecial crafted certificate file may lead to memory corruption of several processes and the vector attack may be through Mobile Safari or Mail app. Attacker may control the overflow through the certificate length in OCSP field\n\n--------------------------------------------------------------------------------------\n1. Possible vectors of attack\n- Apple Mail (double click on certificate)\n- Safari Mobile ( go to special crafted link eg https://cert.cx/appleios10/700k.php which will redirect you to CRT file )\n- other unspecified\n\n--------------------------------------------------------------------------------------\n2. Symptoms of memory overflow\nBy appropriate length of the certificate, an attacker can trigger crash of:\n- profiled\n- Preferences\n- other unexpected behaviors\n\n--------------------------------------------------------------------------------------\n3. Crash log:\n- profiled\n---------------------------------------------------------------\n{\"app_name\":\"profiled\",\"app_version\":\"\",\"bug_type\":\"109\",\"timestamp\":\"2016-09-20 09:15:09.85 +0200\",\"os_version\":\"iPhone OS 10.0.1 (14A403)\",\"incident_id\":\"XXXXXXXXXXXXXX\",\"slice_uuid\":\"XXXXXXXXXXXXXX\",\"build_version\":\"\",\"is_first_party\":true,\"share_with_app_devs\":false,\"name\":\"profiled\"}\nIncident Identifier: XXXXXXXXXXXXXX\nCrashReporter Key: XXXXXXXXXXXXXX\nHardware Model: iPhone6,2\nProcess: profiled [1595]\nPath: /System/Library/PrivateFrameworks/ManagedConfiguration.framework/Support/profiled\nIdentifier: profiled\nVersion: ???\nCode Type: ARM-64 (Native)\nRole: Unspecified\nParent Process: launchd [1]\nCoalition: <none> [253]\n\n\nDate/Time: 2016-09-20 09:15:09.7892 +0200\nLaunch Time: 2016-09-20 09:15:01.1603 +0200\nOS Version: iPhone OS 10.0.1 (14A403)\nReport Version: 104\n\nException Type: EXC_BAD_ACCESS (SIGSEGV)\nException Subtype: KERN_INVALID_ADDRESS at 0x000000016e193ca0\nTermination Signal: Segmentation fault: 11\nTermination Reason: Namespace SIGNAL, Code 0xb\nTerminating Process: exc handler [0]\nTriggered by Thread: 2\n\n---------------------------------------------------------------\n\n- Preferences\n---------------------------------------------------------------\n{\"app_name\":\"Preferences\",\"timestamp\":\"2016-09-20 01:11:44.56 +0200\",\"app_version\":\"1\",\"slice_uuid\":\"XXXXXXXXXXX\",\"adam_id\":0,\"build_version\":\"1.0\",\"bundleID\":\"com.apple.Preferences\",\"share_with_app_devs\":false,\"is_first_party\":true,\"bug_type\":\"109\",\"os_version\":\"iPhone OS 10.0.1 (14A403)\",\"incident_id\":\"XXXXXXXXXXX\",\"name\":\"Preferences\"}\nIncident Identifier: XXXXXXXXXXX\nCrashReporter Key: XXXXXXXXXXX\nHardware Model: iPhone6,2\nProcess: Preferences [1517]\nPath: /Applications/Preferences.app/Preferences\nIdentifier: com.apple.Preferences\nVersion: 1.0 (1)\nCode Type: ARM-64 (Native)\nRole: Foreground\nParent Process: launchd [1]\nCoalition: com.apple.Preferences [754]\n\n\nDate/Time: 2016-09-20 01:11:43.4478 +0200\nLaunch Time: 2016-09-20 01:10:54.3002 +0200\nOS Version: iPhone OS 10.0.1 (14A403)\nReport Version: 104\n\nException Type: EXC_BAD_ACCESS (SIGSEGV)\nException Subtype: KERN_INVALID_ADDRESS at 0x000000016fc6df90\nTermination Signal: Segmentation fault: 11\nTermination Reason: Namespace SIGNAL, Code 0xb\nTerminating Process: exc handler [0]\nTriggered by Thread: 0\n---------------------------------------------------------------\n\n\nLogs:\n==============================\nSep 20 20:17:02 xscxsc com.apple.CoreSimulator.SimDevice.27D...8F.launchd_sim[1905] (com.apple.managedconfiguration.profiled[3085]): Service exited due to signal: Segmentation fault: 11\nSep 20 20:17:02 xscxsc MobileSafari[2870]: (Error) MC: Queue data for acceptance error. Error: NSError:\nDesc : Couldn’t communicate with a helper application.\nSugg : Try your operation again. If that fails, quit and relaunch the application and try again.\nDomain : NSCocoaErrorDomain\nCode : 4097\nExtra info:\n{\nNSDebugDescription = \"connection to service named com.apple.managedconfiguration.profiled\";\n}\nSep 20 20:17:02 xscxsc profiled[3133]: (Note ) profiled: Service starting...\n==============================\n\n--------------------------------------------------------------------------------------\n4. PoC\nhttps://cert.cx/appleios10/300k.php\nhttps://cert.cx/appleios10/500k.php\nhttps://cert.cx/appleios10/700k.php\nhttps://cert.cx/appleios10/900k.php\n\nor https://cert.cx/appleios10/expl.html\n\njust click on this link by using Safari.\n\nEDB Proofs of Concept Mirror:\nhttps://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/40906.zip\n\n--------------------------------------------------------------------------------------\n5. Safari and sandbox\nHow is possible that safari don't ask user before run 'Preferences' app to start process of importing certificate? Safari automatically start new process without asking user for acceptance of this operation what can be exploited through http redirect to untrusted content.\n\n--------------------------------------------------------------------------------------\n\n6. References\nCAPEC-44: Overflow Binary Resource File\nhttps://capec.mitre.org/data/definitions/44.html\nhttps://cert.cx/\nhttps://cxsecurity.com/\n\nBest Regards/Pozdrowienia/С наилучшими пожеланиями\nMaksymilian Arciemowicz\n\nReferences:\n\nhttps://support.apple.com/HT207422\nhttps://support.apple.com/HT207425\nhttps://support.apple.com/HT207426\nhttps://cert.cx/appleios10/300k.php\nhttps://cert.cx/appleios10/500k.php\nhttps://cert.cx/appleios10/700k.php\nhttps://cert.cx/appleios10/900k.php\nhttps://cert.cx/appleios10/expl.html\nhttps://capec.mitre.org/data/definitions/44.html","sha256":"7ec5fdfa8a6779c67c1b0ae4fb9bc1d8dde4f789dfbd70377ccdf180ec703080","bytes":5791,"fetchedAt":"2026-11-26T21:08:43.475Z","encoding":"utf-8 (display only; download retains original bytes)"}