Skip to content

Security - Cross site scripting in html editor #580

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

Open
MarioTesoro opened this issue Apr 10, 2025 · 0 comments
Open

Security - Cross site scripting in html editor #580

MarioTesoro opened this issue Apr 10, 2025 · 0 comments

Comments

@MarioTesoro
Copy link

MarioTesoro commented Apr 10, 2025

Poc:

  1. Click on the code </> icon
  2. Insert into the textarea the following payload <img src="#" onerror=alert(2)>
  3. Press again on the </> icon to see the preview
  4. An alert that prints 2 appears.
    To solve the issue it may be useful to pre-parse the html tags which allows javascript execution and then render them sanitized.

Image

Image

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