allegroplanet / allegro-planet

1 stars 1 forks source link

Safely escape inline HTML from Markdown #36

Closed MarkOates closed 7 years ago

MarkOates commented 7 years ago

Problem

Currently the MarkdownConverter permits inline HTML. This can be a problem and could allow a malicious user to embed <script></script> tags in their description that will run when loading that user's page. At worst, this opens up a vulnerability for cross-site scripting.

Solution

Configure the MarkdownConverter to escape HTML tags. Add tests.

Example

xss