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

js code can access the global scope and do anything #37

Closed
SArpnt opened this issue Jan 2, 2024 · 2 comments
Closed

js code can access the global scope and do anything #37

SArpnt opened this issue Jan 2, 2024 · 2 comments

Comments

@SArpnt
Copy link

SArpnt commented Jan 2, 2024

try this one out

import("data:text/javascript,document.location='/'+'/youtu.be/oHg5SJYRHA0'")
@jan-ale
Copy link

jan-ale commented Jan 4, 2024

40ad2fa tried to fix it, but now it shows SyntaxError: Unexpected token 'import'

Quotes don't fix it. Though import is a token, and we can't eval things, so maybe we could detect if the code contains import?

@jan-ale
Copy link

jan-ale commented Apr 16, 2024

commit 081533d fixed it!

@SArpnt SArpnt closed this as completed Apr 16, 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

No branches or pull requests

2 participants