Dotclear <= 2.6.2 (Media Manager) Unrestricted File Upload Vulnerability

http://dotclear.org

• Affected Versions:

Version 2.6.2 and probably prior versions.

• Vulnerability Description:

The vulnerability exists because of the filemanager::isFileExclude() method not properly verifying the extension of uploaded files. This method just checks whether the uploaded file name matches the “exclude_pattern” regular expression, which by default is set to /\.php$/i. This could be exploited to execute arbitrary PHP code by uploading a file with multiple extensions or other extensions (like .php5 or .phtml) which might be handled as PHP scripts. Successful exploitation of this vulnerability requires an account with permissions to manage media items.

• Solution:

Apply the vendor workaround or define a more secure “media_exclusion” setting (PCRE value).

• Disclosure Timeline:

[14/05/2014] – Vendor notified

[15/05/2014] – Vendor response

[16/05/2014] – Version 2.6.3 released: http://dotclear.org/blog/post/2014/05/16/Dotclear-2.6.3

[16/05/2014] – CVE number requested

[19/05/2014] – CVE number assigned

[21/05/2014] – Public disclosure

• CVE Reference:

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

• Credits:

Vulnerability discovered by Egidio Romano.