Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/simply-schedule-appointments/includes/class-elementor.php
+++ b/simply-schedule-appointments/includes/class-elementor.php
@@ -20,7 +20,7 @@
*
* @var string The plugin version.
*/
- const VERSION = '1.6.9.15';
+ const VERSION = '1.6.9.17';
/**
* Minimum Elementor Version
@@ -29,7 +29,7 @@
*
* @var string Minimum Elementor version required to run the plugin.
*/
- const MINIMUM_ELEMENTOR_VERSION = '1.6.9.15';
+ const MINIMUM_ELEMENTOR_VERSION = '1.6.9.17';
/**
* Minimum PHP Version
@@ -38,7 +38,7 @@
*
* @var string Minimum PHP version required to run the plugin.
*/
- const MINIMUM_PHP_VERSION = '1.6.9.15';
+ const MINIMUM_PHP_VERSION = '1.6.9.17';
/**
* Instance
--- a/simply-schedule-appointments/includes/class-paypal-ipn-listener.php
+++ b/simply-schedule-appointments/includes/class-paypal-ipn-listener.php
@@ -23,7 +23,7 @@
* @package PHP-PayPal-IPN
* @author Micah Carrick
* @copyright (c) 2011 - Micah Carrick
- * @version 1.6.9.15
+ * @version 1.6.9.17
* @license http://opensource.org/licenses/gpl-3.0.html
*/
--- a/simply-schedule-appointments/includes/class-shortcodes.php
+++ b/simply-schedule-appointments/includes/class-shortcodes.php
@@ -906,12 +906,16 @@
array(
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'get_embed_inner_admin_output' ),
- 'permission_callback' => '__return_true',
+ 'permission_callback' => array( $this, 'current_user_can_manage_appointments' ),
'args' => array(),
),
)
);
}
+
+ public function current_user_can_manage_appointments() {
+ return current_user_can( 'ssa_manage_appointments' );
+ }
/**
* Takes $_REQUEST params and returns the booking shortcode output.
--- a/simply-schedule-appointments/simply-schedule-appointments.php
+++ b/simply-schedule-appointments/simply-schedule-appointments.php
@@ -3,7 +3,7 @@
* Plugin Name: Simply Schedule Appointments
* Plugin URI: https://simplyscheduleappointments.com
* Description: Easy appointment scheduling
- * Version: 1.6.9.15
+ * Version: 1.6.9.17
* Requires PHP: 7.4
* Author: NSquared
* Author URI: https://nsquared.io/
@@ -15,7 +15,7 @@
* @link https://simplyscheduleappointments.com
*
* @package Simply_Schedule_Appointments
- * @version 1.6.9.15
+ * @version 1.6.9.17
*
* Built using generator-plugin-wp (https://github.com/WebDevStudios/generator-plugin-wp)
*/
@@ -206,7 +206,7 @@
* @var string
* @since 0.0.0
*/
- const VERSION = '1.6.9.15';
+ const VERSION = '1.6.9.17';
/**
* URL of plugin directory.
--- a/simply-schedule-appointments/vendor/composer/autoload_static.php
+++ b/simply-schedule-appointments/vendor/composer/autoload_static.php
@@ -20,54 +20,54 @@
);
public static $prefixLengthsPsr4 = array (
- 'T' =>
+ 'T' =>
array (
'Twig\' => 5,
),
- 'S' =>
+ 'S' =>
array (
'Symfony\Polyfill\Php81\' => 23,
'Symfony\Polyfill\Php80\' => 23,
'Symfony\Polyfill\Mbstring\' => 26,
'Symfony\Polyfill\Ctype\' => 23,
),
- 'L' =>
+ 'L' =>
array (
'League\Period\' => 14,
),
);
public static $prefixDirsPsr4 = array (
- 'Twig\' =>
+ 'Twig\' =>
array (
0 => __DIR__ . '/..' . '/twig/twig/src',
),
- 'Symfony\Polyfill\Php81\' =>
+ 'Symfony\Polyfill\Php81\' =>
array (
0 => __DIR__ . '/..' . '/symfony/polyfill-php81',
),
- 'Symfony\Polyfill\Php80\' =>
+ 'Symfony\Polyfill\Php80\' =>
array (
0 => __DIR__ . '/..' . '/symfony/polyfill-php80',
),
- 'Symfony\Polyfill\Mbstring\' =>
+ 'Symfony\Polyfill\Mbstring\' =>
array (
0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
),
- 'Symfony\Polyfill\Ctype\' =>
+ 'Symfony\Polyfill\Ctype\' =>
array (
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
),
- 'League\Period\' =>
+ 'League\Period\' =>
array (
0 => __DIR__ . '/..' . '/league/period/src',
),
);
public static $prefixesPsr0 = array (
- 'N' =>
+ 'N' =>
array (
- 'NSquared\SSA\Vendor\' =>
+ 'NSquared\SSA\Vendor\' =>
array (
0 => __DIR__ . '/../..' . '/includes/third-party',
),
--- a/simply-schedule-appointments/vendor/composer/installed.php
+++ b/simply-schedule-appointments/vendor/composer/installed.php
@@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
- 'reference' => 'd33645ebb48e1d8636b43dbd21319fbcd2aff174',
+ 'reference' => 'e19fca4916d336a1fd7b5946be90b22df58fb8c9',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
- 'reference' => 'd33645ebb48e1d8636b43dbd21319fbcd2aff174',
+ 'reference' => 'e19fca4916d336a1fd7b5946be90b22df58fb8c9',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),