Case :
i m developing a client side website which shows iframes to users and the urls are not in my control or are different from my domain
for example
my domain is https://example.com
and the domain of iframe is https://random.app.example.com
. the other domain content is handled by random users
What i have done :
so in order to stop the abuse i have sandboxed the iframe like this
sandbox="allow-scripts allow-same-origin allow-forms"
as of my research and knowledge this much sandboxing gives enough power to the iframe but not enough to exploit the parent site.
i have wrapped up things very quick so i might have missed things
Real Question :
so just to make sure i want to know if there are any threats left in this approach and also please mention the solution to overcome the threat
any kind of suggestion is welcomed please help