Skip to content

20200309 XSS vulnerability

Arjen van Bochoven edited this page Mar 9, 2020 · 1 revision

XSS vulnerability - CVE-2020-10192

Description

An unauthenticated request (when no passphrase is used) can be used to inject javascript into the MunkiReport database. The same is possible from a compromised machine when passphrases are enabled.

Vulnerability: All versions of MunkiReport < 5.3.0 are vulnerable

Mitigation

Update MunkiReport to the latest version (Preferred)

If updating to the latest version in not possible:

  • Edit munkireport-php/app/controllers/report.php to add the following to the end of the __construct() function:
        if ($_POST['serial'] !== filter_var($_POST['serial'], FILTER_SANITIZE_STRING))
        {
            $this->error("Serial contains illegal characters");
        }

See in file: https://github.com/munkireport/munkireport-php/blob/94fddaa0fe8fd7f02f195637e91f43af9cf037ff/app/controllers/report.php#L53-L56

Clone this wiki locally