editor.md Cross Site Scripting Vulnerability

u3r8eeie  于 2022-10-27  发布在  其他
关注(0)|答案(1)|浏览(134)

Good day

I have found a cross site scripting vulnerability in your editor. See the image below.

If I open a markdown file with the editor, that exploits this vulnerability, it would execute any Javascript code.

I would suggest that the attribute "onerror" in the tags below be ignored to prevent javascript execution.

1.	<img>
2.	<input type="image">
3.	<object>
4.	<link>
5.	<script>

See also: https://www.w3schools.com/jsref/event_onerror.asp

相关问题