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

XSS when embeding youtube video #98

Open
agabhane opened this issue Aug 4, 2021 · 5 comments
Open

XSS when embeding youtube video #98

agabhane opened this issue Aug 4, 2021 · 5 comments

Comments

@agabhane
Copy link

agabhane commented Aug 4, 2021

When we try to embed youtube video using below iframe syntax, javascript code gets executed.

<iframe width="560" height="315" src="https://www.youtube.com/embed/ADS742xsoTw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen onmouseover=alert(document.domain)></iframe>

Steps to reproduce

  1. Click on youtube toolbar button
  2. Paste <iframe width="560" height="315" src="https://www.youtube.com/embed/ADS742xsoTw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen onmouseover=alert(document.domain)></iframe> in embed code box
  3. Click ok
  4. Observe alert

Actual result
Alert is shown with domain name

Expected result
Pasted code should be sanitized and js should not be exeucted to display alert.

@agabhane
Copy link
Author

agabhane commented Feb 2, 2022

Hi @fonini ,

Any ETA on fix for this issue?

@fonini
Copy link
Owner

fonini commented Feb 2, 2022

@agabhane At the moment, I do not have the time to work on this issue. Can you open a PR?

@sushruts
Copy link

Hi @fonini , is there any ETA for this fix ?

@fonini
Copy link
Owner

fonini commented Apr 12, 2023

Hi @sushruts, unfortunately, I have no time to look into this right now.

@sushrutsawarkar
Copy link

Hi @fonini , I see there are no updates around this plugin. Do you have a any ETA for this issue?

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

4 participants