WordPress Plugin Vulnerabilities

Smooth Slider <= 2.8.6 - Authenticated SQL Injection

Description

During the security analysis, ThunderScan discovered SQL injection
vulnerability in Smooth 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->get_var()
Variable: $_GET['trid']
Vulnerable URL: http://vulnerablesite.com/wp-admin/post.php?post=1&action=edit&source_lang=1&trid=22 OR SLEEP(5)
File: smooth-slider\smooth-slider.php
---------
470 $id = $wpdb->get_var( "SELECT element_id FROM {$wpdb->prefix}icl_translations WHERE trid=".$_GET['trid']." AND language_code='".$_GET['source_lang']."'" );
---------

Proof of Concept

Affects Plugins

Fixed in 2.8.7

References

Classification

Type
SQLI
OWASP top 10
CWE
CVSS

Miscellaneous

Submitter
Neven Biruski
Submitter website
Verified
No

Timeline

Publicly Published
2018-01-10 (about 8 years ago)
Added
2018-01-11 (about 8 years ago)
Last Updated
2020-09-22 (about 5 years ago)

Other