← Advisories

Dream CMS 2.3.0 CSRF Add Extension And File Upload PHP Code Execution

High
Advisory ID
ZSL-2015-5268
Release Date
11 October 2015
Vendor
Affected Version
2.3.0
CVE
N/A
Tested On
nginx/1.6.2, PHP/5.5.28
Summary

DreamCMS is open and completely free PHP web application for constructing websites of any complexity.

Description

Dream CMS allows users to perform certain actions via HTTP requests without performing any validity checks to verify the requests. This can be exploited to perform certain actions with administrative privileges if a logged-in user visits a malicious web site. Related to the CSRF issue, an authenticated arbitrary PHP code execution exist. The vulnerability is caused due to the improper verification of uploaded files in '/files-manager-administration/add-file' script via the 'file' POST parameter which allows of arbitrary files being uploaded in '/resource/filemanager/1/home/' where the admin first needs to add the file extension in the allowed list (csrf'd). This can be exploited to execute arbitrary PHP code by uploading a malicious PHP script file and execute system commands.

Proof of Concept
Disclosure Timeline
01.10.2015Vulnerability discovered.
08.10.2015Vendor contacted.
08.10.2015Vendor responds asking more details.
08.10.2015Sent details to the vendor.
09.10.2015Vendor confirms the vulnerability scheduling patch release date.
11.10.2015Vendor releases version 2.3.1 to address this issue.
11.10.2015Coordinated public security advisory released.
Credits
Vulnerability discovered by Gjoko Krstic
References
Changelog
11.10.2015Initial release
15.10.2015Added reference [3], [4] and [5]
21.10.2015Added reference [6], [7] and [8]