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 Share API can be triggered from iframe sandbox #155

Closed
shhnjk opened this issue May 20, 2020 · 1 comment
Closed

Web Share API can be triggered from iframe sandbox #155

shhnjk opened this issue May 20, 2020 · 1 comment

Comments

@shhnjk
Copy link
Member

shhnjk commented May 20, 2020

CSP/iframe sandbox aren't allowed to open popups or escape sandbox restriction unless "allow-popups" or "allow-popups-to-escape-sandbox" is set respectively.

However, when "allow-scripts" is specified, sandboxed document can trigger Web Share API, which might allow escaping CSP/iframe sandbox because Web Share Target now supports PWA.

@mgiuca
Copy link
Collaborator

mgiuca commented Jul 24, 2020

I believe this has been fixed by #166; it should no longer be allowed to use it from an iframe without the appropriate feature policy.

@mgiuca mgiuca closed this as completed Jul 24, 2020
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

3 participants
@mgiuca @shhnjk and others