CVE-2025-30898

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in the Persian WooCommerce Shipping WordPress plugin allows attackers to inject malicious scripts that execute when other users view affected pages. All WordPress sites using vulnerable versions of this plugin are affected, potentially compromising user sessions and site integrity.

💻 Affected Systems

Products:
  • Persian WooCommerce Shipping WordPress plugin (Mahdi Yousefi)
Versions: All versions up to and including 4.2.3
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with WooCommerce and the vulnerable plugin installed and active.

⚠️ 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, deface websites, redirect users to malicious sites, or install backdoors for persistent access.

🟠

Likely Case

Session hijacking of regular users, cookie theft, or displaying malicious content to visitors.

🟢

If Mitigated

Limited impact if proper input validation and output encoding are implemented, though stored XSS remains dangerous.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: LOW

Stored XSS typically requires some level of access to input fields, but complexity is low once access is obtained.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after 4.2.3

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/persian-woocommerce-shipping/vulnerability/wordpress-fzonh-hml-o-nkl-oo-mrs-st-sht-z-o-sf-rsh-motor-plugin-4-2-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 'Persian WooCommerce Shipping' plugin. 4. Click 'Update Now' if available, or manually update to latest version. 5. Verify plugin is updated to version newer than 4.2.3.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the plugin until patched version is available

wp plugin deactivate persian-woocommerce-shipping

Implement Content Security Policy

all

Add CSP headers to mitigate XSS impact

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Or add to WordPress functions.php: header("Content-Security-Policy: default-src 'self'; script-src 'self'");

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block XSS payloads
  • Restrict plugin access to trusted users only and monitor for suspicious input

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Persian WooCommerce Shipping → Version number. If version is 4.2.3 or lower, you are vulnerable.

Check Version:

wp plugin get persian-woocommerce-shipping --field=version

Verify Fix Applied:

Verify plugin version is higher than 4.2.3 in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to plugin endpoints
  • Script tags in form submissions
  • Multiple failed XSS attempts in web server logs

Network Indicators:

  • Malicious script payloads in HTTP requests
  • Unexpected outbound connections from compromised sessions

SIEM Query:

source="web_server" AND ("<script>" OR "javascript:" OR "onload=" OR "onerror=") AND uri="*persian-woocommerce-shipping*"

🔗 References

📤 Share & Export