Markdown unicode bug - XSS

Issue #154 resolved
Hossein Hussain created an issue

When submitting a lab we can add comments which uses markdown syntax. There is an XSS vulnerability there when using unicode to bypass the filter. This is an example: text;">text</a>

Comments (6)

  1. aalfred

    that's just HTML entities, not Unicode. Either way, the easiest solution is a whitelist for "http://" and "https://", rather than trying to blacklist "javascript:".

  2. Víctor López Juan

    Thanks for reporting this! I've patched it up in production in a quick-and-dirty way (just whitelisting links that start with 'h'). We should have a proper fix for the next release.

  3. Log in to comment