cloud = web, web = hacked! fabio viggiani. why web apps? every organization exposes web apps most...

13
Cloud = Web, Web = Hacked! Fabio Viggiani

Upload: leon-richardson

Post on 17-Jan-2016

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

Cloud = Web, Web = Hacked!Fabio Viggiani

Page 2: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

Why Web Apps?• Every organization exposes web apps• Most common entry point

Image source: http://i.imgur.com

Image source:https://www.flickr.com/photos/brianklug/6870002408

Page 3: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

Focus

• SQL injection, XSS… again with that old stuff???• Well, we DO find them every day!• Why?

Page 4: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

Demo Environment

Page 5: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

Let’s hack!• Basic stuff – warm up and understand• Cross Site Scripting (XSS)• SQL injection

Image source: http://gizmodo.com/5498412/sql-injection-license-plate-hopes-to-foil-euro-traffic-cameras

Page 6: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

We should be able to fix this

• XSS filters available online• Prepared statements – easy and well documented

• Let’s do it

Page 7: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

Let’s hack, again.

Image source: http://www.ekantipur.com

Page 8: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

Demo Environment

Page 9: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

2nd order SQL injection

Page 10: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

What went wrong?

• Best practices• Input validation / Output encoding• Whitelist / Blacklist

• Localized fixes• Code structure• Default behaviors

Page 11: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

We hack once again. For real now.

Page 12: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

We hack once again. For real now.

Page 13: Cloud = Web, Web = Hacked! Fabio Viggiani. Why Web Apps? Every organization exposes web apps Most common entry point Image source:

We hack once again. For real now.