Markdown unicode bug - XSS (2)

Issue #155 resolved
aalfred created an issue

Posting the following Markdown executes arbitrary JS on page load:

[]("><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" onload="alert('hello')"><a href=")

Similar to #154, but even worse, as it doesn't require the user to click anything.

Comments (5)

  1. aalfred reporter

    So apparently #154 got a quick-and-dirty fix.

    The equivalent fix here is banning links containing ", or replacing them with ".

  2. Log in to comment