Description
An authenticated remote code execution vulnerability exists in GetSimpleCMS version 3.2.1. The application’s upload.php endpoint allows authenticated users to upload arbitrary files without proper validation of MIME types or extensions. By uploading a .pht file containing PHP code, an attacker can bypass blacklist-based restrictions and place executable code within the web root. A crafted request using a polyglot or disguised extension allows the attacker to execute the payload by accessing the file directly via the web server. This vulnerability exists due to the use of a blacklist for filtering file types instead of a whitelist.
Problem types
CWE-434 Unrestricted Upload of File with Dangerous Type
CWE-306 Missing Authentication for Critical Function
Product status
3.2.1
Credits
Ahmed Elhady Mohamed
References
raw.githubusercontent.com/...p/get_simple_cms_upload_exec.rb
www.exploit-db.com/exploits/25405
www.broadcom.com/...enter/attacksignatures/detail?asid=27895
www.fortiguard.com/encyclopedia/ips/39295
get-simple.info
www.vulncheck.com/...-auth-rce-via-arbitrary-php-file-upload