Safe mode is not enough to be really safe
FroMage opened this issue · 3 comments
FroMage commented
It currently allows users to "escape" the place they are supposed to be at with for example the following HTML template:
<p>
This contains the text:
<div id="user-content">${mdContent}</div>
</p>
One can then create Markdown content such as:
In the box
</div></p>
<p>
Outside the box, looks like part of the site now
<a href="malicious-link">go there to reset your password please</a>
</p>
I need a way to escape every unescaped <
character from the input.
FroMage commented
Thanks! I'll try it out!
FroMage commented
Yes, works, thanks!