kompassi
kompassi copied to clipboard
Use of ParagraphsDangerousHtml on SurveyPage lets the survey owner do XSS
There is a valid use case: we may want to put hyperlinks and other markup in the survey description. However, untrusted users will be allowed to create surveys in the future, so we cannot allow un-satanized, arbitrary HTML that might include scripts, CSS and other shenanigans.
Either use Markdown or similar, or introduce satanization for the HTML. Satanized HTML might be preferred as we may want to employ a WYSIWYG editor for the description.
WYSIWYG doesn't preclude using Markdown as the underlying format though!
No, it doesn't. I'd prefer a WYSIWYG editor that does not expose non-technical users to Markdown, though. Outline is fine, Obsidian is too Markdowny.
I was thinking something like https://quilljs.com/ or https://mdxeditor.dev/ or https://v3.mantine.dev/others/rte/...