New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add piwik superuser plugin upload module #7917
Conversation
876fbe7
to
baa473a
Compare
I'll make you a deal. If you add module docs, i'll review this within the next 48hrs |
@h00die deal :) documentation added |
I nominate @h00die as documentation czar. |
@wvu-r7
|
@h00die: We should give you a badge. |
Had some oddities but I think its due to my own configuration of running virtualbox and the portforwarding. for completeness, i used a bind shell, and Ubuntu 14.04.
|
Several things that are VERY nice about this module: |
docs are beautiful. @wvu-r7 you should take notes |
seriously though, the code is beautiful. |
Release NotesAn exploit for Piwik is now available. An authenticated super user can upload a malicious plugin that causes remote code execution. |
Thanks @h00die :) |
Duly noted! Fantastic work as always, @firefart. :D |
This PR adds a module to upload a generated plugin to an piwik installation after you grabbed superuser credentials. This way you can turn superuser credentials into a remote code execution. The plugin also tries to enable the
Marketplace
plugin if it's currently deactivated. Only having admin rights is not enough for this module, you need real superuser access.Tested with Piwik 2.14.0, 2.16.0, 2.17.1 and 3.0.1 (you can get older versions from https://builds.piwik.org/)
To install on debian as root:
After the install browse to
http://IP/piwik/
and follow the installation steps. If you have an ad blocker installed you need to disable it for the site otherwise almost everything will be blocked.Be sure to also deactivate the
Marketplace
plugin in Settings-->System-->Plugins to test this feature.To test other piwik versions too:
Sample Output: