Kamis, 07 Agustus 2014

Vulnerability & Exploit Fingerprint ZEM560

Sebelumnya mau mengucapkan Mohon Maaf Lahir dan Batin terlebih dahulu. Pada postingan ini saya akan membahas tentang kelemahan dan cara mengeksploitasi mesin absensi berupa fingerprint. Sebenarnya Bug ini sudah terpublish sejak tahun 2012 jika saya tidak salah. Bug ini akan dapat digunakan pada model mesin ZEM560. Control Panel mesin ini berbasiskan website dan tentunya dapat diakses oleh seseorang yang dapat menggunakan jaringan internal si kantor tersebut asalkan tidak di private oleh switch/router kantor tersebut. Berikut ini adalah tampilan interface dari halaman admin mesin fingerprint ZEM560.

[+] Device: Fingerprint & Proximity Access Control
[+] Model: ZEM560 and others
[+] Kernel: 2.6.24 Treckle on an MIPS
[+] Vulnerability: Auth Bypass
[+] Impact: By using a direct URL attackers can bypass the fingerprint
& proximity security and open the door. Attackers may change the
device configuration, create admin users, access to reports, etc.


Source: http://seclists.org/fulldisclosure/2012/Apr/37

Oke langkah awalnya adalah anda bisa melakukan scanning terlebih dahulu pada jaringan kantor anda dengan menggunakan Nmap atau tools lainnya. Jika sudah didapatkan ip targetnya maka siap beraksi. Kelemahan pada sistem fingerprint tersebut adalah interface webnya dapat dilakukan bypass melalui direct url. Seharusnya dilakukan pembatasan untuk menghindari adanya direct url ke menu tertentu. Seperti keterangan diatas telah dijelaskan dampak dari bug ini bahwa Attacker dapat mengeksploitasi dengan menambahkan akun admin, pengambil alihan password admin dan manipulasi lainnya. Alhamdulillah ketika menguji Bug ini, saya tidak melakukan keuntungan untuk diri sendiri atau orang lain karena masih takut akan dosa dari Yang Maha Kuasa, Hahaahaaa berat bener bahasanya.

Oke sebagai langkah awal untuk memastikan apakah bug tersebut dapat bekerja dengan baik, maka cobakan perintah dibawah ini dan saya asumsikan ip address target 192.168.1.1:

Perintah 1:
http://192.168.1.1/form/Device?act='or1=1--

Output 1:
Devcie restarting, please connect later!

Review 1:
Pada url dengan perintah act kita input beberapa karakter yang biasa digunakan untuk melakukan blind sql injection dan hasil yang didapatkan adalah mesin fingerprint tersebut secara otomatis akan restart. Oh ya jika diperhatikan dengan baik, maka pada penulisan output yang ada di sistem tersebut salah menuliskan kata "Device" tuh. Mungkin programmernya lagi dikejar deadline atau ngantuk saat buat kata-kata tersebut.

Perintah 2:
http://192.168.1.1/form/Device?act=9

Output 2:





Review 2:
Perintah dengan id 9 adalah untuk melakukan testing sederhana saja dan hasil yang akan didapatkan berupa text dengan berisikan Open Door. Testing ini tidak ekstrim seperti testing nomor 1 yang langsung melakukan restart terhadap perangkat tersebut.

Perintah 3:
http://192.168.1.1/form/Device?act=3

Output 3:













Review 3:
Perintah ini untuk melakukan pengaturan waktu pada mesin finger tersebut. Biasanya settingan default mesin ini adalah dengan menggunakan Adjust Mode Auto. Jika Attacker tidak ingin telat absensinya maka dapat menggunakan perintah ini tapi nanti tetap ada celah untuk investigasinya, karena bangkai pasti lama kelamaan akan tercium baunya.

Perintah 4:
http://192.168.1.1/form/Device?act=5

Output 4:








Review 4:
Perintah ini berfungsi untuk melakukan pengaturan pada TCP/IP si mesin tersebut. Nah apabila si Attacker mendapatkan informasi tersebut lebih lanjut, mungkin dapat eksploitasi lebih lanjut seperti membuat fake interface yang palsu / phissing dan selanjutnya terserah si attacker mau ngapain.

Perintah 5:
http://192.168.1.1/form/Device?act=7

Output 5:

Review 5:
Menurut saya ini risiko bersifat major, hal ini disebabkan password admin dapat diambil alih dengan mudahnya tanpa harus memasukkan password yang sebelumnya. Alangkah lebih baik apabila jika ingin mengganti password baru ditambahkan field yang berfungsi untuk memasukkan password yang lama atau sebelumnya.

Perintah 6:
http://192.168.1.1/csl/user

Output 6:
















Review 6:
Menu ini berfungsi untuk menampilan seluruh user yang terdaftar pada mesin tersebut. Disini Attacker dapat menggunakan menu option untuk melakukan modifikasi terhadap akun user tertentu.

Perintah 7:
http://192.168.1.1/csl/user?action=add

Output 7:













Review 7:
Menu ini berfungsi untuk melakukan penambahan akun untuk sistem fingerprint. Attacker dapat membuatkan hak akses berupa user, enroll, admin, superadmin, dll.


Segitu saja beberapa informasi yang dapat saya contohkan dan semoga tidak digunakan untuk yang tidak baik. Saya semata-mata hanya memberikan pengetahuan terhadap pengguna mesin ini agar lebih berhati-hati dan melakukan pencegahan agar tidak dieksploitasi sistem finger yang digunakan.

Rabu, 04 Juni 2014

DMitry on Kali Linux

Sekedar iseng pengen berbagi tentang software DMitry yang sudah tersedia di sistem operasi Kali Linux. Software ini berfungsi untuk mencari dan mengumpulkan informasi terkait website atau ip address yang bersifat publish.

Software DMitry ini mengingatkan saya ketika belajar Disaster Recovery Plan yang diajarkan oleh Pak Dimitri (SharingVision.com) atau nama yang berasal dari Rusia sana.

Daripada terus out off topic, sebaiknya menjelaskan apa saja fitur yang ada di software DMitry adalah:

- Mengumpulkan informasi seperti Whois website (domain) ini atau IP tersebut.
- Mengambil informasi dari Netcraft.com.
- Melakukan pencarian sub domain dari website yang digunakan sebagai target kita.
- Mengumpulkan alamat email domain tersebut tapi saya kurang suka karena terkadang fitur ini tidak berhasil. Saya lebih suka menggunakan harvesting atau metasploit untuk mengumpulkan akun email.
- Melakukan scanning daftar port yang bersifat open.


Langkah untuk menjalankan software ini adalah:
1. Buka console anda terlebih dahulu.
2. Ketikkan "dmitry". Anda akan diberikan penjelasan singkat mengenai command yang bisa digunakan.










3. Saya disini akan mengambil contoh dengan melakukan scanning ke domain milik Regulator di Indonesia dan mohon maaf sebelumnya jika website tersebut menjadi contoh :-)






















Jika kita ingin melakukan port yang terbuka dari domain tersebut juga bisa dengan menggunakan perintah:

# dmitry -p targethost -f -b

Tapi saran saya lebih enak menggunakan NMap loh dikarenakan kita bisa juga melihat sistem operasi apa yang digunakan serta perintah lainnya.




Demikian tutorial singkat ini semoga dapat menambah wawasan anda dan sekali lagi saya minta maaf apabila terdapat kesalahan dalam penulisan artikel ini.

Jumat, 23 Mei 2014

Top 20 Penetration Testing Tools

Bagi para pentester, berikut ini adalah tools yang biasanya digunakan:

1) Metasploit 

Metasploit pentesting tool
This is the most advanced and popular Framework that can be used to for pen-testing. It is based on the concept of ‘exploit’ which is a code that can surpass the security measures and enter a certain system. If entered, it runs a ‘payload’, a code that performs operations on a target machine, thus creating the perfect framework for penetration testing.

It can be used on web applications, networks, servers etc. It has a command-line and a GUI clickable interface, works on Linux, Apple Mac OS X and Microsoft Windows. This is a commercial product, although there might be free limited trials available.
Download link: Metasploit Download

2) Wireshark

Wireshark logo
This is basically a network protocol analyzer –popular for providing the minutest details about your network protocols, packet information, decryption etc. It can be used on Windows, Linux, OS X, Solaris, FreeBSD, NetBSD, and many other systems. The information that is retrieved via this tool can be viewed through a GUI, or the TTY-mode TShark utility.  You can get your own free version of the tool from here.
Download link: Wireshark download

3) w3af

w3af4
W3afis a Web Application Attack and Audit Framework.
Some of the features are: fast HTTP requests, integration of web and proxy servers into the code, injecting payloads into various kinds of HTTP requests etc.
It has a command-line interface, works on Linux, Apple Mac OS X and Microsoft Windows.
All versions are free of charge to download.
Download link: w3af download

4) CORE Impact

CORE Impact
CORE Impact Pro can be used to test mobile device penetration, network/network devise penetration, password identification and cracking, etc. It has a command-line and a GUI clickable interface, works Microsoft Windows. This is one of the expensive tools in this line and all the information can be found at below page.
Download link: CORE Impact download

5) Back Track / Kali Linux

Back Track
Back Track works only on Linux Machines. The new version is called Kali Linux. This is one of the best tools available for Packet sniffing and injecting. An expertise in TCP/IP protocol and networking are key to succeed using this tool. For information and to download a free copy, visit below page.
Download link: Back Track download 

6) Netsparker

Netsparker logo
Netsparker comes with a robust web application scanner that will identify vulnerabilities, suggest remedial action etc. This tool can also help exploit SQL injection and LFI (local file induction). It has a command-line and GUI interface, works only on Microsoft Windows. This is a commercial product, although there might be free limited trials available at below page.
Download link: Netsparker download

7) Nessus

Nessus logo
Nessus also is a scanner and one that needs to be watched out for. It is one of the most robust vulnerability identifier tools available. It specializes in compliance checks, Sensitive data searches, IPs scan, website scanning etc. and aids in finding the ‘weak-spots’. It works on most of the environments.
Download link: Nessus download

8) Burpsuite

Burpsuite logo
Burp suite is also essentially a scanner (with a limited “intruder” tool for attacks), although many security testing specialists swear that pen-testing without this tool is unimaginable. The tool is not free, but very cost effective. Take a look at it on below download page. It mainly works wonders with intercepting proxy, crawling content and functionality, web application scanning etc.  You can use this on Windows, Mac OS X and Linux environments.
Download link: Burp suite download

9) Cain & Abel

If cracking encrypted passwords or network keys is what you need, then Cain& Abel is the tool for you. It uses network sniffing, Dictionary, Brute-Force and Cryptanalysis attacks, cache uncovering and routing protocol analysis methods to achieve this. Check out information about this free to use tool at below page. This is exclusively for Microsoft operating systems.
Download link: Cain & Abel download

10) Zed Attack Proxy (ZAP)

Zed Attack Proxy logo
ZAP is a completely free to use, scanner and security vulnerability finder for web applications. ZAP includes Proxy intercepting aspects, variety of scanners, spiders etc. It works on most platforms and the more information can be obtained from below page.
Download link: ZAP download

11) Acunetix

Acunetix logo
Acunetix is essentially a web vulnerability scanner targeted at web applications. It provides SQL injection, cross site scripting testing, PCI compliance reports etc. along with identifying a multitude of vulnerabilities. While this is among the more ‘pricey’ tools, a limited time free trial version can be obtained at below page.
Download link: Acunetix download

12) John The Ripper

John The Ripper logo
Another password cracker in line is, John the Ripper. This tool works on most of the environments, although it’s primarily for UNIX systems. It is considered one of the fastest tools in this genre. Password hash code and strength-checking code are also made available to be integrated to your own software/code which I think is very unique. This tool comes in a pro and free form. Check out its site to obtain the software on this page.
Download link: John the Ripper download

13) Retina

Retina logo
As opposed to a certain application or a server, Retina targets the entire environment at a particular company/firm. It comes as a package called Retina Community. It is a commercial product and is more of a vulnerability management tool more than a pen-testing tool. It works on having scheduled assessments and presenting results. Check out more about this package at below page.
Download link: Retina download

14) Sqlmap

Sqlmap pen test logo
Sqlmap is again a good open source pen testing tool. This tool is mainly used for detecting and exploiting SQL injection issues in an application and hacking over of database servers. It comes with command-line interface. Platform: Linux, Apple Mac OS X and Microsoft Windows are supported platforms. All versions of this tool are free for download.
Download link: Sqlmap download

15) Canvas

Canvas pen test logo
Immunity’s CANVAS is a widely used tool that contains more than 400 exploits and multiple payload options. It renders itself useful for web applications, wireless systems, networks etc. It has a command-line and GUI interface, works on Linux, Apple Mac OS X and Microsoft Windows. It is not free of charge and can more information can be found at below page.
Download link: Canvas download

16) Social Engineer Toolkit

Social Engineer Toolkit logo
The Social-Engineer Toolkit (SET) is a unique tool in terms that the attacks are targeted at the human element than on the system element. It has features that let you send emails, java applets, etc containing the attack code. It goes without saying that this tool is to be used very carefully and only for ‘white-hat’ reasons.  It has a command-line interface, works on Linux, Apple Mac OS X and Microsoft Windows. It is open source and can be found at below page.
Download link: SET download

17) Sqlninja

Sqlninja penetration testing
Sqlninja, as the name indicates is all about taking over the DB server using SQL injection in any environment. This product by itself claims to be not so stable its popularity indicates how robust it is already with the DB related vulnerability exploitation. It has a command-line interface, works on Linux, Apple Mac OS X and not on Microsoft Windows. It is open source and can be found at this page.
Download link: Sqlninja download

18) Nmap

Nmap logo
“Network Mapper” though not necessarily a pen-testing tool, it is a must-have for the ethical hackers. This is a very popular tool that predominantly aids in understanding the characteristics of any target network. The characteristics can include: host, services, OS, packet filters/firewalls etc.  It works on most of the environments and is open sourced.
Download link: Nmap download

19) BeEF

BeEF  pen testing tool
BeEF is short for The Browser Exploitation Framework. It is a penetration testing tool that focuses on the web browser- what this means is that, it takes advantage of the fact that an open web-browser is the window(or crack) into a target system and designs its attacks to go on from this point on . It has a GUI interface, works on Linux, Apple Mac OS X and Microsoft Windows. It is open source and can be found at this page.
Download link: BeEF download

20) Dradis

Dradis pen testing tool
Dradis is an open source framework (a web application) that helps with maintaining the information that can be shared among the participants of a pen-test. The information collected helps understand what is done and what needs to be done. It achieves this purpose by the means of plugins to read and collect data from network scanning tools, like Nmap, w3af, Nessus, Burp Suite, Nikto and many more.  It has a GUI interface, works on Linux, Apple Mac OS X and Microsoft Windows. It is open source and can be found at this page.
Download link: Dradis download

Sumber: