copyright © the owasp foundation permission is granted to copy, distribute and/or modify this...

23
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP Foundation OWASP http://www.owasp.org OWASP ESAPI Swingset Fabio Cerullo OWASP Irlanda Comité Global de Educación 19 July 2011

Upload: luisa-monsanto

Post on 11-Jan-2015

28 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

Copyright © The OWASP FoundationPermission is granted to copy, distribute and/or modify this

document under the terms of the OWASP License.

The OWASP Foundation

OWASP

http://www.owasp.org

OWASP ESAPI Swingset

Fabio CerulloOWASP IrlandaComité Global de Educación

19 July 2011

Page 2: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Agenda•Introducción a OWASP ESAPI

•Areas de Seguridad Cubiertas por ESAPI

•Mapeo de ESAPI > ASVS > Swingset

•SwingSet Demo

•AppSec Latam 2011

•Preguntas y Respuestas

Page 3: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Introducción a ESAPI

•Cual es el principal problema con la mayor parte de los frameworks/controles de seguridad?

Page 4: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Introducción a ESAPI

•NO Intuitivo, Integrado o Amigable (para el desarrollador).

Page 5: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Introducción a ESAPI

•RIESGO es un camino desde el Agente de Amenaza al Impacto de Negocio

Page 6: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Introducción a ESAPI

Todas las vulnerabilidades se originan por:

ESAPI puede ayudaren estos escenarios

Page 7: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Introducción a ESAPI• OWASP ESAPI (Enterprise Security API) apunta a

proveer a los desarrolladores con todos los controles de seguridad necesarios:

• Estandarizados

• Centralizados

• Organizados

• Integrados

• Alta Calidad

• Intuitivos

• Testeados

Page 8: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Que es ESAPI?• Los Toolkits de OWASP Enterprise Security API ayudan a los

desarrolladores de software a protegerse de problemas de seguridad relacionados con el diseño o implementación de una aplicación.

• Colección de clases que encapsulan los controles de seguridad mas importantes para una aplicación.

• Existen versiones de Java EE, .Net, Javascript, Classic ASP ColdFusion/CFML, PHP y Python.

• La version de ESAPI para JAVA EE incluye un Web Application Firewall (WAF) que puede ser utilizado mientras los equipos de desarrollo se focalizan en remediar los problemas.

• Todas las versiones de ESAPI se encuentran bajo una licencia BSD de software libre.

• Usted puede modificar o utilizar ESAPI como le parezca. Incluso puede incluirlo en productos comerciales de manera totalmente gratuita.

Page 9: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Donde se ubica ESAPI?

Plan &DesignPlan &Design BuildBuild TestTest ImplementImplement

securitytesting

WAF/XMLfirewalls

architectualrisk analysis

Securitycode review

policy awareness training

Controls

Controls

ASVS T10 Education

BuildingGuide

WebGoatOWASP

Swingset

Testing Guide

Code reviewGuide

ASVS

OWASP

ESAPI

ESAPIWAF

W3AFCode Crawler

SDLC

Page 10: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Como funciona ESAPI?

•Simplemente extraiga el paquete de distribución ESAPI a una ubicación apropiada.

• Las interfaces de controles de seguridad ESAPI incluyen una clase “ESAPI” que sirve de “localizadora” del resto.

• La clase “localizadora” ESAPI es llamada para recuperar las instancias de controles de seguridad individuales.

Page 11: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Areas de Seguridad Cubiertas por ESAPI

Existen120+ métodos organizados en diferentes interfaces.

Page 12: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Mapeo de ESAPI a ASVS

• ASVS puede ser utilizado para establecer un nivel de confianza en la seguridad de aplicaciones Web.

• Autenticación

• Gestión de Sesiones

• Control de Acceso

• Validación de Entradas

• Codificación de Salidas

• Criptografía

• Manejo de Errores

• Protección de Datos

• Seguridad HTTP

Page 13: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Mapeo de ESAPI a ASVS- Un ejemplo -

•ASVS Gestión de Sesiones

•Implementación ESAPI

•ESAPI.httpUtilities().changeSessionIdentifier() cambia el identificador de sesión durante el inicio de sesión.

•BTW: previene fijación de sesión.

Page 14: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Mapeo de ESAPI a ASVS

Page 15: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Swingset

•Originalmente había sido diseñada como una aplicación Web que demuestra los distintos usos de ESAPI.

•Problema... No había interacción con desarrolladores.

Page 16: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Swingset Interactivo•Version customizada de Swingset

•Alineada con la mision de OWASP GEC

•Apunta a entrenar desarrolladores en ESAPI

Cada lab presenta una vulnerabilidad

Desarrollador necesita remediarla utilizando ESAPI

•Labs organizados alrededor de ASVS

Page 17: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Swingset Interactivo

•Requisitos de Instalación:

•JDK o JRE

•Eclipse

•ESAPI para Java

•Swingset

Page 18: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Swingset Interactivo Demo

Page 19: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Swingset Interactivo Demo

•ESAPI provee un conjunto de controles de seguridad “positivos”

•ESAPI puede ser utilizado para mejorar la seguridad de sus aplicaciones alineandolas con ASVS

•Swingset es una gran herramienta para entrenar desarrolladores.

Page 20: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Swingset Interactivo Planes

Futuros•Automatizar instalación

•Mejor GUI (menúes/gráficos)

•Mas lecciones (ej. principiantes/avanzados)

•Lab Virtuales

•Interesado? Envíame un correo!SWINGSET

Page 21: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Recursos Adicionales•ESAPI Swingset Interactive

•https://www.owasp.org/index.php/ESAPI_Swingset

•ESAPI Javadocs

•http://owasp-esapi-java.googlecode.com/svn/trunk_doc/latest/index.html

•Libro de ESAPI

•https://www.owasp.org/images/7/79/ESAPI_Book.pdf

Page 22: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

AppSec Latam 2011

- Dias de Entrenamiento 4 y 5 Octubre 2011

- Dias de Conferencia 6 y 7 Octubre 2011

SORPRESASorteo de una entrada esta noche!

Page 23: Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP

OWASP

Preguntas y Respuestas

[email protected]

Queres contribuir o proveer feedback?

Gracias!