CVE-2025-49342
📋 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
- Wolfgang Häfelinger Custom Style WordPress Plugin
⚠️ 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 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.
🎯 Exploit Status
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
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
allTemporarily disable the vulnerable plugin until patched
wp plugin deactivate custom-style
Implement CSRF Protection
allAdd 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)