CVE-2025-49342

7.1 HIGH

📋 TL;DR

This CSRF vulnerability in the Wolfgang Häfelinger Custom Style WordPress plugin allows attackers to trick authenticated administrators into performing actions that inject malicious scripts. The stored XSS component means injected scripts persist and affect all users viewing affected pages. WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • Wolfgang Häfelinger Custom Style WordPress Plugin
Versions: n/a through 1.0
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin enabled and an authenticated administrator to trigger the CSRF.

⚠️ 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, redirect users to malicious sites, or deface the website for all visitors.

🟠

Likely Case

Attackers create fake admin interfaces or forms that trick administrators into injecting malicious JavaScript, leading to session hijacking or content manipulation.

🟢

If Mitigated

With proper CSRF tokens and input validation, the attack would fail as unauthorized requests would be rejected.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

CSRF attacks are well-understood and easy to weaponize. Requires social engineering to trick an authenticated administrator.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.0.1 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/custom-style/vulnerability/wordpress-custom-style-plugin-1-0-cross-site-request-forgery-csrf-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Custom Style' plugin. 4. Click 'Update Now' if update available. 5. If no update, deactivate and delete plugin, then install fresh version from WordPress repository.

🔧 Temporary Workarounds

Disable Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate custom-style

Implement CSRF Protection

all

Add CSRF tokens to all form submissions and AJAX requests

🧯 If You Can't Patch

  • Restrict administrator access to trusted networks only
  • Implement web application firewall rules to block suspicious POST requests to admin-ajax.php

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for 'Custom Style' version 1.0 or earlier

Check Version:

wp plugin get custom-style --field=version

Verify Fix Applied:

Verify plugin version is 1.0.1 or later in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Multiple POST requests to admin-ajax.php from unexpected referrers
  • Unusual plugin activation/deactivation events

Network Indicators:

  • Cross-origin requests to WordPress admin endpoints with missing CSRF tokens

SIEM Query:

source="wordpress.log" AND (uri_path="/wp-admin/admin-ajax.php" AND http_method="POST" AND NOT referrer CONTAINS domain)

🔗 References

📤 Share & Export