Testimonial Slider <= 1.2.4 - Authenticated SQL Injection



Description
During the security analysis, ThunderScan discovered
SQL injection vulnerability in Testimonial Slider WordPress plugin.

The easiest way to reproduce the vulnerability is to visit the
provided URL while being logged in as administrator or another user
that is authorized to access the plugin settings page. Users that do
not have full administrative privileges could abuse the database
access the vulnerability provides to either escalate their privileges
or obtain and modify database contents they were not supposed to be
able to.

Due to the missing nonce token, the vulnerable code is also directly
exposed to attack vectors such as Cross Site request forgery (CSRF).

3.1. SQL injection
  Function: $wpdb->query();
  Variable: POST['current_slider_id'];
  Vulnerable URL: http://vulnerablesite.com/wp-admin/admin.php?page=testimonial-slider-admin
  File: smooth-slider-forks\testimonial-slider\settings\sliders.php
        ---------
        60 $slider_id=$_POST['current_slider_id'];
        ...
        63 $sql = 'UPDATE '.$table_name.' SET slide_order='.$i.' WHERE post_id='.$slide_order.' and slider_id='.$slider_id;
        64 $wpdb->query($sql);
        ---------

Affects Plugin

fixed in version 1.2.5

References

CVE 2018-5372
URL http://defensecode.com/advisories/DC-2018-01-005_WordPress_Testimonial_Slider_Plugin_Advisory.pdf
URL http://seclists.org/bugtraq/2018/Jan/33
URL https://plugins.trac.wordpress.org/changeset/1659242/testimonial-slider

Classification

Type SQLI
OWASP Top 10 A1: Injection
CWE CWE-89

Miscellaneous

Submitter Neven Biruski
Submitter Website www.defensecode.com
Submitter Twitter https://twitter.com/DefenseCode/
Views 1203
Verified No
WPVDB ID 9002

Timeline

Publicly Published 2018-01-10 (11 months ago)
Added 2018-01-11 (11 months ago)
Last Updated 2018-01-12 (11 months ago)

Copyright & License

Copyright All data and resources contained within this page and this web site is Copyright © The WPScan Team.
License Some of this data may be used for non-commercial purposes, however, any potential commercial usage of this data will require a license. If you would like to inquire about a commercial license please contact us.