Skip to main content
Vulnerability Database/CVE-2024-11810

CVE-2024-11810: PayGreen Payment Gateway XSS Vulnerability

CVE-2024-11810 is a reflected cross-site scripting vulnerability in PayGreen Payment Gateway plugin for WordPress that allows unauthenticated attackers to inject malicious scripts. This post covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-11810 Overview

CVE-2024-11810 is a Reflected Cross-Site Scripting (XSS) vulnerability in the PayGreen Payment Gateway plugin for WordPress. The flaw affects all versions up to and including 1.0.26. The vulnerability stems from insufficient input sanitization and output escaping on the message_id parameter. Unauthenticated attackers can inject arbitrary web scripts that execute in a victim's browser when the victim clicks a crafted link. The issue is tracked under [CWE-79] (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Attackers can execute arbitrary JavaScript in the context of a victim's authenticated WordPress session, enabling session theft, account takeover, or redirection to attacker-controlled infrastructure.

Affected Products

  • PayGreen Payment Gateway plugin for WordPress — all versions through 1.0.26
  • WordPress sites using the plugin for payment processing
  • Any WooCommerce deployment integrating the vulnerable PayGreen gateway

Discovery Timeline

  • 2025-01-07 - CVE-2024-11810 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-11810

Vulnerability Analysis

The PayGreen Payment Gateway plugin reflects the message_id request parameter into HTML output without applying proper sanitization or escaping. When a user visits a URL containing attacker-controlled payload data in message_id, the plugin renders that payload directly into the response page. Browsers then parse the injected content as executable script. The attack requires user interaction, typically delivered through phishing emails, malicious advertising, or social engineering that lures administrators or logged-in customers to click a crafted link. Because the scope is marked as changed, injected scripts can affect resources beyond the immediate security boundary of the vulnerable endpoint.

Root Cause

The root cause is a failure to apply WordPress sanitization helpers such as sanitize_text_field() on input and escaping helpers such as esc_html() or esc_attr() on output. User-supplied data flows directly from $_GET['message_id'] to HTML rendering, violating the fundamental principle of context-aware output encoding.

Attack Vector

An attacker crafts a URL pointing at a PayGreen plugin endpoint with a JavaScript payload embedded in the message_id query parameter. The attacker distributes the link through email, chat, or malicious ads. When a WordPress administrator or authenticated customer clicks the link, the injected script executes in their browser session. Payloads can exfiltrate session cookies, submit administrative requests via the WordPress REST API, modify payment configurations, or redirect checkout flows to attacker infrastructure.

No verified public exploit code is available. See the Wordfence Vulnerability Report for additional technical details.

Detection Methods for CVE-2024-11810

Indicators of Compromise

  • HTTP requests to WordPress endpoints containing message_id= parameter values with <script>, javascript:, onerror=, or URL-encoded equivalents such as %3Cscript%3E
  • Referrer headers from external domains pointing to pages that reflect the message_id parameter
  • Unexpected administrator account creation, plugin installations, or option changes shortly after suspicious inbound links
  • Outbound requests from browsers to unfamiliar domains originating from WordPress admin pages

Detection Strategies

  • Deploy a Web Application Firewall (WAF) rule that inspects the message_id query parameter for HTML tags, event handlers, and script protocol strings
  • Enable WordPress audit logging to capture changes to users, roles, and plugin settings for correlation with suspicious access patterns
  • Hunt web server access logs for query strings containing encoded or raw XSS payloads targeting PayGreen plugin paths

Monitoring Recommendations

  • Alert on administrator logins immediately followed by configuration or user-management actions originating from unusual IP addresses
  • Monitor WordPress file integrity for unexpected modifications to plugin or theme files
  • Track browser Content Security Policy (CSP) violation reports to identify injected inline script execution attempts

How to Mitigate CVE-2024-11810

Immediate Actions Required

  • Update the PayGreen Payment Gateway plugin to a version later than 1.0.26 as soon as a patched release becomes available from the vendor
  • If no fixed version is available, deactivate and remove the plugin until a patch is published
  • Force password resets for all WordPress administrator accounts and invalidate active sessions
  • Review recent administrator activity, plugin installations, and user creations for signs of exploitation

Patch Information

Refer to the WordPress Plugin Changeset and the PayGreen Payment Gateway Plugin listing for the latest release information. Verify the installed version through the WordPress Plugins dashboard after updating.

Workarounds

  • Deploy a WAF rule that blocks or sanitizes requests containing HTML or JavaScript metacharacters in the message_id parameter
  • Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
  • Restrict administrative access to the WordPress backend by IP allowlisting through the web server configuration
  • Train site administrators and staff to avoid clicking unsolicited links referencing checkout or payment confirmation pages
bash
# Example ModSecurity rule to block script payloads in message_id
SecRule ARGS:message_id "@rx (?i)(<script|javascript:|onerror=|onload=)" \
    "id:1024110,phase:2,deny,status:403,log,\
    msg:'CVE-2024-11810 PayGreen message_id XSS attempt'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.