Vulnerabilities · 2009 · Matomo
CVE-2009-4137
Matomo vulnerability
The loadContentFromCookie function in core/Cookie.php in Piwik before 0.5 does not validate strings obtained from cookies before calling the unserialize function, which allows remote attackers to execute arbitrary code or upload arbitrary files via vectors related to the __destruct function in the Piwik_Config class; php://filter URIs; the __destruct functions in Zend Framework, as demonstrated by the Zend_Log destructor; the shutdown functions in Zend Framework, as demonstrated by the Zend_Log_Writer_Mail class; the render function in the Piwik_View class; Smarty templates; and the _eval function in Smarty.
Affected products
Matomo. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Matomo runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- dev.piwik.org/trac/changeset/1637 · Vendor Advisory
- piwik.org/blog/2009/12/piwik-response-to-shocking-news-in-php-exploitation/ · Vendor Advisory
- www.openwall.com/lists/oss-security/2009/12/09/2
- www.openwall.com/lists/oss-security/2009/12/10/1
- www.openwall.com/lists/oss-security/2009/12/14/2
- www.sektioneins.de/en/advisories/advisory-032009-piwik-cookie-unserialize-vulnerability/
- www.suspekt.org/2009/12/09/advisory-032009-piwik-cookie-unserialize-vulnerability/
- www.suspekt.org/downloads/POC2009-ShockingNewsInPHPExploitation.pdf
- nvd.nist.gov/vuln/detail/CVE-2009-4137
- cve.org/CVERecord?id=CVE-2009-4137
More vulnerabilities in Matomo products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.