Dbox 3D Slider Lite <= 1.2.2 - Multiple Authenticated SQL injection

Sign up to our free email alerts service for instant vulnerability notifications!

Description
During the security analysis, ThunderScan discovered SQL injection
vulnerabilities in Dbox 3D Slider Lite WordPress plugin.

The easiest way to reproduce the vulnerabilities is to modify the POST
request for the slider rename or reorder and append parts of the SQL
query to the current_slider_id parameter, the result being something
like "current_slider_id=1 AND SLEEP(5)". Users that do not have full
administrative privileges could abuse the database access the
vulnerabilities provide 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=dboxlite-slider-admin
  File: dbox-slider-lite\settings\sliders.php
    ---------
    66 $slider_id=$_POST['current_slider_id'];
    ...
    70 $sql = 'UPDATE '.$slider_meta.' SET slider_name="'.$slider_name.'" WHERE slider_id='.$slider_id;
    71 $wpdb->query($sql);
    ---------

3.2. SQL injection
  Function: $wpdb->query()
  Variable: $_POST['current_slider_id'];
  Vulnerable URL: http://vulnerablesite.com/wp-admin/admin.php?page=dboxlite-slider-admin
  File: dbox-slider-lite\settings\sliders.php
    ---------
    55 $slider_id=$_POST['current_slider_id'];
    ...
    58 $sql = 'UPDATE '.$table_name.' SET slide_order='.$i.' WHERE post_id='.$slide_order.' and slider_id='.$slider_id;
    59 $wpdb->query($sql);
    ---------

Affects Plugin

References

CVE 2018-5374
URL http://defensecode.com/advisories/DC-2017-01-003_WordPress_Dbox_3D_Slider_Lite_Plugin_Advisory.pdf
URL http://seclists.org/bugtraq/2018/Jan/32

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 228
Verified No
WPVDB ID 9000

Timeline

Publicly Published 2018-01-10 (6 months ago)
Added 2018-01-11 (6 months ago)
Last Updated 2018-01-12 (6 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.