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.







