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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Piwik (now Matomo) | Web Analytics Platform | < 3.0.3 | 3.0.3 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Piwik Superuser Plugin Upload
exploit/unix/webapp/piwik_superuser_plugin_upload
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://matomo.org/changelog/piwik-3-0-3/ vendor-advisory
- https://matomo.org/faq/plugins/faq_21/ product
- https://firefart.at/post/turning_piwik_superuser_creds_into_rce/ third-party-advisory
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/webapp/piwik_superuser_plugin_upload.rb exploit
- https://www.vulncheck.com/advisories/piwik-authenticated-rce-via-custom-plugin-upload third-party-advisory