Vendor Description
“WonderCMS is a free simple website builder. Aimed to be extremely easy to install (1 step), light and simple to use.It’s an open source flat file CMS (Content Management System), built with PHP and developed since 2008.”
Source: https://www.wondercms.com/
Business Recommendation
Update 2020/07/21: After announcing the publication of the advisory on Twitter, the vendor did respond immediately and released a patch.
An in-depth security analysis performed by security professionals is highly advised, as the software may be affected from further security issues.
Vulnerability Overview/Description
1. Stored Cross Site Scripting via Filename (Authenticated user)
This vulnerability allows an authenticated user (admin) to upload files with a malicious client side script as filename. It will be executed in the browser of a user if he visits the manipulated URL.
2. Directory Traversal (Authenticated user)
This vulnerability allows an authenticated user (admin) to delete arbitrary files via directory traversal on the operating system with the access rights of the web server.
3. Upload of arbitrary files (Authenticated user)
It was identified that an authenticated user (admin) can bypass file type checks and upload malicious files. In this specific case, arbitrary server side PHP code such as web shells can be uploaded. As a result the attacker can run arbitrary code on the server side with the privileges of the web server. This could lead to a full system compromise.
Proof Of Concept
1. Stored Cross Site Scripting via Filename (Authenticated user)
[ PoC has been removed as no patch is available and the vendor is unresponsive ]
2. Directory Traversal (Authenticated user)
[ PoC has been removed as no patch is available and the vendor is unresponsive ]
3. Upload of arbitrary files (Authenticated user)
[ PoC has been removed as no patch is available and the vendor is unresponsive ]
Vulnerable / Tested Versions
WonderCMS version 3.0.7 has been tested, which was the latest version available at the time of the test. Previous versions may also be affected. On 18-05-2020, the vendor released a newer version 3.1.0. However, the latest version are still vulnerable to the above vulnerabilities.
Update: The vendor released a patch, please update to version 3.1.1. to fix mentioned vulnerabilities.