Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 21:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



XNU 10.9 Kernel Exploit? Dise "Lücken" Ausnutzen?

Discussion on XNU 10.9 Kernel Exploit? Dise "Lücken" Ausnutzen? within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2013
Posts: 211
Received Thanks: 36
Lightbulb XNU 10.9 Kernel Exploit? Dise "Lücken" Ausnutzen?

Hallo, ich habe mir heute mal wieder etwas Zeit genommen einen Blick in den XNU Kernel zu werfen und analysierte mal /bsd/sys weil dort ja die spawn.h datei liegt in der _POSIX_SPAWN_DISABLE_ASLR auf 0x100 defined.
Naja jedenfalls habe ich in der imgact.h den folgenden Code gefunden:
PHP Code:
#define    IMGPF_DISABLE_ASLR    0x00000020    /* disable ASLR */
#define    IMGPF_ALLOW_DATA_EXEC    0x00000040    /* forcibly disallow data execution */
#define    IMGPF_SPAWN        0x00000010    /* spawn (without setexec) */ 
In proc.h:
PHP Code:
#define    P_DISABLE_ASLR    0x00001000    /* Disable address space layout randomization */ 
Noch mal alles hier:

Naja ich habe zwar noch anderes Zeug aber ich würde das erstmal nicht rausgeben. Ich dachte mit, dass wen das hier v.l. ausnutzbar ist, ich mit fuzzing und Crash Analyze den PC/IP Register unter Kontrolle bekommen könnte um den kompletten MobileSafari Prozess unter Kontrolle zu bekommen und Code zu laden.

Ich dachte erstmal, dass das nicht ausnutzbar ist, aber da man ja mit POSIX_SPAWN binaries starten kann, dachte ich mir v.l. kann man das mit diesen #define manipulieren.

Wie z.b. mit der im iOS 6.1.3 basierenden XNU Kernel mit spawn.h:
PHP Code:
#include <spawn.h>

#define    POSIX_SPAWN_SETEXEC        0x0040

int main()
{
    
posix_spawnattr_t attr;
    
posix_spawnattr_init(&attr);
    
posix_spawnattr_setflags(&attrPOSIX_SPAWN_SETEXEC);
    
posix_spawn(NULL"./test"NULL, &attrNULLNULL);

Danke für eure Hilfe
iOSsec is offline  
Old 02/27/2014, 08:44   #2
♥ Yuuki Asuna ♥



 
DarkOPM's Avatar
 
elite*gold: 45
The Black Market: 140/0/0
Join Date: Jun 2005
Posts: 54,906
Received Thanks: 8,583
Arrow Smartphones -> C/C++

#moved
DarkOPM is offline  
Reply


Similar Threads Similar Threads
Account-System "Lücken"
11/20/2010 - Last Chaos - 20 Replies
Hey, mir ist letzt aufgefallen: ich will einen Acc verkaufen, der Handel läuft wie immer ich krig PSC, er krigt daten von Gas und IG (bei aeria halt nur Gas)... *aus sicherheitsgründen gelöscht, da anleitung zum perfekten Scamm* kennt einer das ? LG



All times are GMT +1. The time now is 21:44.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.