Rapid7 Vulnerability & Exploit Database

Grandstream GXV3175 'settimezone' Unauthenticated Command Execution

Back to Search

Grandstream GXV3175 'settimezone' Unauthenticated Command Execution

Disclosed
09/01/2016
Created
01/19/2022

Description

This module exploits a command injection vulnerability in Grandstream GXV3175 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 GXV3175v2 hardware revision V2.6A with firmware version 1.0.1.19.

Author(s)

  • alhazred
  • Brendan Scarvell
  • bcoles <bcoles@gmail.com>

Platform

Linux

Architectures

armle

Development

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_gxv3175_settimezone_unauth_cmd_exec
msf exploit(grandstream_gxv3175_settimezone_unauth_cmd_exec) > show targets
    ...targets...
msf exploit(grandstream_gxv3175_settimezone_unauth_cmd_exec) > set TARGET < target-id >
msf exploit(grandstream_gxv3175_settimezone_unauth_cmd_exec) > show options
    ...show and set options...
msf exploit(grandstream_gxv3175_settimezone_unauth_cmd_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;