CVE-2024-4281

6.4 MEDIUM

📋 TL;DR

The Link Library WordPress plugin has a stored XSS vulnerability in all versions up to 7.6.11. Authenticated attackers with contributor-level access or higher can inject malicious scripts via the 'link-library' shortcode, which execute when users view affected pages. This affects all WordPress sites using vulnerable versions of the plugin.

💻 Affected Systems

Products:
  • WordPress Link Library plugin
Versions: All versions up to and including 7.6.11
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Link Library plugin enabled. Contributor-level authentication required for exploitation.

📦 What is this software?

⚠️ 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

Attackers with contributor accounts inject malicious scripts to steal user session cookies or perform phishing attacks against site visitors.

🟢

If Mitigated

With proper user access controls and input validation, impact is limited to isolated script execution without privilege escalation.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires authenticated access but is straightforward once attacker has contributor-level credentials.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 7.6.12

Vendor Advisory: https://plugins.trac.wordpress.org/changeset/3081532/link-library

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Link Library' and click 'Update Now'. 4. Verify version shows 7.6.12 or higher.

🔧 Temporary Workarounds

Disable Link Library plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate link-library

Restrict user roles

all

Remove contributor-level access from untrusted users

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block XSS payloads
  • Regularly audit user accounts and remove unnecessary contributor-level access

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Link Library version. If version is 7.6.11 or lower, you are vulnerable.

Check Version:

wp plugin get link-library --field=version

Verify Fix Applied:

After updating, confirm Link Library version shows 7.6.12 or higher in WordPress admin.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to WordPress admin-ajax.php with link-library parameters
  • Multiple failed login attempts followed by successful contributor login

Network Indicators:

  • HTTP requests containing script tags in link-library shortcode parameters

SIEM Query:

source="wordpress.log" AND "link-library" AND ("script" OR "onerror" OR "javascript:")

🔗 References

📤 Share & Export