Improper input validation in Matomo
CVE-2009-4137
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v2 metric
CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.169, 97.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Matomo — versions 0.2.25, 0.2.26, 0.2.27
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- Alexeyan/CVE-2009-4137 (4 stars, last pushed 2018-01-15): Exploit for piwik CVE-2009-4140 RCE
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, CVEDB/awesome-cve-repo, CVEDB/PoC-List). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- [oss-security] 20091214 Re: Piwik <= 0.4.5 Cookie Unserialize() Vulnerability (mailing-list)
- piwik.org/blog/2009/12/piwik-response-to-shocking-news-in-php-exploitation/ (Vendor Advisory)
- www.suspekt.org/downloads/POC2009-ShockingNewsInPHPExploitation.pdf
- [oss-security] 20091210 Re: Piwik <= 0.4.5 Cookie Unserialize() Vulnerability (mailing-list)
- [oss-security] 20091209 Piwik <= 0.4.5 Cookie Unserialize() Vulnerability (mailing-list)
- dev.piwik.org/trac/changeset/1637 (Vendor Advisory)
- www.suspekt.org/2009/12/09/advisory-032009-piwik-cookie-unserialize-vulnerabili…
- www.sektioneins.de/en/advisories/advisory-032009-piwik-cookie-unserialize-vulne…
This CVE has public exploit evidence. See the latest CVEs with public exploits.