CVE-2025-49958
📋 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
- Robokassa payment gateway for WooCommerce
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- 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.
🎯 Exploit Status
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
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
allTemporarily disable the vulnerable plugin until patched
wp plugin deactivate robokassa
Implement WAF Rules
allAdd 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=*"))