Instead of terminating the call normally through the VoIP switch, the attacker sends a malformed SIP BYE packet or directly invokes the hangup.php3 endpoint without proper session validation. Example malicious request:
POST /telephony/hangup.php3 HTTP/1.1 Host: target.vdesk.com Cookie: PHPSESSID=malicious123 Content-Type: application/x-www-form-urlencoded
call_id=12345&force=1&sig_type=SIGHUP
The "vdesk hangupphp3 exploit" typically followed a Local File Inclusion (LFI) or Session Hijacking path, leading to Remote Code Execution. Below is the step-by-step breakdown.
/tmp or /var/lib/php/sessions containing <?php tags or eval( strings..php files in vDesk’s writable directories (e.g., /var/www/vdesk/uploads/).open_basedir Restrictions: Limits file access to a specific directory.allow_url_include & register_globals: These have been removed from modern PHP.(int)).