Description
An authenticated remote code execution vulnerability exists in Piwik (now Matomo) versions prior to 3.0.3 via the plugin upload mechanism. In vulnerable versions, an authenticated user with Superuser privileges can upload and activate a malicious plugin (ZIP archive), leading to arbitrary PHP code execution on the underlying system. Starting with version 3.0.3, plugin upload functionality is disabled by default unless explicitly enabled in the configuration file.
Problem types
CWE-434 Unrestricted Upload of File with Dangerous Type
CWE-306 Missing Authentication for Critical Function
Product status
Any version before 3.0.3
Credits
FireFart
References
matomo.org/changelog/piwik-3-0-3/
matomo.org/faq/plugins/faq_21/
firefart.at/post/turning_piwik_superuser_creds_into_rce/
raw.githubusercontent.com/...iwik_superuser_plugin_upload.rb
www.vulncheck.com/...henticated-rce-via-custom-plugin-upload