Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web apps to be able to control child same origin realms #618

Open
WebWeWantBot opened this issue Apr 30, 2023 · 0 comments
Open

Web apps to be able to control child same origin realms #618

WebWeWantBot opened this issue Apr 30, 2023 · 0 comments

Comments

@WebWeWantBot
Copy link


title: Web apps to be able to control child same origin realms
date: 2023-04-30T07:16:58.427Z
submitter: Gal weizman
number: 644e15ea04c75100768d4a99
tags: [ ]
discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/
status: [ discussing || in-progress || complete ]
related:

  • title:
    url:
    type: [ article || explainer || draft || spec || note || discussion ]

At MetaMask (and other places throughout my career) we develop advanced in-browser runtime security tools, that enforce protection to the website using all sorts of techniques. Unfortunately, many of those techniques can easily be bypassed by attackers by carrying out attacks through realms. For example, the monkey patching protection technique only applies to the realm you applied it to, which means it won’t apply by default to a new iframe.
We believe web apps should be able to register arbitrary code to execute first on every new same origin realm in the app, similar to how extensions can already register such code to all realms of a website. An app should be granted power over the realms in itself, it only makes sense.
For reference, we already build on top of such technology to enhance our app protection, in the form of a js shim - https://github.com/lavamoat/snow.


If posted, this will appear at https://webwewant.fyi/wants/644e15ea04c75100768d4a99/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant