CVE-2023-30754

7.1 HIGH

📋 TL;DR

This vulnerability allows unauthenticated attackers to inject malicious scripts via reflected cross-site scripting (XSS) in the AdFoxly WordPress plugin. When exploited, it can enable session hijacking, credential theft, or website defacement. WordPress sites using vulnerable versions of the AdFoxly plugin are affected.

💻 Affected Systems

Products:
  • AdFoxly – Ad Manager, AdSense Ads & Ads.Txt WordPress plugin
Versions: <= 1.8.5
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with the vulnerable plugin enabled. The vulnerability is unauthenticated and reflected, requiring user interaction.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator credentials, take over WordPress sites, install backdoors, or redirect visitors to malicious sites.

🟠

Likely Case

Attackers would typically use this to steal user session cookies, perform phishing attacks, or deface websites by injecting malicious content.

🟢

If Mitigated

With proper input validation and output encoding, the vulnerability would be prevented, and with web application firewalls, exploitation attempts would be blocked.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Reflected XSS vulnerabilities are commonly exploited and weaponized due to their simplicity and impact.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.8.6 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/adfoxly/wordpress-adfoxly-ad-manager-adsense-ads-ads-txt-plugin-1-8-4-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'AdFoxly – Ad Manager, AdSense Ads & Ads.Txt'. 4. Click 'Update Now' if available, or manually update to version 1.8.6+. 5. Verify the plugin is updated to at least version 1.8.6.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily disable the AdFoxly plugin until patched

wp plugin deactivate adfoxly

Implement WAF rules

all

Configure web application firewall to block XSS payloads targeting the vulnerable endpoint

🧯 If You Can't Patch

  • Implement Content Security Policy (CSP) headers to restrict script execution
  • Use input validation and output encoding in custom code to sanitize user inputs

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for AdFoxly version. If version is 1.8.5 or lower, the site is vulnerable.

Check Version:

wp plugin get adfoxly --field=version

Verify Fix Applied:

Verify the AdFoxly plugin version is 1.8.6 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual GET/POST requests containing script tags or JavaScript payloads to AdFoxly plugin endpoints
  • Multiple failed XSS attempts in web server logs

Network Indicators:

  • HTTP requests with suspicious parameters containing <script>, javascript:, or encoded payloads

SIEM Query:

source="web_server_logs" AND (uri="*adfoxly*" AND (param="*<script>*" OR param="*javascript:*"))

🔗 References

📤 Share & Export