From 443961fe6f24abbfe43602b5570c2a62c94e1c5d Mon Sep 17 00:00:00 2001 From: shewa <30765517+shewa12@users.noreply.github.com> Date: Mon, 24 Aug 2026 17:23:50 +0600 Subject: [PATCH 1/7] Security: XSS security issue on the registration form by old pass reflect value --- templates/dashboard/instructor/registration.php | 2 +- templates/dashboard/registration.php | 2 +- views/pages/add_new_instructor.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/dashboard/instructor/registration.php b/templates/dashboard/instructor/registration.php index b78ce96303..b76a32b6e9 100644 --- a/templates/dashboard/instructor/registration.php +++ b/templates/dashboard/instructor/registration.php @@ -76,7 +76,7 @@ -
+
diff --git a/templates/dashboard/registration.php b/templates/dashboard/registration.php index 9a831b3ca4..3da4c70f05 100644 --- a/templates/dashboard/registration.php +++ b/templates/dashboard/registration.php @@ -85,7 +85,7 @@
-
+
diff --git a/views/pages/add_new_instructor.php b/views/pages/add_new_instructor.php index f0f68aa707..574a660103 100644 --- a/views/pages/add_new_instructor.php +++ b/views/pages/add_new_instructor.php @@ -110,7 +110,7 @@
- +
@@ -123,7 +123,7 @@
- +
From e31586a6ae1db8db370c5cd3d82e153facaa1576 Mon Sep 17 00:00:00 2001 From: shewa <30765517+shewa12@users.noreply.github.com> Date: Tue, 25 Aug 2026 12:15:22 +0600 Subject: [PATCH 2/7] Fix: XSS issue on the SearchFilter component --- components/SearchFilter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/SearchFilter.php b/components/SearchFilter.php index b8c660a2f4..dd68dc53e7 100644 --- a/components/SearchFilter.php +++ b/components/SearchFilter.php @@ -240,7 +240,7 @@ public function get(): string { $clear_action = 'GET' === strtoupper( $method ) ? 'window.location.href = ' . wp_json_encode( $clear_url ) - : "setValue('" . esc_js( $input_name ) . "', ''); \$el.closest('form').submit();"; + : 'setValue(' . wp_json_encode( (string) $input_name ) . ', \'\'); $el.closest(\'form\').submit();'; $this->attributes = array_merge( array( @@ -279,8 +279,8 @@ public function get(): string { name="" placeholder="" class="tutor-input tutor-input-content-left tutor-input-content-clear" - x-bind="register('')" - x-init="$nextTick(() => setValue('', ''))" + x-bind="register()" + x-init="$nextTick(() => setValue(, ))" />