vendor:
MDwiki
by:
Anonymous
8,8
CVSS
HIGH
Cross-site Scripting (XSS)
79
CWE
Product Name: MDwiki
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: HTML5/Javascript
2020
MDwiki.min.js
MDwiki is a wiki/CMS system built entirely on HTML5/Javascript technology and runs entirely on the client. The vulnerability occurs when the program gets the location The .hash value (normally test.md) is parsed and the ajax request is dynamically added to the page. The variable b gets the value after location.hash #! and URLDecode, which is then assigned to a.md.mainHref. The content will be requested by a.md.mainHref, and the b variable will be a:page content after completion. The e value is dynamically generated by the marked library, and the b variable is the payload, which can be used to inject malicious code.
Mitigation:
Input validation should be used to prevent malicious code from being injected into the application.