exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Piwik 2.14.3 Local File Inclusion

Piwik 2.14.3 Local File Inclusion
Posted Nov 4, 2015
Authored by EgiX

Piwik version 2.14.3 and below suffer from a local file inclusion vulnerability.

tags | exploit, local, file inclusion
advisories | CVE-2015-7815
SHA-256 | eee59dc36374f91dced40b4ea48194596072b837658dfbeccc53d0849c0265bd

Piwik 2.14.3 Local File Inclusion

Change Mirror Download
-----------------------------------------------------------------------
Piwik <= 2.14.3 (viewDataTable) Autoloaded File Inclusion Vulnerability
-----------------------------------------------------------------------


[-] Software Link:

https://piwik.org/


[-] Affected Versions:

Version 2.14.3 and prior versions.


[-] Vulnerability Description:

The vulnerable code is located in the /core/ViewDataTable/Factory.php script:

130. $type = Common::getRequestVar('viewDataTable', $defaultType, 'string');
131.
132. // Common::getRequestVar removes backslashes from the defaultValue ...
133. // therefore do not pass this as a default value to getRequestVar()
134. if ('' === $type) {
135. $type = $defaultType ?: HtmlTable::ID;
136. }
137. } else {
138. $type = $defaultViewType;
139. }
140.
141. $params['viewDataTable'] = $type;
142.
143. $visualizations = Manager::getAvailableViewDataTables();
144.
145. if (array_key_exists($type, $visualizations)) {
146. return self::createViewDataTableInstance($visualizations[$type], ...
147. }
148.
149. if (class_exists($type)) {

User input passed through the "viewDataTable" request parameter is not properly sanitized
before being used in a call to the "class_exists()" function at line 149. This could be
exploited to include arbitrary .php files located outside the Piwik root directory or
from the Piwik codebase itself (possibly leading to unauthorized access to certain
functionalities) leveraging the Composer autoloading function. Successful exploitation
of this vulnerability requires the application running on PHP before 5.4.24 or 5.5.8.


[-] Solution:

Update to version 2.15.0 or later.


[-] Disclosure Timeline:

[25/08/2015] - Vendor notified
[09/09/2015] - Issue fixed on the GitHub repository: http://git.io/vlyZv
[06/10/2015] - CVE number requested
[14/10/2015] - CVE number assigned
[22/10/2015] - Version 2.15.0 released: https://piwik.org/changelog/piwik-2-15-0
[04/11/2015] - Public disclosure


[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2015-7815 to this vulnerability.


[-] Credits:

Vulnerability discovered by Egidio Romano.


[-] Original Advisory:

http://karmainsecurity.com/KIS-2015-09


Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    28 Files
  • 16
    Jul 16th
    6 Files
  • 17
    Jul 17th
    34 Files
  • 18
    Jul 18th
    6 Files
  • 19
    Jul 19th
    34 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    19 Files
  • 23
    Jul 23rd
    17 Files
  • 24
    Jul 24th
    47 Files
  • 25
    Jul 25th
    31 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close