CVE-2025-4171

6.4 MEDIUM

📋 TL;DR

This stored XSS vulnerability in the WZ Followed Posts WordPress plugin allows authenticated attackers with contributor-level access or higher to inject malicious scripts via the 'wfp' shortcode. The scripts execute when users view compromised pages, potentially stealing session cookies or redirecting visitors. All WordPress sites using this plugin up to version 3.1.0 are affected.

💻 Affected Systems

Products:
  • WZ Followed Posts – Display what visitors are reading WordPress plugin
Versions: All versions up to and including 3.1.0
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin enabled. Contributor-level access or higher is needed to exploit.

⚠️ 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 session cookies, take over the WordPress site, install backdoors, deface pages, or redirect visitors to malicious sites.

🟠

Likely Case

Attackers with contributor access inject malicious scripts to steal user session cookies, potentially compromising user accounts and spreading malware to visitors.

🟢

If Mitigated

With proper user role management and content review, impact is limited to potential defacement of individual posts by malicious contributors.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires authenticated access with contributor privileges or higher. The vulnerability is straightforward to exploit once an attacker has valid credentials.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version 3.1.1 or later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3287192%40where-did-they-go-from-here&new=3287192%40where-did-they-go-from-here&sfp_email=&sfph_mail=

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'WZ Followed Posts' plugin. 4. Click 'Update Now' if available. 5. If no update appears, manually download version 3.1.1+ from WordPress.org and replace the plugin files.

🔧 Temporary Workarounds

Disable the vulnerable plugin

all

Temporarily deactivate the WZ Followed Posts plugin until patched

wp plugin deactivate where-did-they-go-from-here

Restrict user roles

all

Temporarily remove contributor-level access or implement stricter content review

🧯 If You Can't Patch

  • Implement strict content review process for all posts and pages before publishing
  • Use a web application firewall (WAF) with XSS protection rules

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'WZ Followed Posts' version 3.1.0 or earlier

Check Version:

wp plugin get where-did-they-go-from-here --field=version

Verify Fix Applied:

Verify plugin version is 3.1.1 or later in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual post/page edits by contributor-level users
  • Suspicious script tags in post content containing 'wfp' shortcode

Network Indicators:

  • Unexpected JavaScript execution from WordPress posts/pages
  • Suspicious outbound connections from site visitors

SIEM Query:

source="wordpress" AND (event="post_updated" OR event="page_updated") AND user_role="contributor" AND content CONTAINS "wfp"

🔗 References

📤 Share & Export