Headline
CVE-2023-5434: Changeset 2985501 for superb-slideshow-gallery – WordPress Plugin Repository
The Superb slideshow gallery plugin for WordPress is vulnerable to SQL Injection via the plugin’s shortcode in versions up to, and including, 13.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers with subscriber-level and above permissions to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Timestamp:
10/29/2023 03:42:57 AM (2 days ago)
gopiplus
Message:
Tested up to 6.4
Location:
superb-slideshow-gallery/trunk
Files:
- inc/superb-slideshow-gallery.js (1 diff)
- readme.txt (3 diffs)
- superb-slideshow-gallery.php (3 diffs)
Legend:
Unmodified
Added
Removed
superb-slideshow-gallery/trunk/inc/superb-slideshow-gallery.js
r2658293
r2985501
1
1
/\*\*
2
2
\* Superb slideshow gallery
3
\* Copyright (C) 2011 - 2021 www.gopiplus.com
3
\* Copyright (C) 2011 - 2023 www.gopiplus.com
4
4
\* http://www.gopiplus.com/work/2010/10/10/superb-slideshow-gallery/
5
5
\*
superb-slideshow-gallery/trunk/readme.txt
r2827170
r2985501
6
6
Tags: Superb, slideshow, gallery, widget
7
7
Requires at least: 3.4
8
Tested up to: 6.1
9
Stable tag: 13.1
8
Tested up to: 6.4
9
Stable tag: 13.2
10
10
License: GPLv2 or later
11
11
License URI: http://www.gnu.org/licenses/gpl-2.0.html
…
…
79
79
\== Changelog ==
80
80
81
\= 13.2 =
82
83
Tested up to 6.4
84
81
85
\= 13.1 =
82
86
…
…
235
239
\== Upgrade Notice ==
236
240
241
\= 13.2 =
242
243
Tested up to 6.4
244
237
245
\= 13.1 =
238
246
superb-slideshow-gallery/trunk/superb-slideshow-gallery.php
r2658293
r2985501
5
5
Description: Superb slideshow gallery is a strong cross browser fade in slideshow script that incorporates some of your most requested features all rolled into one. Each instance of a fade in slideshow on the page is completely independent of the other, with support for different features selectively enabled for each slide show.
6
6
Author: Gopi Ramasamy
7
Version: 13.1
7
Version: 13.2
8
8
Author URI: http://www.gopiplus.com/work/2010/10/10/superb-slideshow-gallery/
9
9
Donate link: http://www.gopiplus.com/work/2010/10/10/superb-slideshow-gallery/
…
…
52
52
53
53
$sSql = "select ssg\_path,ssg\_link,ssg\_target,ssg\_title from ".WP\_ssg\_TABLE." where 1=1";
54
$sSql = $sSql . " and ssg\_type\='".$ssg\_type."'";
54
$sSql = $sSql . " and ssg\_type = %s ";
55
55
if($ssg\_random == "YES"){ $sSql = $sSql . " ORDER BY RAND()"; }else{ $sSql = $sSql . " ORDER BY ssg\_order"; }
56
57
$sSql = $wpdb->prepare($sSql, $ssg\_type);
58
56
59
$data = $wpdb->get\_results($sSql);
57
60
…
…
123
126
124
127
$sSql = "select ssg\_path,ssg\_link,ssg\_target,ssg\_title from ".WP\_ssg\_TABLE." where 1=1";
125
$sSql = $sSql . " and ssg\_type\='".$ssg\_type."'";
128
$sSql = $sSql . " and ssg\_type = %s ";
126
129
if($ssg\_random == "YES"){ $sSql = $sSql . " ORDER BY RAND()"; }else{ $sSql = $sSql . " ORDER BY ssg\_order"; }
130
131
$sSql = $wpdb->prepare($sSql, $ssg\_type);
132
127
133
$data = $wpdb->get\_results($sSql);
128
134
Note: See TracChangeset for help on using the changeset viewer.