Disclosed vulnerabilities
Fixed: Nov 8, 2020
CVE-2020-15275 Published: Nov 8, 2020

XSS in MoinMoin when uploading a SVG file with malicious javascript code in its content

8.7 High Severity moin python XSS
Catarina Leite Reported by Checkmarx Zero

Summary

MoinMoin before version 1.9.11 is vulnerable to a Cross Site Scripting attack. An attacker with write permissions can upload a SVG file that contains malicious javascript. This malicious code will be executed in the victim’s browser when the victim is viewing that SVG file on the wiki.

Product

MoinMoin before 1.9.11

Impact

Malicious javascript code will be executed in the victim’s browser.

Steps to reproduce

1. With MoinMoin running, go to the home page and create a new page. 
2. Save the changes on this new page and go to the attachments section.
3. Upload a SVG file that contains the following malicious code in its content: 
    >>> <script type="text/javascript">
    >>> alert('XSS by Checkmarx');
    >>> </script>
4. Click on the view option. 

Expected result:

An alert box will be displayed with the text “XSS by Checkmarx”

Remediation

Update MoinMoin to 1.9.11 and above

Credit

This issue was discovered and reported by Catarina Leite from the CxSCA AppSec team at Checkmarx.

Resources

  1. Advisory
  2. 64e1603

Stay connected and never miss a research update!