10
Random facts about Web Apps Security Łukasz Wójcik @ Lumesse

Random Facts about Web App Security

Embed Size (px)

Citation preview

Page 1: Random Facts about Web App Security

Random facts about

Web Apps SecurityŁukasz Wójcik @ Lumesse

Page 2: Random Facts about Web App Security

XSS

Simple example (http://localhost:9090/)- persistent- not persistent

Page 3: Random Facts about Web App Security

Stealing SESSION (using XSS)

- sending cookies to 3rd party host- using this cookie - we are in :)

Page 4: Random Facts about Web App Security

Prevention against XSS

- simple solution (<c:out value="${variable} escapeXml="true">)

- sanitize data- store encoded (yyy..?)

Page 5: Random Facts about Web App Security

Prevention against stealing cookie

- making it HTTP only (and secure)- fingerprint as an implicit 'secret'- token must not by sequential (randomly distributed)

Page 6: Random Facts about Web App Security

Open redirect

- what and how?

Page 7: Random Facts about Web App Security

Passwords

- how should we store passwords in DB- MD5 vs SHA1- pros and cons of above

Page 8: Random Facts about Web App Security

Maybe better… make it BF proof

- make it computation intensive (1024 iteration of calculating SHA1 takes time)

- user better algorithms (BCrypt)- use masking

Page 9: Random Facts about Web App Security

Last Question:

What is http://3585379724 ?or http://[email protected] ?or even worst http://mbank.pl@3585379724 ??

Page 10: Random Facts about Web App Security

THX

Sources : https://github.com/muciu/webappsecurity.git