logo

Safely running untrusted code in your web application

2022-11-17

Authors:   Jean-Philippe Zolesio


Abstract

Integrate third-party code or using HTML WYSIWYG editors increase the risk of introducing untrusted code into their web applications. But these are necessary tools and solutions needed to make a seamless and dynamic user experience. In my journey to learn how to execute untrusted code safely, I researched the different ways to solve the problem and the common pitfalls associated with each solution. I also discovered multiple Open Source Software (OSS) projects and decided to complete the set of solutions available with Coriolis. Once I built this new library, new possibilities were unlocked that were previously undreamable.In this presentation, I will present the usage of Iframe as a solution and explain how to use them securely and which drawbacks they have, including PostMessage API. I will also go through the popular option for handling unsecured third-party code with their respective pros and cons. Finally, I would go through how my solution addresses these limitations to provide a better developer experience and how you could do the same.

Materials:

Post a comment

Related work




Conference:  Defcon 31
Authors: Ryan Johnson Senior Director, R&D at Quokka, Mohamed Elsabagh Senior Director, R&D at Quokka, Angelos Stavrou Founder and Chief Scientist at Quokka
2023-08-01

Authors: Jasvir Nagra, Pedro Fortuna
2021-09-24