CVE-2025-27355

7.1 HIGH

📋 TL;DR

This CSRF vulnerability in the Woocommerce - Loi Hamon WordPress plugin allows attackers to trick authenticated administrators into performing unintended actions, leading to stored cross-site scripting (XSS). Attackers can inject malicious scripts that execute in victims' browsers when they visit affected pages. This affects all WordPress sites using the vulnerable plugin versions.

💻 Affected Systems

Products:
  • Woocommerce - Loi Hamon WordPress plugin
Versions: All versions up to and including 1.1.0
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with Woocommerce and the Loi Hamon plugin installed. The vulnerability requires an authenticated administrator to be tricked into performing an action.

⚠️ 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 inject persistent malicious scripts that steal administrator credentials, hijack user sessions, deface websites, or redirect users to malicious sites.

🟠

Likely Case

Attackers create fake admin actions that inject malicious JavaScript into website content, affecting all visitors who view the compromised pages.

🟢

If Mitigated

With proper CSRF protections and content security policies, the attack surface is reduced, though the vulnerability still exists in the codebase.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

Exploitation requires social engineering to trick an administrator into clicking a malicious link while authenticated. The CSRF leads to stored XSS payload injection.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after 1.1.0

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/loi-hamon/vulnerability/wordpress-woocommerce-loi-hamon-plugin-1-1-0-csrf-to-stored-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Woocommerce - Loi Hamon' plugin. 4. Click 'Update Now' if available, or manually update to latest version. 5. Verify plugin is updated to version after 1.1.0.

🔧 Temporary Workarounds

Implement CSRF Tokens

WordPress

Add CSRF protection to all admin forms in the plugin

Requires code modification: Add nonce verification to form processing functions

Content Security Policy

all

Implement CSP headers to restrict script execution sources

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Or use WordPress security plugins to implement CSP

🧯 If You Can't Patch

  • Disable or remove the Woocommerce - Loi Hamon plugin entirely
  • Implement strict access controls and monitor administrator account activity for suspicious behavior

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin > Plugins > Installed Plugins for 'Woocommerce - Loi Hamon'. If version is 1.1.0 or lower, you are vulnerable.

Check Version:

wp plugin list --name='loi-hamon' --field=version (if WP-CLI installed) or check WordPress admin plugins page

Verify Fix Applied:

After updating, verify the plugin version shows higher than 1.1.0 in WordPress admin plugins page.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to admin-ajax.php or admin-post.php with loi-hamon parameters
  • Multiple failed CSRF token validations in WordPress debug logs

Network Indicators:

  • Unexpected outbound connections from your site to external domains following admin actions
  • Suspicious referrer headers in requests to admin endpoints

SIEM Query:

source="wordpress.log" AND ("loi-hamon" OR "admin-ajax.php" OR "admin-post.php") AND (POST OR "csrf" OR "nonce")

🔗 References

📤 Share & Export