-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
Self XSS #727
Comments
Can you create a PoC for this? Without reproduction it's like saying "your library is broken" without saying anything else. Please show example, how this lead to XSS, if it's true is more problematic than you think. |
Ok, I was able to reproduce, I was testing in Terminal JavaScript demo that is not affected. Thanks for the report. |
I think that I've forget in one place to escape And just FYI: to prevent the XSS you can use this code: $.terminal.new_formatter([/([\s\S]+)/g, '[[;;]$1]']); that wraps whole text into empty formatting, it's no op but it will trigger the code that do escape the |
Self XSS is possible by typing something like "onclick="alert(1);"
I think it's because data-text doesn't contain sanitized characters.
Don't think it's critical but there you go regardless :)
The text was updated successfully, but these errors were encountered: