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

Remove pseudo sandbox #192

Merged
merged 1 commit into from
Oct 20, 2024
Merged

Conversation

DennisNikolay
Copy link
Contributor

The iframe containing the mindmap is sandboxed, but this sandbox does not provide any additional security because it uses allow-scripts and allow-same-origin at the same time so that any script within the iframe could just remove the sandbox attribute.

Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#allow-top-navigation-to-custom-protocols

When the embedded document has the same origin as the embedding page, it is strongly discouraged to use both allow-scripts and allow-same-origin, as that lets the embedded document remove the sandbox attribute — making it no more secure than not using the sandbox attribute at all.

This pull request removes the sandbox attribute, solving the following issue #165 without decreasing security as there is no security benefit of the sandbox in the first place.

@ardarandir
Copy link

Please, can any developer at least comment on this pull request? Thank you! <3

@DennisNikolay
Copy link
Contributor Author

@ACTom: Is there any other use case for the sandbox?

@ACTom ACTom merged commit 411db10 into ACTom:master Oct 20, 2024
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

Successfully merging this pull request may close these issues.

3 participants