### [CVE-2012-10042](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-10042) ![](https://img.shields.io/static/v1?label=Product&message=Sflog!%20CMS&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=1.0%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-434%20Unrestricted%20Upload%20of%20File%20with%20Dangerous%20Type&color=brightgreen) ### Description Sflog! CMS 1.0 contains an authenticated arbitrary file upload vulnerability in the blog management interface. The application ships with default credentials (admin:secret) and allows authenticated users to upload files via manage.php. The upload mechanism fails to validate file types, enabling attackers to upload a PHP backdoor into a web-accessible directory (blogs/download/uploads/). Once uploaded, the file can be executed remotely, resulting in full remote code execution. ### POC #### Reference - https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/sflog_upload_exec.rb - https://www.exploit-db.com/exploits/19626 - https://www.vulncheck.com/advisories/sflog-cms-arbitrary-file-upload-rce #### Github - https://github.com/fkie-cad/nvd-json-data-feeds