0

We are building a multitenancy web app with Laravel (+Blade), each user can create a store (tenancy), and have a control panel where they can edit the store settings and styling, to edit the store styling, we thought about letting the user opt to write his own css, html and js (for google analytics, pixel or anything else). Our concern is security, but we thought since the store owner is the one responsible for his own store (which exists on a custom subdomain) if there was an XSS on his side. But how do we protect our app if the owner does anything malicious ?

RedZ
  • 101
  • 1
  • I would limit js to a few pre-configured/approved tools (think wordpress), html and css have comparably minimal risk. Treat the owner's input as untrusted as a customer's, and don't let it do anything it shouldn't. – dandavis Aug 12 '21 at 19:37
  • @dandavis, so it would be okay if i limit js to specific tools and allow for HTML but blacklist the – RedZ Aug 13 '21 at 03:56

0 Answers0