CVE-2025-49958

7.1 HIGH

📋 TL;DR

This vulnerability allows attackers to inject malicious scripts into web pages through the Robokassa payment gateway for WooCommerce. When exploited, it enables reflected cross-site scripting (XSS) attacks that can steal user credentials, session tokens, or perform actions on behalf of users. WordPress sites using the vulnerable Robokassa plugin versions are affected.

💻 Affected Systems

Products:
  • Robokassa payment gateway for WooCommerce
Versions: All versions up to and including 1.8.1
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with WooCommerce and the Robokassa plugin enabled. The vulnerability is in the payment gateway functionality.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator credentials, take over WordPress sites, install backdoors, or redirect payment transactions to malicious destinations.

🟠

Likely Case

Attackers steal user session cookies and payment information, perform unauthorized actions on behalf of users, or deface websites.

🟢

If Mitigated

With proper input validation and output encoding, the risk is limited to minor data leakage or temporary session hijacking.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

XSS vulnerabilities are commonly weaponized. The public disclosure includes technical details that facilitate exploitation.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.8.2 or later

Vendor Advisory: https://patchstack.com/database/Wordpress/Plugin/robokassa/vulnerability/wordpress-robokassa-payment-gateway-for-woocommerce-plugin-1-7-3-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Robokassa payment gateway for WooCommerce'. 4. Click 'Update Now' if available. 5. If no update appears, manually download version 1.8.2+ from WordPress repository and replace the plugin files.

🔧 Temporary Workarounds

Disable Robokassa Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate robokassa

Implement WAF Rules

all

Add web application firewall rules to block XSS payloads targeting Robokassa endpoints

# Add ModSecurity rules: SecRule ARGS "<script" "id:1001,phase:2,deny,status:403,msg:'XSS Attack Detected'"
# Cloudflare WAF: Create rule blocking requests with script tags to /wc-api/robokassa/

🧯 If You Can't Patch

  • Implement Content Security Policy (CSP) headers to restrict script execution
  • Use browser security features like HttpOnly and Secure flags for cookies

🔍 How to Verify

Check if Vulnerable:

Check WordPress plugin version: In WordPress admin, go to Plugins > Installed Plugins and verify Robokassa version is ≤1.8.1

Check Version:

wp plugin get robokassa --field=version

Verify Fix Applied:

Confirm plugin version is 1.8.2 or higher. Test payment gateway functionality to ensure it works without errors.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST/GET requests to /wc-api/robokassa/ containing script tags or JavaScript code
  • Multiple failed payment attempts with suspicious parameters

Network Indicators:

  • HTTP requests with encoded script payloads in query parameters
  • Unexpected redirects after Robokassa payment processing

SIEM Query:

source="wordpress.log" AND (uri_path="/wc-api/robokassa/" AND (query="*<script*" OR query="*javascript:*" OR query="*onload=*"))

🔗 References

📤 Share & Export