Description
This module exploits a command injection vulnerability in Grandstream GXV31XX IP multimedia phones. The 'settimezone' action does not validate input in the 'timezone' parameter allowing injection of arbitrary commands.
A buffer overflow in the 'phonecookie' cookie parsing allows authentication to be bypassed by providing an alphanumeric cookie 93 characters in length.
This module was tested successfully on Grandstream models: GXV3175v2 hardware revision V2.6A with firmware version 1.0.1.19; and GXV3140 hardware revision V0.4B with firmware version 1.0.1.27.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/http/grandstream/gxv31xx_settimezone_unauth_cmd_execmsf undefined(gxv31xx_settimezone_unauth_cmd_exec) > show actions ...actions...msf undefined(gxv31xx_settimezone_unauth_cmd_exec) > set ACTION < action-name >msf undefined(gxv31xx_settimezone_unauth_cmd_exec) > show options ...show and set options...msf undefined(gxv31xx_settimezone_unauth_cmd_exec) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub