vendor:
docsify
by:
Amin Sharifi
6.1
CVSS
MEDIUM
Reflective Cross-Site Scripting
79
CWE
Product Name: docsify
Affected Version From: 4.11.4
Affected Version To: 4.11.4
Patch Exists: YES
Related CWE: CVE-2020-7680
CPE: a:docsifyjs:docsify
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Windows 10
2020
Docsify.js 4.11.4 – Reflective Cross-Site Scripting
docsify.js uses fragment identifiers (parameters after # sign) to load resources from server-side .md files. It then renders the .md file inside the HTML page. Due to lack of validation it is possible to provide external URLs after the /#/ and render arbitrary javascript/HTML inside the page which leads to DOM-based Cross Site Scripting (XSS).
Mitigation:
Validate user input and filter out any malicious code.