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

The href content in a tag is 'data: image', which is not processed #275

Open
qsy0213 opened this issue Feb 20, 2023 · 0 comments
Open

The href content in a tag is 'data: image', which is not processed #275

qsy0213 opened this issue Feb 20, 2023 · 0 comments

Comments

@qsy0213
Copy link

qsy0213 commented Feb 20, 2023

</div><a href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22><script>alert('1')</script></svg>">//

By default, the browser will block the a-tag jump behavior of href=data: image, but iframe will not block it by default. When my page is in iframe, attackers can attack through the above code.

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