Kunstmaan CMS is an open source content management system based on the Symfony framework. Prior to 7.3.2, src/Kunstmaan/MediaBundle/Helper/File/FileHandler.php performs the blacklisted_extensions check case-sensitively in FileHandler::getFilePath and lowercases the stored extension afterward. An authenticated backend user with media access can upload a mixed-case executable extension such as PHP that bypasses the check and is stored in the web-accessible media directory with an executable lowercase extension. The default blacklist also omits several server-executable extension types, allowing the same code-execution impact where the web server executes uploaded files. This issue is fixed in version 7.3.2.
Summary
AIBefore 7.3.2, Kunstmaan CMS checks blocked media-file extensions case-sensitively, then stores extensions in lowercase; its default blacklist also omits some server-executable extensions. An authenticated backend user with media access can upload an executable file and achieve code execution if the web server executes uploaded files.
Who should check
Operators using Packagist kunstmaan/media-bundle or kunstmaan/bundles-cms versions earlier than 7.3.2 should check their installations.
What to do
- 1Update kunstmaan/media-bundle and kunstmaan/bundles-cms to 7.3.2.