120 likes | 229 Views
Web Security. Eksploitasi Web. Tampilan web diubah ( deface ) dengan eksploitasi skrip. Situs yang dideface dikoleksi di http://www.alldas.org Informasi bocor (misal laporan keuangan semestinya hanya dapat diakses oleh orang/ bagian tertentu)
E N D
Eksploitasi Web • Tampilan web diubah (deface) • dengan eksploitasi skrip. Situs yang dideface dikoleksi di http://www.alldas.org • Informasi bocor • (misal laporan keuangan semestinya hanya dapat diakses oleh orang/ bagian tertentu) • Digunakan untuk menipu firewall(tunelling ke luar jaringan) • Penyadapan informasi • URLwatch: melihat siapa mengakses apa saja. Masalah privacy • DoS attack • Request dalam jumlah yang banyak (bertubi-tubi), Request yang memblokir (lambat mengirimkan perintah GET) • Malicious Input Attack • Bad input ke priviledge program : Code corruption attack – Buffer overflow, SQL Injection, Cross Site Cripting
Security Web • Tampilan web diubah (deface) • Secure Configuration pada web server dan web application • Informasi bocor • Dengan htaccess dan http Digest authentication • Digunakan untuk menipu firewall(tunelling ke luar jaringan) • Dengan sohusin • Penyadapan informasi • Dengan SSL/https • DoS attack • Firewall dan mod_security • Malicious Input Attack • Mod_security dan secure configuration
Secure Configuration • Test dengan tools vulnerability scanners misal Nikto • Konfigurasi http secara secure : • Disable Un-Needed Modules • Denial of Service (DoS) Protective Directives • Access Control: Where Clients Come From • Limiting HTTP Request Methods • Removing Default/Sample Files • Updating Ownership and Permissions • Updating the Apachectl Script • Enable Security Modules for Apache • Secure Socket Layer (SSL) • Mod_Rewrite • Mod_Log_Forensic • Mod_Dosevasive • Mod_Security
htaccess di Apache • Isi berkas “.htaccess” • AuthUserFile /home/budi/.passme • AuthGroupFile /dev/null • AuthName “Khusus untuk Tamu Budi” • AuthType Basic • <Limit GET> • require user tamu • </Limit> • Membatasi akses ke user “tamu” dan password • Menggunakan perintah “htpasswd“ untuk membuat password yang disimpan di “.passme”
Widely used to exchange text data accross different plateforms Used for the WWW on port 80 to exchange HTML files Standarized in the RFCs The current 1.1 version offers two authentication schemes; basic and digest HTTP Hyper Text Transfer Protocol • HTTP messages are composed of header-fields and entity (the payload) Protocol://destination-host/ressource
Basic Access Authentication • Password encoded in Base64; no encryption • Sent in clear for every subsequent requests • Sniffing compromises the password
response = MD5[MD5(username:realm:password):nonce:nc:cnonce:qop:MD5(method:URI)] Digest Access Authentication
Sohusin • Suhosin is an advanced protection system for PHP installations that was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core • Suhosin comes in two independent parts, that can be used separately or in combination. • The first part is a small patch against the PHP core, that implements a few low-level protections against bufferoverflows or format string vulnerabilities • The second part is a powerful PHP extension that implements all the other protections
Firewall • Firewall digunakan untuk mencegah akses yang tidak berhak ke suatu jaringan. • Bekerja dengan cara melindungi, baik dengan : • Menyaring • membatasi • menolak • Segmen tersebut dapat merupakan sebuah workstation, server, router, atau local area network (LAN) anda pc (jaringan local) <==> firewall <==> internet (jaringan lain) hubungan /kegiatan suatu segmen pada jaringan pribadi dengan jaringan luar yang bukan merupakan ruang lingkupnya
Mod_Security • ModSecurity is a web application firewall (WAF), to detect and/or prevent attacks before they reach web applications. • ModSecurity can monitor the HTTP traffic in real time in order to detect attacks.
Secure Socket Layer (SSL) • Menggunakan enkripsi untuk mengamankan transmisi data • Mulanya dikembangkan oleh Netscape - OpenSSL