SlideShare a Scribd company logo
HTML5 for Security folks!!
Have you upgraded your skillset?
Vaibhav Gupta
Security Researcher - Adobe
Twitter: @vaibhavgupta_1
What is HTML5?
• The next revision for HTML
• Tons of new features/technologies/APIs
• Rich multimedia support
• Its just an update….old HTML still works!
• Blah blah…….“Work in progress”
Information Security Impact
• Most attacks are already possible, HTML5
simply makes them easier or more powerful
• Great majority of these vulnerabilities affect
the browser and doesn’t have any direct
impact on the server
Interesting Features
• Cross Origin Resource Sharing (CORS)
• Web Storage
• IFRAME Sandboxing
• Web Messaging
• Multimedia & Graphics
• Getlocation
• …… many more!
HTML5 for Security Folks
Cross Origin Resource Sharing
HTML5 for Security Folks
HTML5 for Security Folks
HTML5 for Security Folks
OPTIONS /usermail HTTP/1.1
Origin: mail.example.com
Content-Type: text/html
HTTP/1.0 200 OK
Access-Control-Allow-Origin: http://www.example.com,
https://login.example.com
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: X-Prototype-Version, X-Requested-With,
Content-Type, Accept
Access-Control-Max-Age: 86400
Content-Type: text/html; charset=US-ASCII
Connection: keep-alive
Content-Length: 0
Configuring CORS correctly
HTML5 for Security Folks
HTML5 for Security Folks
• Session Hijacking
• Confidential Information Risk
• User Tracking
• Persistent Attack Vectors
IFRAM Sandboxing
• Really good security feature !
• “sandbox” attribute disables form submissions,
scripts, popups etc.
<iframe sandbox src=“http://e.com”></iframe>
• Can be relaxed with few tokens
<iframe sandbox=“allow-scripts” src=“http://e.com”></iframe>
• !! Disables JS based frame busting defense !!
Content Security Policy (CSP)
HTML5 for Security Folks
HTML5 for Security Folks
HTML5 for Security Folks
Enough of CRAP !
References:
• Examples: slides.html5rocks.com
• Slides content:
prezi.com/k2ibkogftt2i/understanding-html5-
security
• And……google.com

More Related Content

PPTX
Html5 security
PPTX
JSFoo Chennai 2012
PPTX
Secure web messaging in HTML5
PPTX
Browser Internals-Same Origin Policy
PPTX
Clickjacking DevCon2011
PPT
Browser Security
PPTX
Browser Security 101
PDF
When you don't have 0days: client-side exploitation for the masses
Html5 security
JSFoo Chennai 2012
Secure web messaging in HTML5
Browser Internals-Same Origin Policy
Clickjacking DevCon2011
Browser Security
Browser Security 101
When you don't have 0days: client-side exploitation for the masses

What's hot (20)

PPT
Web browser privacy and security
PDF
Java EE 6 Security in practice with GlassFish
PPTX
14. html 5 security considerations
PDF
Html5 for Security Folks
PDF
Browser Horror Stories
PDF
Html5: Something wicked this way comes (Hack in Paris)
PDF
Advanced Chrome extension exploitation
PPTX
Top Ten Web Hacking Techniques of 2012
PPTX
Devouring Security XML Attack surface and Defences
PDF
Something wicked this way comes - CONFidence
PDF
Browser security — ROOTS
PPT
Top Ten Web Hacking Techniques – 2008
PDF
Html5 localstorage attack vectors
PDF
Html5: something wicked this way comes - HackPra
PDF
New Insights into Clickjacking
PPTX
MITM Attacks on HTTPS: Another Perspective
PPTX
Case Study of Django: Web Frameworks that are Secure by Default
PPTX
Browser Security by pratimesh Pathak ( Buldhana)
PDF
I'm in ur browser, pwning your stuff - Attacking (with) Google Chrome Extensions
PDF
Protecting Java EE Web Apps with Secure HTTP Headers
Web browser privacy and security
Java EE 6 Security in practice with GlassFish
14. html 5 security considerations
Html5 for Security Folks
Browser Horror Stories
Html5: Something wicked this way comes (Hack in Paris)
Advanced Chrome extension exploitation
Top Ten Web Hacking Techniques of 2012
Devouring Security XML Attack surface and Defences
Something wicked this way comes - CONFidence
Browser security — ROOTS
Top Ten Web Hacking Techniques – 2008
Html5 localstorage attack vectors
Html5: something wicked this way comes - HackPra
New Insights into Clickjacking
MITM Attacks on HTTPS: Another Perspective
Case Study of Django: Web Frameworks that are Secure by Default
Browser Security by pratimesh Pathak ( Buldhana)
I'm in ur browser, pwning your stuff - Attacking (with) Google Chrome Extensions
Protecting Java EE Web Apps with Secure HTTP Headers
Ad

Viewers also liked (6)

PPT
HTML Binary Hacks & GIF89a Ployglot
PPTX
Application Security Vulnerabilities: OWASP Top 10 -2007
PPT
OAuth 2.0 & Security Considerations
PPTX
Application Security Risk Rating
PDF
Security Automation using ZAP
PDF
Polyglot payloads in practice by avlidienbrunn at HackPra
HTML Binary Hacks & GIF89a Ployglot
Application Security Vulnerabilities: OWASP Top 10 -2007
OAuth 2.0 & Security Considerations
Application Security Risk Rating
Security Automation using ZAP
Polyglot payloads in practice by avlidienbrunn at HackPra
Ad

Similar to HTML5 for Security Folks (20)

PDF
BeEF_EUSecWest-2012_Michele-Orru
PDF
DevTeach Ottawa - Silverlight5 and HTML5
PDF
Html5 Application Security
KEY
WHAT IS HTML5?(20100510)
PPTX
Building rich interface components with SharePoint
PDF
Attacking with html5(lava kumar)
PPT
Introduction web tech
PPTX
Owasp2013 johannesullrich
PPTX
HTML5 (Štěpán Bechynský)
PDF
PPTX
Three Developer Behaviors to Eliminate 85 Percent of Accessibility Defects
PPTX
HTML5 - Let’s make the WEB more powerful
PPT
Tapir user manager
PPTX
Implementing a Multi-Device Approach to E-learning Design (US Session)
PPTX
Implementing a Multi-Device Approach to E-learning Design (APAC Session)
PDF
Html5, Native and Platform based Mobile Applications
PPT
HTML5: An Introduction To Next Generation Web Development
PPTX
Fundamentals of HTML5
BeEF_EUSecWest-2012_Michele-Orru
DevTeach Ottawa - Silverlight5 and HTML5
Html5 Application Security
WHAT IS HTML5?(20100510)
Building rich interface components with SharePoint
Attacking with html5(lava kumar)
Introduction web tech
Owasp2013 johannesullrich
HTML5 (Štěpán Bechynský)
Three Developer Behaviors to Eliminate 85 Percent of Accessibility Defects
HTML5 - Let’s make the WEB more powerful
Tapir user manager
Implementing a Multi-Device Approach to E-learning Design (US Session)
Implementing a Multi-Device Approach to E-learning Design (APAC Session)
Html5, Native and Platform based Mobile Applications
HTML5: An Introduction To Next Generation Web Development
Fundamentals of HTML5

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Big Data Technologies - Introduction.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Cloud computing and distributed systems.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Network Security Unit 5.pdf for BCA BBA.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Programs and apps: productivity, graphics, security and other tools
Spectral efficient network and resource selection model in 5G networks
Big Data Technologies - Introduction.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Cloud computing and distributed systems.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
Encapsulation_ Review paper, used for researhc scholars
Agricultural_Statistics_at_a_Glance_2022_0.pdf

HTML5 for Security Folks

  • 1. HTML5 for Security folks!! Have you upgraded your skillset? Vaibhav Gupta Security Researcher - Adobe Twitter: @vaibhavgupta_1
  • 2. What is HTML5? • The next revision for HTML • Tons of new features/technologies/APIs • Rich multimedia support • Its just an update….old HTML still works! • Blah blah…….“Work in progress”
  • 3. Information Security Impact • Most attacks are already possible, HTML5 simply makes them easier or more powerful • Great majority of these vulnerabilities affect the browser and doesn’t have any direct impact on the server
  • 4. Interesting Features • Cross Origin Resource Sharing (CORS) • Web Storage • IFRAME Sandboxing • Web Messaging • Multimedia & Graphics • Getlocation • …… many more!
  • 10. OPTIONS /usermail HTTP/1.1 Origin: mail.example.com Content-Type: text/html HTTP/1.0 200 OK Access-Control-Allow-Origin: http://www.example.com, https://login.example.com Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Allow-Headers: X-Prototype-Version, X-Requested-With, Content-Type, Accept Access-Control-Max-Age: 86400 Content-Type: text/html; charset=US-ASCII Connection: keep-alive Content-Length: 0 Configuring CORS correctly
  • 13. • Session Hijacking • Confidential Information Risk • User Tracking • Persistent Attack Vectors
  • 14. IFRAM Sandboxing • Really good security feature ! • “sandbox” attribute disables form submissions, scripts, popups etc. <iframe sandbox src=“http://e.com”></iframe> • Can be relaxed with few tokens <iframe sandbox=“allow-scripts” src=“http://e.com”></iframe> • !! Disables JS based frame busting defense !!
  • 20. References: • Examples: slides.html5rocks.com • Slides content: prezi.com/k2ibkogftt2i/understanding-html5- security • And……google.com