-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
renderer link not escaped #80
Comments
Just for the sake of completeness, here is an actual XSS vector using JavaScript (avoiding the parantheses by using templates) >>> mistune.markdown('[text]("><script>alert`1`</script>)')
'<p><a href=""><script>alert`1`</script>">text</a></p>\n' |
@nitely found out that the same problem appears in images, too. This could be moved to an own issue or be collected in here, but that's your call. >>> mistune.markdown('![text]("><script>alert`1`</script>)')
'<p><img src=""><script>alert`1`</script>" alt="text"></p>\n' |
Closed
Closed
it's very helpful to me! |
This was referenced Feb 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
github rendered:
blah asdfasdf afd
The text was updated successfully, but these errors were encountered: