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

Understanding security concerns #75

Open
getify opened this issue Nov 25, 2024 · 0 comments
Open

Understanding security concerns #75

getify opened this issue Nov 25, 2024 · 0 comments

Comments

@getify
Copy link

getify commented Nov 25, 2024

I have read the explainer (and a number of other discussions linked out to), but I am still left wanting a deeper understanding of one aspect of the security restrictions inherent in this design:

If a web application is packaged as a PWA, and offered to the user to be installed, and if that user is even given a permissions prompt asking about enhanced networking... why wouldn't that be sufficient protection to allow such an app to make direct socket (UDP, specifically) connections with arbitrary hosts (like peers)?

And further, if this is locked down into the "IWA" bundled web app mode... why then would such a web app only be allowed to make such connections back to one specific origin server? Why wouldn't such an app be allowed, even through user controlled permissions, to make direct connections (again, UDP) with arbitrary hosts (like peers)?

Why shouldn't such an app be able to do do P2P communications (such as like chat or file sharing), just because it was built with JS... but if I take the same app (in web+JS tech), and wrap a tiny native shell wrapper around it, I am able expose UDP networking to the app, and that's somehow inherently more safe?

I'm just trying to understand what specifically is preventing web-only installed apps (of any flavor or permission-prompt gate) from being able to securely do such communications?

Is the only difference that any native app shell wrapper would ostensibly have gone through an "app store review", whereas there's no centralized review of installable web-only app packages?

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